Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
funkwhale
Merge requests
!2191
feat: allow installing the funkwhale_api package
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat: allow installing the funkwhale_api package
jooola/funkwhale:fix_api_package
into
develop
Overview
29
Commits
3
Pipelines
1
Changes
6
Merged
jooola
requested to merge
jooola/funkwhale:fix_api_package
into
develop
2 years ago
Overview
29
Commits
3
Pipelines
1
Changes
6
Expand
feat: allow installing the funkwhale_api package
update license identifier
update description
add links
include all packages and data files
exclude tests
Edited
2 years ago
by
jooola
0
0
Merge request reports
Compare
develop
version 13
d0e28a47
2 years ago
version 12
033f9e7f
2 years ago
version 11
16052175
2 years ago
version 10
c5609c6b
2 years ago
version 9
c8689317
2 years ago
version 8
f73fdb6f
2 years ago
version 7
2439fef0
2 years ago
version 6
630d769f
2 years ago
version 5
63a8cf73
2 years ago
version 4
e35f269c
2 years ago
version 3
60c4c976
2 years ago
version 2
d826722b
2 years ago
version 1
712dce3e
2 years ago
develop (base)
and
latest version
latest version
5356e9f2
3 commits,
2 years ago
version 13
d0e28a47
3 commits,
2 years ago
version 12
033f9e7f
3 commits,
2 years ago
version 11
16052175
3 commits,
2 years ago
version 10
c5609c6b
3 commits,
2 years ago
version 9
c8689317
3 commits,
2 years ago
version 8
f73fdb6f
3 commits,
2 years ago
version 7
2439fef0
3 commits,
2 years ago
version 6
630d769f
3 commits,
2 years ago
version 5
63a8cf73
4 commits,
2 years ago
version 4
e35f269c
2 commits,
2 years ago
version 3
60c4c976
4 commits,
2 years ago
version 2
d826722b
4 commits,
2 years ago
version 1
712dce3e
4 commits,
2 years ago
6 files
+
67
−
26
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
api/funkwhale_api/main.py
0 → 100755
+
34
−
0
Options
#!/usr/bin/env python3
"""
Django
'
s command-line utility for administrative tasks.
"""
import
os
import
sys
def
main
():
"""
Run administrative tasks.
"""
os
.
environ
.
setdefault
(
"
DJANGO_SETTINGS_MODULE
"
,
"
config.settings.production
"
)
try
:
import
django
from
django.core.management
import
execute_from_command_line
except
ImportError
as
exc
:
raise
ImportError
(
"
Couldn
'
t import Django. Are you sure it
'
s installed and
"
"
available on your PYTHONPATH environment variable? Did you
"
"
forget to activate a virtual environment?
"
)
from
exc
if
len
(
sys
.
argv
)
>
1
and
sys
.
argv
[
1
]
in
[
"
fw
"
,
"
funkwhale
"
]:
django
.
setup
()
from
funkwhale_api.cli
import
main
as
cli
sys
.
argv
=
sys
.
argv
[
1
:]
cli
.
invoke
()
else
:
execute_from_command_line
(
sys
.
argv
)
if
__name__
==
"
__main__
"
:
main
()
Loading