Merge "Use pip-compile to generate dependency list"

This commit is contained in:
Zuul 2021-09-09 19:52:07 +00:00 committed by Gerrit Code Review
commit 74a32ec8dd
2 changed files with 201 additions and 2 deletions

190
constraints.txt Normal file
View File

@ -0,0 +1,190 @@
#
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
#
# pip-compile --output-file=constraints.txt --pip-args='-chttps://releases.openstack.org/constraints/upper/master' molecule-requirements.txt test-requirements.txt
#
ansi2html==1.6.0
# via
# -r molecule-requirements.txt
# pytest-molecule
ansible==2.9.25
# via
# -r molecule-requirements.txt
# molecule
arrow==1.1.1
# via jinja2-time
attrs==21.2.0
# via pytest
bcrypt==3.2.0
# via paramiko
binaryornot==0.4.4
# via cookiecutter
cerberus==1.3.4
# via molecule
certifi==2021.5.30
# via requests
cffi==1.14.6
# via
# bcrypt
# cryptography
# pynacl
chardet==4.0.0
# via binaryornot
charset-normalizer==2.0.4
# via requests
click==8.0.1
# via
# click-completion
# click-help-colors
# cookiecutter
# molecule
# python-gilt
click-completion==0.5.2
# via molecule
click-help-colors==0.9.1
# via molecule
colorama==0.4.4
# via
# molecule
# python-gilt
cookiecutter==1.7.3
# via molecule
coverage==5.5
# via pytest-cov
cryptography==3.4.8
# via
# ansible
# paramiko
distro==1.6.0
# via selinux
docker==5.0.2
# via -r molecule-requirements.txt
fasteners==0.16.3
# via python-gilt
idna==3.2
# via requests
iniconfig==1.1.1
# via pytest
jinja2==3.0.1
# via
# -r test-requirements.txt
# ansible
# click-completion
# cookiecutter
# jinja2-time
# molecule
jinja2-time==0.2.0
# via cookiecutter
markupsafe==2.0.1
# via jinja2
mock==4.0.3
# via -r molecule-requirements.txt
molecule==3.0.8
# via
# -r molecule-requirements.txt
# pytest-molecule
more-itertools==8.9.0
# via
# pytest-molecule
# pytest-plus
packaging==21.0
# via pytest
paramiko==2.7.2
# via
# -r molecule-requirements.txt
# molecule
pathspec==0.9.0
# via yamllint
pexpect==4.8.0
# via molecule
pluggy==0.13.1
# via
# molecule
# pytest
poyo==0.5.0
# via cookiecutter
ptyprocess==0.7.0
# via pexpect
py==1.10.0
# via pytest
pycparser==2.20
# via cffi
pynacl==1.4.0
# via paramiko
pyparsing==2.4.7
# via packaging
pytest==6.2.5
# via
# -r molecule-requirements.txt
# pytest-cov
# pytest-html
# pytest-metadata
# pytest-molecule
# pytest-plus
pytest-cov==2.12.1
# via -r molecule-requirements.txt
pytest-html==3.1.1
# via
# -r molecule-requirements.txt
# pytest-molecule
pytest-metadata==1.11.0
# via pytest-html
pytest-molecule==1.3.0
# via -r molecule-requirements.txt
pytest-plus==0.2
# via pytest-molecule
python-dateutil==2.8.2
# via arrow
python-gilt==1.2.3
# via molecule
python-slugify==5.0.2
# via cookiecutter
pyyaml==5.4.1
# via
# ansible
# molecule
# pytest-molecule
# python-gilt
# yamllint
requests==2.26.0
# via
# cookiecutter
# docker
selinux==0.2.1
# via
# -r molecule-requirements.txt
# molecule
sh==1.13.1
# via
# molecule
# python-gilt
shellingham==1.4.0
# via click-completion
six==1.16.0
# via
# bcrypt
# click-completion
# cookiecutter
# fasteners
# pynacl
# python-dateutil
tabulate==0.8.9
# via molecule
text-unidecode==1.3
# via python-slugify
toml==0.10.2
# via
# pytest
# pytest-cov
tree-format==0.1.2
# via molecule
urllib3==1.26.6
# via requests
websocket-client==1.2.1
# via docker
yamllint==1.26.3
# via molecule
# The following packages are considered to be unsafe in a requirements file:
# setuptools

13
tox.ini
View File

@ -18,7 +18,8 @@ passenv =
SSH_AUTH_SOCK
SSL_CERT_FILE
TERM
deps = -r{toxinidir}/test-requirements.txt
PIP_CONSTRAINT={env:PIP_CONSTRAINT:constraints.txt}
deps = -r{toxinidir}/constraints.txt
whitelist_externals = bash
[testenv:bindep]
@ -52,6 +53,14 @@ basepython = python3
commands = {posargs}
[testenv:molecule]
deps = -r{toxinidir}/molecule-requirements.txt
commands =
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html -rA --molecule-unavailable-driver=fail {tty:-s} {posargs:-k 'molecule and docker'}
[testenv:deps]
description = pip-compile the dependencies
basepython = python3
deps =
pip-tools>=5.4.0
skip_install = true
commands =
pip-compile -o constraints.txt test-requirements.txt molecule-requirements.txt --pip-args "-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}"