feat: add manage.py backward compatible script

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2191>
environments/review-docs-fix-b-0p3p4g/deployments/16281
jo 2022-11-23 20:37:03 +01:00
rodzic 6f2ecf832c
commit 5356e9f268
2 zmienionych plików z 16 dodań i 0 usunięć

15
api/manage.py 100755
Wyświetl plik

@ -0,0 +1,15 @@
#!/usr/bin/env python3
import warnings
from funkwhale_api.main import main
warnings.warn(
DeprecationWarning(
"the './manage.py' script has been deprecated, please use the 'funkwhale-manage' "
"entrypoint instead (e.g. 'funkwhale-manage migrate')"
)
)
if __name__ == "__main__":
SystemExit(main())

Wyświetl plik

@ -0,0 +1 @@
Deprecate the api manage.py script in favor of the funkwhale-manage entrypoint