-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[change] Move python dependencies to requirements.txt file #60
base: main
Are you sure you want to change the base?
Changes from 2 commits
9365a1e
c4c743a
99cadd0
db20785
e6c0e6b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
setuptools | ||
wheel | ||
attrs | ||
importlib-metadata | ||
packaging | ||
Flask~=3.0.3 | ||
Werkzeug~=3.0.3 | ||
uwsgi~=2.0.26 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,7 @@ | |
|
||
- name: Update pip & related tools | ||
pip: | ||
name: | ||
- pip | ||
- setuptools | ||
- wheel | ||
- attrs | ||
- importlib-metadata | ||
- packaging | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't move these because we're always upgrade to the latest version available. The aim is to move only the python packages that we are pinning to as pecific version range, so that dependabot can help us update those more with less intervention from our end. |
||
name: pip | ||
state: latest | ||
virtualenv: "{{ virtualenv_path }}" | ||
virtualenv_python: "{{ openwisp2_wireguard_python }}" | ||
|
@@ -20,13 +14,14 @@ | |
until: result is success | ||
notify: reload supervisor | ||
|
||
- name: Install Flask, Werkzeug and uWSGI | ||
- name: Read local requirements.txt | ||
local_action: command cat requirements.txt | ||
register: requirements | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure this is correct? Did you try running the tests locally? |
||
|
||
- name: Install Python modules from requirements.txt | ||
pip: | ||
name: | ||
- "Flask~=3.0.3" | ||
- "uwsgi~=2.0.26" | ||
- "Werkzeug~=3.0.3" | ||
state: latest | ||
name: "{{ requirements.stdout_lines }}" | ||
state: present | ||
virtualenv: "{{ virtualenv_path }}" | ||
virtualenv_python: "{{ openwisp2_wireguard_python }}" | ||
virtualenv_site_packages: true | ||
|
@@ -36,3 +31,6 @@ | |
delay: 10 | ||
register: result | ||
until: result is success | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't remove this line.