Projet

Général

Profil

0001-misc-rename-authentic2-ctl-to-manage.py.patch

Benjamin Dauvergne, 12 octobre 2022 14:02

Télécharger (3 ko)

Voir les différences:

Subject: [PATCH] misc: rename authentic2-ctl to manage.py

 README                      | 4 ++--
 check-migrations.sh         | 2 +-
 debian/rules                | 2 +-
 authentic2-ctl => manage.py | 0
 setup.py                    | 2 +-
 tox.ini                     | 6 +++---
 6 files changed, 8 insertions(+), 8 deletions(-)
 rename authentic2-ctl => manage.py (100%)
README
56 56

  
57 57
# Initialize the database migrations::
58 58

  
59
    authentic2-ctl syncdb --migrate
59
    manage.py syncdb --migrate
60 60

  
61 61
# Run the HTTP test server::
62 62

  
63
    authentic2-ctl runserver
63
    manage.py runserver
64 64

  
65 65
Upgrade
66 66
=======
check-migrations.sh
16 16
TEMPFILE=`mktemp`
17 17
trap "rm -f ${TEMPFILE} ${CHECK_MIGRATIONS_SETTINGS}" EXIT
18 18

  
19
AUTHENTIC2_SETTINGS_FILE=${CHECK_MIGRATIONS_SETTINGS}  ./authentic2-ctl makemigrations --dry-run --noinput ${APPS} >${TEMPFILE} 2>&1 || true
19
AUTHENTIC2_SETTINGS_FILE=${CHECK_MIGRATIONS_SETTINGS}  ./manage.py makemigrations --dry-run --noinput ${APPS} >${TEMPFILE} 2>&1 || true
20 20

  
21 21
if ! grep 'No changes detected' -q ${TEMPFILE}; then
22 22
   echo '!!! Missing migration detected !!!'
debian/rules
8 8

  
9 9
override_dh_install:
10 10
	dh_install
11
	mv $(CURDIR)/debian/python3-authentic2/usr/bin/authentic2-ctl $(CURDIR)/debian/python3-authentic2/usr/lib/authentic2/manage.py
11
	mv $(CURDIR)/debian/python3-authentic2/usr/bin/manage.py $(CURDIR)/debian/python3-authentic2/usr/lib/authentic2/manage.py
setup.py
155 155
    author_email="authentic@listes.entrouvert.com",
156 156
    maintainer="Benjamin Dauvergne",
157 157
    maintainer_email="bdauvergne@entrouvert.com",
158
    scripts=('authentic2-ctl',),
158
    scripts=('manage.py',),
159 159
    packages=find_packages('src'),
160 160
    package_dir={
161 161
        '': 'src',
tox.ini
146 146
  ipdb
147 147
commands =
148 148
    ./getlasso3.sh
149
    ./authentic2-ctl {posargs:--help}
149
    ./manage.py {posargs:--help}
150 150

  
151 151

  
152 152
[testenv:update-locales]
......
157 157
  psycopg2-binary<2.9
158 158
commands =
159 159
    ./getlasso3.sh
160
    ./authentic2-ctl makemessages -l fr
161
    ./authentic2-ctl compilemessages
160
    ./manage.py makemessages -l fr
161
    ./manage.py compilemessages
162 162

  
163 163

  
164 164
[testenv:code-style]
165
-