Avoid directly installing non-frozen dependencies
Currently the Dockerfile specifies running `pip install -e ...`, which will indirectly install dependencies from `requirements.txt`. This is generally safe, but should be avoided, since we are exclusively using frozen dependencies. Change-Id: Ie368ddb9f1229cc248c8d8804c71889c4339aa85
This commit is contained in:
7
requirements-direct.txt
Normal file
7
requirements-direct.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
click==6.7
|
||||
jinja2==2.9.6
|
||||
jsonpath-ng==1.4.3
|
||||
jsonschema==2.6.0
|
||||
pbr==3.0.1
|
||||
pyyaml==3.12
|
||||
requests==2.18.4
|
@@ -1,7 +1,2 @@
|
||||
click==6.7
|
||||
jinja2==2.9.6
|
||||
jsonpath-ng==1.4.3
|
||||
jsonschema==2.6.0
|
||||
pbr==3.0.1
|
||||
pyyaml==3.12
|
||||
requests==2.18.4
|
||||
# Warning: This file should be empty.
|
||||
# Specify direct dependencies in requirements-direct.txt instead.
|
||||
|
2
tox.ini
2
tox.ini
@@ -17,7 +17,7 @@ commands =
|
||||
python setup.py build_sphinx {posargs}
|
||||
|
||||
[testenv:freeze]
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
deps = -r{toxinidir}/requirements-direct.txt
|
||||
whitelist_externals=sh
|
||||
commands=
|
||||
sh -c "pip freeze | grep -v '^promenade' > {toxinidir}/requirements-frozen.txt"
|
||||
|
Reference in New Issue
Block a user