Run pip-compile in docker to update requirements files
This commit is contained in:
Родитель
e285fca94e
Коммит
2e77d081f6
|
@ -18,7 +18,6 @@ include README.rst
|
|||
include CODE_OF_CONDUCT.md
|
||||
|
||||
include get_mozilla_keys.sh
|
||||
include update-requirements.sh
|
||||
include requirements.txt
|
||||
include requirements-py2.txt
|
||||
include requirements.in
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
# This runs in docker to pin our requirements files
|
||||
|
||||
set -e
|
||||
|
||||
pip install pip-tools
|
||||
|
||||
rm -f *"requirements${SUFFIX}.txt"
|
||||
pip-compile --generate-hashes --output-file "requirements${SUFFIX}.txt" requirements.in
|
||||
pip-compile --generate-hashes --output-file "test-requirements${SUFFIX}.txt" test-requirements.in
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
docker run -t -v $PWD:/src -w /src -e SUFFIX=-py2 python:2.7 maintenance/pin-helper.sh
|
||||
docker run -t -v $PWD:/src -w /src python:3.6 maintenance/pin-helper.sh
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
rm *requirements.txt || true
|
||||
|
||||
pip-compile --generate-hashes --output-file requirements.txt requirements.in
|
||||
pip-compile --generate-hashes --output-file test-requirements.txt test-requirements.in
|
||||
|
||||
pip-compile2 --generate-hashes --output-file requirements-py2.txt requirements.in
|
||||
pip-compile2 --generate-hashes --output-file test-requirements-py2.txt test-requirements.in
|
Загрузка…
Ссылка в новой задаче