Skip to content
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 #52

Closed
pandafy opened this issue Aug 21, 2024 · 2 comments · Fixed by #60
Closed

[change] Move Python dependencies to requirements.txt #52

pandafy opened this issue Aug 21, 2024 · 2 comments · Fixed by #60
Labels
bug Something isn't working

Comments

@pandafy
Copy link
Member

pandafy commented Aug 21, 2024

Move Python dependencies from pip.yml to a requirements.txt file.

Ensure that dependabot can upgrade the dependencies in requirements.txt.

@pandafy pandafy added the bug Something isn't working label Aug 21, 2024
@pandafy
Copy link
Member Author

pandafy commented Aug 21, 2024

We can use the following tasks to implement this

- name: Read local requirements.txt and install packages
  local_action: command cat /path/to/requirements.txt
  register: requirements

- name: Install Python modules from requirements.txt
  pip:
    name: "{{ requirements.stdout_lines }}"
    state: present
  become: yes

@shwetd19
Copy link
Contributor

Hey @pandafy , can you pls check the PR once and let me know if any changes required, Thanks!

shwetd19 added a commit to shwetd19/ansible-wireguard-openwisp that referenced this issue Jan 23, 2025
Added all dependencies, such as Flask, Werkzeug, and uwsgi, into this file to keep things organized.
@github-project-automation github-project-automation bot moved this from To do (ansible/docker) to Done in OpenWISP Contributor's Board Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants