Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of pip-tools #48

Merged
merged 1 commit into from
Sep 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ COPY . /root/code/
WORKDIR /root/code/
RUN \
python3 --version && \
python3 -m pip install . -r test-requirements.txt && \
python3 -m pip install ".[test]" && \
python3 -m pytest
9 changes: 9 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ setup_requires =
# These are required in actual runtime:
; install_requires =

[options.extras_require]
test =
enrich>=1.2.5
mock>=3.0.5
pytest-cov>=2.7.1
pytest-plus
pytest-xdist>=1.29.0
pytest>=6.1.0

[options.packages.find]
where = src

Expand Down
6 changes: 0 additions & 6 deletions test-requirements.in

This file was deleted.

59 changes: 0 additions & 59 deletions test-requirements.txt

This file was deleted.

13 changes: 2 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,13 @@ setenv =
PYTHONUNBUFFERED=1
commands =
python -m pytest
deps =
-r test-requirements.txt
extras =
test
whitelist_externals =
find
rm
sh

[testenv:deps]
description = Update dependency lock files used for testing
deps =
# replace with version once a new release is made
# https:/jazzband/pip-tools/issues/1047
pip-tools @ git+https:/jazzband/pip-tools
commands =
pip-compile -o test-requirements.txt setup.cfg test-requirements.in

[testenv:lint]
description = Runs all linting tasks
# temporary due to https:/PyCQA/pylint/issues/3876
Expand Down