misc: rename authentic2-ctl to manage.py (#70162)
This commit is contained in:
parent
bca86355cb
commit
64e67aaea6
4
README
4
README
|
@ -56,11 +56,11 @@ privileges like this:
|
||||||
|
|
||||||
# Initialize the database migrations::
|
# Initialize the database migrations::
|
||||||
|
|
||||||
authentic2-ctl syncdb --migrate
|
manage.py syncdb --migrate
|
||||||
|
|
||||||
# Run the HTTP test server::
|
# Run the HTTP test server::
|
||||||
|
|
||||||
authentic2-ctl runserver
|
manage.py runserver
|
||||||
|
|
||||||
Upgrade
|
Upgrade
|
||||||
=======
|
=======
|
||||||
|
|
|
@ -16,7 +16,7 @@ APPS=$(env DJANGO_SETTINGS_MODULE=authentic2.settings python -c 'from django.con
|
||||||
TEMPFILE=`mktemp`
|
TEMPFILE=`mktemp`
|
||||||
trap "rm -f ${TEMPFILE} ${CHECK_MIGRATIONS_SETTINGS}" EXIT
|
trap "rm -f ${TEMPFILE} ${CHECK_MIGRATIONS_SETTINGS}" EXIT
|
||||||
|
|
||||||
AUTHENTIC2_SETTINGS_FILE=${CHECK_MIGRATIONS_SETTINGS} ./authentic2-ctl makemigrations --dry-run --noinput ${APPS} >${TEMPFILE} 2>&1 || true
|
AUTHENTIC2_SETTINGS_FILE=${CHECK_MIGRATIONS_SETTINGS} ./manage.py makemigrations --dry-run --noinput ${APPS} >${TEMPFILE} 2>&1 || true
|
||||||
|
|
||||||
if ! grep 'No changes detected' -q ${TEMPFILE}; then
|
if ! grep 'No changes detected' -q ${TEMPFILE}; then
|
||||||
echo '!!! Missing migration detected !!!'
|
echo '!!! Missing migration detected !!!'
|
||||||
|
|
|
@ -8,4 +8,4 @@ export PYBUILD_DISABLE=test
|
||||||
|
|
||||||
override_dh_install:
|
override_dh_install:
|
||||||
dh_install
|
dh_install
|
||||||
mv $(CURDIR)/debian/python3-authentic2/usr/bin/authentic2-ctl $(CURDIR)/debian/python3-authentic2/usr/lib/authentic2/manage.py
|
mv $(CURDIR)/debian/python3-authentic2/usr/bin/manage.py $(CURDIR)/debian/python3-authentic2/usr/lib/authentic2/manage.py
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -155,7 +155,7 @@ setup(
|
||||||
author_email="authentic@listes.entrouvert.com",
|
author_email="authentic@listes.entrouvert.com",
|
||||||
maintainer="Benjamin Dauvergne",
|
maintainer="Benjamin Dauvergne",
|
||||||
maintainer_email="bdauvergne@entrouvert.com",
|
maintainer_email="bdauvergne@entrouvert.com",
|
||||||
scripts=('authentic2-ctl',),
|
scripts=('manage.py',),
|
||||||
packages=find_packages('src'),
|
packages=find_packages('src'),
|
||||||
package_dir={
|
package_dir={
|
||||||
'': 'src',
|
'': 'src',
|
||||||
|
|
6
tox.ini
6
tox.ini
|
@ -146,7 +146,7 @@ deps =
|
||||||
ipdb
|
ipdb
|
||||||
commands =
|
commands =
|
||||||
./getlasso3.sh
|
./getlasso3.sh
|
||||||
./authentic2-ctl {posargs:--help}
|
./manage.py {posargs:--help}
|
||||||
|
|
||||||
|
|
||||||
[testenv:update-locales]
|
[testenv:update-locales]
|
||||||
|
@ -157,8 +157,8 @@ deps =
|
||||||
psycopg2-binary<2.9
|
psycopg2-binary<2.9
|
||||||
commands =
|
commands =
|
||||||
./getlasso3.sh
|
./getlasso3.sh
|
||||||
./authentic2-ctl makemessages -l fr
|
./manage.py makemessages -l fr
|
||||||
./authentic2-ctl compilemessages
|
./manage.py compilemessages
|
||||||
|
|
||||||
|
|
||||||
[testenv:code-style]
|
[testenv:code-style]
|
||||||
|
|
Loading…
Reference in New Issue