Skip to content

Conversation

@Dhanus3133
Copy link
Member

Closes #507

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do the same for the optional python dependencies (postgresql, mysql, etc), we can create multiple files, eg: requirements-postgresql.txt, requirements-mysql.txt, etc (we can ignore raven for sentry which is deprecated).

Double check the dependabot config matches what we have in the wireguard role which is working as we need: https://github.com/openwisp/ansible-wireguard-openwisp/blob/main/.github/dependabot.yml#L3-L8 (I mean that dependabot is successfully reminding us to update the dependencies).

openwisp_controller.config.tests.test_admin.TestAdmin.test_vpn_preview_button \
openwisp_controller.config.tests.test_admin.TestAdmin.test_device_queryset \
openwisp_controller.config.tests.test_admin.TestAdmin.test_device_organization_fk_autocomplete_view \
openwisp_controller.config.tests.test_admin.TestAdmin.test_device_templates_m2m_queryset \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this test was removed in openwisp/openwisp-controller#1010, so I removed it here. I later tried to use the selenium equivalent test, but the test run failed because the selenium package isn’t installed.

Should we add selenium (and this test) back?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it would be useful to run selenium tests, please open an issue for this and we can follow up after this is merged.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #530 @nemesifier

@nemesifier nemesifier changed the title [change] Refactor pip installs to use requirements.txt (#507) [chores:refector] Moved python dependencies to requirements.txt files for maintainability Jul 22, 2025
@nemesifier nemesifier changed the title [chores:refector] Moved python dependencies to requirements.txt files for maintainability [chores] Moved python dependencies to requirements.txt files for maintainability Jul 22, 2025
@nemesifier nemesifier changed the title [chores] Moved python dependencies to requirements.txt files for maintainability [change] Moved python dependencies to requirements.txt files for maintainability Jul 22, 2025
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nemesifier are you sure about having three different requirements.txt in /opt/openwisp2?

If possible, I would look for a way to merge the files into one requirements.txt on the remote system.

Copy link
Member

@nemesifier nemesifier Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the advantage? I don't see any.. and I see the disadvantage that the tasks building the unified requirements.txt file may not be idempotent.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At that moment, I thought that it would simply re-installing the dependencies manually on the target machine if required.

Now, I think we should promote users to only use the ansible role to manage dependencies. I agree with your conclusion.

@github-project-automation github-project-automation bot moved this from In progress to Reviewer approved in OpenWISP Priorities for next releases Jul 28, 2025
@nemesifier nemesifier merged commit f6e2a61 into master Jul 29, 2025
5 checks passed
@nemesifier nemesifier deleted the change/support-requirements-txt branch July 29, 2025 13:50
@github-project-automation github-project-automation bot moved this from Reviewer approved to Done in OpenWISP Priorities for next releases Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

[change] Change definition of dependencies to leverage dependabot

4 participants