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

Open
pandafy opened this issue Aug 21, 2024 · 1 comment
Open

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

pandafy opened this issue Aug 21, 2024 · 1 comment
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do (ansible/docker)
Development

No branches or pull requests

1 participant