File tree Expand file tree Collapse file tree 5 files changed +84
-22
lines changed
Expand file tree Collapse file tree 5 files changed +84
-22
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ COPY . /root/code/
1515WORKDIR /root/code/
1616RUN \
1717python3 --version && \
18- python3 -m pip install ".[ test]" && \
18+ python3 -m pip install . -r test-requirements.txt && \
1919python3 -m pytest
Original file line number Diff line number Diff line change @@ -64,15 +64,6 @@ setup_requires =
6464# These are required in actual runtime:
6565; install_requires =
6666
67- [options.extras_require]
68- test =
69- enrich>=1.2.5
70- mock>=3.0.5
71- pytest-cov>=2.7.1
72- pytest-plus
73- pytest-xdist>=1.29.0
74- pytest>=6.1.0
75-
7667[options.packages.find]
7768where = src
7869
Original file line number Diff line number Diff line change 1+ enrich>=1.2.5
2+ mock>=3.0.5
3+ pytest-cov>=2.7.1
4+ pytest-plus
5+ pytest-xdist>=1.29.0
6+ pytest>=6.1.0
Original file line number Diff line number Diff line change 1+ #
2+ # This file is autogenerated by pip-compile
3+ # To update, run:
4+ #
5+ # pip-compile --output-file=test-requirements.txt setup.cfg test-requirements.in
6+ #
7+ apipkg==1.5
8+ # via execnet
9+ attrs==20.3.0
10+ # via pytest
11+ colorama==0.4.4
12+ # via rich
13+ commonmark==0.9.1
14+ # via rich
15+ coverage==5.5
16+ # via pytest-cov
17+ enrich==1.2.6
18+ # via -r test-requirements.in
19+ execnet==1.8.0
20+ # via pytest-xdist
21+ iniconfig==1.1.1
22+ # via pytest
23+ mock==4.0.3
24+ # via -r test-requirements.in
25+ more-itertools==8.7.0
26+ # via pytest-plus
27+ packaging==20.9
28+ # via pytest
29+ pluggy==0.13.1
30+ # via pytest
31+ py==1.10.0
32+ # via
33+ # pytest
34+ # pytest-forked
35+ pygments==2.8.1
36+ # via rich
37+ pyparsing==2.4.7
38+ # via packaging
39+ pytest-cov==2.11.1
40+ # via -r test-requirements.in
41+ pytest-forked==1.3.0
42+ # via pytest-xdist
43+ pytest-plus==0.2
44+ # via -r test-requirements.in
45+ pytest-xdist==2.2.1
46+ # via -r test-requirements.in
47+ pytest==6.2.3
48+ # via
49+ # -r test-requirements.in
50+ # pytest-cov
51+ # pytest-forked
52+ # pytest-plus
53+ # pytest-xdist
54+ rich==10.1.0
55+ # via enrich
56+ toml==0.10.2
57+ # via pytest
58+ typing-extensions==3.7.4.3
59+ # via rich
Original file line number Diff line number Diff line change @@ -26,19 +26,27 @@ passenv =
2626 TERM
2727setenv =
2828 PIP_DISABLE_VERSION_CHECK =1
29- PIP_USE_FEATURE ={env:PIP_USE_FEATURE:2020-resolver}
3029 PYTEST_REQPASS =14
3130 PYTHONDONTWRITEBYTECODE =1
3231 PYTHONUNBUFFERED =1
3332commands =
3433 python -m pytest
35- extras =
36- test
34+ deps =
35+ -r test-requirements.txt
3736whitelist_externals =
3837 find
3938 rm
4039 sh
4140
41+ [testenv:deps]
42+ description = Update dependency lock files used for testing
43+ deps =
44+ # replace with version once a new release is made
45+ # https://github.com/jazzband/pip-tools/issues/1047
46+ pip-tools @ git+https://github.com/jazzband/pip-tools
47+ commands =
48+ pip-compile -o test-requirements.txt setup.cfg test-requirements.in
49+
4250[testenv:lint]
4351description = Runs all linting tasks
4452# temporary due to https://github.com/PyCQA/pylint/issues/3876
@@ -61,17 +69,15 @@ usedevelop = false
6169skip_install = true
6270deps =
6371 collective.checkdocs >= 0.2
64- pep517 >= 0.8.2
65- pip >= 20.2.2
66- toml >= 0.10.1
67- twine >= 3.2.0 # pyup: ignore
72+ build >= 0.3.1.post1
73+ twine >= 1.14.0
6874setenv =
6975commands =
7076 rm -rfv {toxinidir}/dist/
71- python -m pep517. build \
72- --source \
73- --binary \
74- --out-dir {toxinidir}/dist/ \
77+ python -m build \
78+ --sdist \
79+ --wheel \
80+ --outdir {toxinidir}/dist/ \
7581 {toxinidir}
7682 # metadata validation
77- sh -c " python -m twine check {toxinidir}// dist/*"
83+ python -m twine check {toxinidir}/dist/*
You can’t perform that action at this time.
0 commit comments