Skip to content

Commit

Permalink
Update post-build hooks to fix OpenShift build
Browse files Browse the repository at this point in the history
  • Loading branch information
ylep committed Oct 18, 2021
1 parent d08a885 commit dca2732
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions openshift-deployment/openshift-prod-export.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ items:
script: |
set -e
# Without PIP_IGNORE_INSTALLED=0 the Debian version of pip would
# re-install all dependencies in the user's home directory
# re-install already installed dependencies in the user's home
# directory
# (https://github.com/pypa/pip/issues/4222#issuecomment-417672236)
PIP_IGNORE_INSTALLED=0 python3 -m pip install --user /source[tests]
PIP_IGNORE_INSTALLED=0 python3 -m pip install --user -r test-requirements.txt
cd /source
python3 -m pytest tests/
resources: {}
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def find_source_url(*file_paths):
raise RuntimeError("Unable to find SOURCE_URL string.")


# Remember keep synchronized with the list of dependencies in tox.ini
# Remember keep synchronized with the list of dependencies in
# test-requirements.txt.
tests_require = [
"pytest",
"requests ~= 2.5",
Expand Down
3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Remember to keep synchronized with tests_require in setup.py
pytest
requests~=2.5
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ python =

[testenv]
commands = pytest {posargs} tests/
# Remember to keep synchronized with tests_require in setup.py
deps =
pytest
requests ~= 2.5
-r test-requirements.txt

[testenv:cov]
commands = pytest --cov={envsitepackagesdir}/hbp_spatial_backend \
Expand Down

0 comments on commit dca2732

Please sign in to comment.