The requirements.txt
file is generated from requirements.in
and requirements_git.txt
, using pip-tools
and pip-compile
.
Commands should be run in the awx container from inside the ./requirements
directory of the awx repository.
If you need to add or upgrade one targeted library, then modify requirements.in
,
then run the script:
./updater.sh run
If you require a new version of a dependency that does not have a pinned version
for a fix or feature, pin a minimum version in requirements.in
and run ./updater.sh run
. For example,
replace the line asgi-amqp
with asgi-amqp>=1.1.4
, and consider leaving a
note.
Then next time that a general upgrade is performed, the minimum version specifiers
can be removed, because *.txt
files are upgraded to latest.
You can upgrade (pip-compile --upgrade
) the dependencies by running
./updater.sh upgrade
.
If any library has a change to its license with the upgrade, then the license for that library
inside of licenses
needs to be updated.
For libraries that have source distribution requirements (LGPL as an example), a tarball of the library is kept along with the license. To download the PyPI tarball, you can run this command:
pip download <pypi library name> -d licenses/ --no-binary :all: --no-deps
Make sure to delete the old tarball if it is an upgrade.
Anything pinned in *.in
files involves additional manual work in
order to upgrade. Some information related to that work is outlined here.
Versions later than 1.4.1 throw an error about id_token_id, due to the OpenID Connect work that was done in jazzband/django-oauth-toolkit#915. This may be fixable by creating a migration on our end?
If modifying these libraries make sure testing with the offline build is performed to confirm they are functionally working. Versions need to match the versions used in the pip bootstrapping step in the top-level Makefile.
Verify ansible-runner's build dependency doesn't conflict with the changes made.
If modifying this library make sure testing with the offline build is performed to confirm it is functionally working.
Version 4.8 makes us a little bit nervous with changes to searchwindowsize
https://github.com/pexpect/pexpect/pull/579/files
Pin to pexpect==4.7.x
until we have more time to move to 4.8
and test.