misc: rename authentic2-ctl to manage.py (#70162)

This commit is contained in:
Benjamin Dauvergne 2022-10-12 12:05:49 +02:00
parent bca86355cb
commit 64e67aaea6
6 changed files with 8 additions and 8 deletions

4
README
View File

@ -56,11 +56,11 @@ privileges like this:
# Initialize the database migrations::
authentic2-ctl syncdb --migrate
manage.py syncdb --migrate
# Run the HTTP test server::
authentic2-ctl runserver
manage.py runserver
Upgrade
=======

View File

@ -16,7 +16,7 @@ APPS=$(env DJANGO_SETTINGS_MODULE=authentic2.settings python -c 'from django.con
TEMPFILE=`mktemp`
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
echo '!!! Missing migration detected !!!'

2
debian/rules vendored
View File

@ -8,4 +8,4 @@ export PYBUILD_DISABLE=test
override_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

View File

@ -155,7 +155,7 @@ setup(
author_email="authentic@listes.entrouvert.com",
maintainer="Benjamin Dauvergne",
maintainer_email="bdauvergne@entrouvert.com",
scripts=('authentic2-ctl',),
scripts=('manage.py',),
packages=find_packages('src'),
package_dir={
'': 'src',

View File

@ -146,7 +146,7 @@ deps =
ipdb
commands =
./getlasso3.sh
./authentic2-ctl {posargs:--help}
./manage.py {posargs:--help}
[testenv:update-locales]
@ -157,8 +157,8 @@ deps =
psycopg2-binary<2.9
commands =
./getlasso3.sh
./authentic2-ctl makemessages -l fr
./authentic2-ctl compilemessages
./manage.py makemessages -l fr
./manage.py compilemessages
[testenv:code-style]