1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00
awx/requirements
AlanCoding ac86dc4fb9
Allow JTs to specify and prompt for SCM branch
Copy project folder each job run
  change cwd to private_data_dir, from proj
  do not add cwd to show_paths if it is
  a subdirectory of private_data_dir, which
  is already shown

Pass the job private_data_dir to the local
  project sync, and also add that directory
  to the project sync show paths

Add GitPython dep and use for job sync logic
  use this to manage shallow clone from desired
  commit, and to map branch to commit,
  and to assess necessity of project sync

Start on some validation change, but not all
  allow arbitrary playbooks with custom branch
2019-08-12 11:01:07 -04:00
..
README.md
requirements_ansible_git.txt
requirements_ansible_uninstall.txt
requirements_ansible.in
requirements_ansible.txt
requirements_dev.txt include awxkit CI in zuul runs 2019-08-09 10:07:40 -04:00
requirements_git.txt
requirements_isolated.txt
requirements_setup_requires.txt
requirements_tower_uninstall.txt
requirements.in Allow JTs to specify and prompt for SCM branch 2019-08-12 11:01:07 -04:00
requirements.txt Allow JTs to specify and prompt for SCM branch 2019-08-12 11:01:07 -04:00
updater.sh

The requirements.txt and requirements_ansible.txt files are generated from requirements.in and requirements_ansible.in, respectively, using pip-tools pip-compile.

Run ./updater.sh command from inside ./requirements directory of the awx repository.

Make sure you have patch, awk, python3, python2, python3-venv, python2-virtualenv, pip2, pip3 installed.

This script will:

  • Update requirements.txt based on requirements.in
  • Update/generate requirements_ansible.txt based on requirements_ansible.in
    • including an automated patch that adds python_version < "3" for Python 2 backward compatibility
  • Removes the docutils dependency line from requirements.txt and requirements_ansible.txt

You can also upgrade (pip-compile --upgrade) the dependencies by running ./updater.sh upgrade.

Licenses and Source Files

If any library has a change to its license with the upgrade, then the license for that library inside of docs/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 docs/licenses/ --no-binary :all: --no-deps

Make sure to delete the old tarball if it is an upgrade.