Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansible
Manage
Activity
Members
Labels
Plan
Issues
13
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
ansible
Commits
04187602
Commit
04187602
authored
2 years ago
by
Georg Krause
Committed by
Georg Krause
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
feat: Add support for installation from pyproject.toml
parent
79690af3
No related branches found
Branches containing commit
No related tags found
1 merge request
!35
feat: Add support for installation from pyproject.toml
Pipeline
#31165
failed with stages
Stage: test
Stage: deploy
in 16 minutes and 8 seconds
Changes
1
Pipelines
444
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/funkwhale.yml
+29
-1
29 additions, 1 deletion
tasks/funkwhale.yml
with
29 additions
and
1 deletion
tasks/funkwhale.yml
+
29
−
1
View file @
04187602
...
...
@@ -23,6 +23,15 @@
shell
:
/bin/false
home
:
"
{{
funkwhale_install_path
}}"
-
name
:
"
Delete
old
source
files"
become
:
true
file
:
path
:
"
{{
item
}}"
state
:
absent
with_items
:
-
"
{{
funkwhale_install_path
}}/front"
-
"
{{
funkwhale_install_path
}}/api"
-
name
:
"
Create
funkwhale
directories"
become
:
true
file
:
...
...
@@ -205,7 +214,13 @@
virtualenv
:
"
{{
funkwhale_install_path
}}/virtualenv"
virtualenv_python
:
python3
-
name
:
"
Install
python
dependencies"
# Deprecated, not required anymore after funkwhale 1.3
-
name
:
"
Check
if
requirements.txt
exists"
stat
:
path
:
"
{{
funkwhale_install_path
}}/api/requirements.txt"
register
:
"
requirements_file"
-
name
:
"
Install
python
dependencies
from
requirements.txt"
become
:
true
become_user
:
"
{{
funkwhale_username
}}"
pip
:
...
...
@@ -214,6 +229,19 @@
virtualenv_python
:
python3
notify
:
-
reload funkwhale
when
:
requirements_file.stat.exists
-
name
:
"
Install
python
dependencies
from
pyproject.toml"
become
:
true
become_user
:
"
{{
funkwhale_username
}}"
pip
:
name
:
"
{{
funkwhale_install_path
}}/api"
editable
:
true
virtualenv
:
"
{{
funkwhale_install_path
}}/virtualenv"
virtualenv_python
:
python3
notify
:
-
reload funkwhale
when
:
not requirements_file.stat.exists
-
name
:
"
Install
custom
python
dependencies,
if
any"
when
:
funkwhale_custom_pip_packages is defined and (funkwhale_custom_pip_packages|length>0)
...
...
This diff is collapsed.
Click to expand it.
Georg Krause
@georgkrause
mentioned in issue
#33 (closed)
·
1 year ago
mentioned in issue
#33 (closed)
mentioned in issue #33
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment