-
Notifications
You must be signed in to change notification settings - Fork 129
Updating Dependencies
Adrian Likins edited this page Aug 10, 2022
·
5 revisions
Dependencies should be updated in setup.py
and requirements.*.in
, we have make
commands that turn these into requirements.*.txt
files for our deployment modes
Dependencies should also be updated for the CI, we use https://github.com/pulp/plugin_template to manage the CI
Example to upgrade pulpcore
:
- Change the version pinned in
setup.py
- Run
make requirements/no-pip-upgrade
to update all therequirements/requirements.*.txt
files (without askingpip
for the latest version of any deps) - Update the
pulp/plugin_template
repo.- For stable backports, this will probably mean using an older revision of the template
- To determine the revision of plugin_template that was used to generate the current tree, check the value in
galaxy_ng/.github/template_gitref
. The end of the value is the shasum for the revision of plugin_template last used. - For stable backports, you will likely stick with the same revision of plugin template referenced in
template_gitref
- To determine the revision of plugin_template that was used to generate the current tree, check the value in
- For stable backports, this will probably mean using an older revision of the template
-
plugin_template
andgalaxy_ng
dirs should share same parent dir - Edit
template_config.yml
withingalaxy_ng
repo- NOTE: It's possible running
plugin-template
will add new files into galaxy_ng that are not currently included in git.- To help catch any new files, it helps to run
plugin-template
against a fresh clean checkout of galaxy_ng checked to correct branch.
- To help catch any new files, it helps to run
- Then run
./plugin-template --github galaxy_ng
from the root of thepulp/plugin_template
repo, which will regenerate all the CI files insidegalaxy_ng
- A
git status -u
in the fresh galaxy_ng checkout should show you any new files that the plugin template added.- The new files need to be
git add
'ed to the galaxy_ng repo and committed.
- The new files need to be
- NOTE: It's possible running
Sponsored by Red Hat, Inc.