1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 17:55:10 +03:00
awx/requirements
2019-05-03 07:58:25 -04:00
..
README.md remove redbaron and update dependencies 2019-02-21 10:08:24 -05:00
requirements_ansible_git.txt pin apache-libcloud to a version that doesn't use PyCrypto 2019-03-21 14:21:04 -04:00
requirements_ansible_uninstall.txt Don't use the rsa python lib. 2019-04-02 15:48:30 -04:00
requirements_ansible.in Update Azure requirements for Ansible stable-2.8 branch. 2019-04-23 10:50:00 -04:00
requirements_ansible.txt pin urllib3 to 1.24.3 to address CVE-2019-9740 2019-05-02 11:59:01 -04:00
requirements_dev.txt Fix Django 2.0 deprecation warnings 2019-04-22 14:17:14 -04:00
requirements_git.txt change from runner master to runner 1.3 2019-03-21 07:46:11 -04:00
requirements_isolated.txt upgrade to the latest pexpect 2018-05-29 09:52:59 -04:00
requirements_setup_requires.txt Lock down version of setuptools_scm 2018-07-27 15:28:41 -04:00
requirements_tower_uninstall.txt remove redbaron and update dependencies 2019-02-21 10:08:24 -05:00
requirements.in pin runner 1.3.4 2019-04-25 09:49:03 -04:00
requirements.txt pin urllib3 to 1.24.3 to address CVE-2019-9740 2019-05-02 11:59:01 -04:00

The requirements.txt and requirements_ansible.txt files are generated from requirements.in and requirements_ansible.in, respectively, using pip-tools pip-compile. The following commands should do this if ran inside the tower_tools container.

NOTE: before running pip-compile, please copy-paste contents in requirements/requirements_git.txt to the top of requirements/requirements.in and prepend each copied line with -e . Later after requirements.txt is generated, don't forget to remove all git+https://github.com...-like lines from both requirements.txt and requirements.in (repeat for requirements_ansible_git.txt and requirements_ansible.in)

At the end of requirements/requirements.in, pip and setuptools need to have their versions pinned.

python3 -m venvpip install pip-tools /buildit
source /buildit/bin/activate
pip install pip-tools
pip install pip --upgrade

pip-compile requirements/requirements.in > requirements/requirements.txt
pip-compile requirements/requirements_ansible.in > requirements/requirements_ansible.txt

Known Issues

  • Remove the -e from packages of the form -e git+https://github.com... in the generated .txt. Failure to do so will result in a "bad" RPM and DEB due to the pip install laying down a symbolic link with an absolute path from the virtualenv to the git repository that will differ from when the RPM and DEB are build to when the RPM and DEB are installed on a machine. By removing the -e the symbolic egg link will not be created and all is well.

  • As of pip-tools 1.8.1 pip-compile does not resolve packages specified using a git url. Thus, dependencies for things like dm.xmlsec.binding do not get resolved and output to requirements.txt. This means that:

    • can't use pip install --no-deps because other deps WILL be sucked in
    • all dependencies are NOT captured in our .txt files. This means you can't rely on the .txt when gathering licenses.