feat: add manage.py backward compatible script

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2191>
This commit is contained in:
jo 2022-11-23 20:37:03 +01:00
parent 6f2ecf832c
commit 5356e9f268
2 changed files with 16 additions and 0 deletions

15
api/manage.py Executable file
View File

@ -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())

View File

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