Project

General

Profile

Anomalie #5417

Mettre à jour bootstrap-eoleflask-app.sh pour prendre en compte le namespace

Added by Laurent Flori almost 7 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
05/23/2013
Due date:
05/24/2013
% Done:

100%

Spent time:
Distribution:
EOLE 2.4

Description

bootstrap-eoleflask-app.sh devrait prendre en compte le namespace.
Par exemple, pour le projet eoleflask.aaa la structure devrait donner cela:

src/
|-- eoleflask
|   |-- aaa
|   |   |-- __init__.py
|   |   `-- views.py
|   `-- __init__.py
`-- eoleflask.aaa.conf

Associated revisions

Revision f47092ad (diff)
Added by Daniel Dehennin almost 7 years ago

Gérer les arborescences de modules python

  • bootstrap-eoleflask-app.sh: Créer une arborescence de répertoire en
    fonction le l’arborescence python.

Fixes: #5417 @10m

History

#1 Updated by Daniel Dehennin almost 7 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#2 Updated by Daniel Dehennin almost 7 years ago

moi@work:~/src/bidule$ ./bootstrap-eoleflask-app.sh eoleflask.bidule.app
add 'Makefile'
add 'setup.py'
add 'eoleflask-dev-server.py'
add 'src/flask-app.conf'
add 'src/flask-app/__init__.py'
add 'src/flask-app/views.py'
add 'Makefile'
add 'src/eoleflask/__init__.py'
add 'src/eoleflask/bidule/__init__.py'
Renaming src/flask-app to src/eoleflask/bidule/app
Renaming src/flask-app/__init__.py to src/eoleflask/bidule/app/__init__.py
Renaming src/flask-app/views.py to src/eoleflask/bidule/app/views.py
Renaming src/flask-app.conf to src/eoleflask.bidule.app.conf
moi@work:~/src/bidule$ git status
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       modified:   Makefile
#       modified:   eoleflask-dev-server.py
#       modified:   setup.py
#       new file:   src/eoleflask.bidule.app.conf
#       new file:   src/eoleflask/__init__.py
#       new file:   src/eoleflask/bidule/__init__.py
#       renamed:    src/flask-app/__init__.py -> src/eoleflask/bidule/app/__init__.py
#       renamed:    src/flask-app/views.py -> src/eoleflask/bidule/app/views.py
#       deleted:    src/flask-app.conf

Fonctionne aussi si le répertoire courant n’est pas un dépôt git.

#3 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF