Skip to content

Commit

Permalink
Remove use of pip-tools
Browse files Browse the repository at this point in the history
Needed-By: #47
Related: jazzband/pip-tools#333
  • Loading branch information
ssbarnea committed Sep 13, 2021
1 parent 7945a85 commit cef9a5b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 77 deletions.
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

0 comments on commit cef9a5b

Please sign in to comment.