Skip to content

Commit

Permalink
tox no longer uses install constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowalleck committed May 23, 2021
1 parent a2ff786 commit 41250b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
12 changes: 3 additions & 9 deletions python-package/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ download = False
depends = tests_start
deps =
-r requirements/tests.txt
-c requirements/dev.txt
setenv =
NP_TESTLOG_NAME = {env:NP_TESTLOG_NAME:}_{envname}
extras =
Expand All @@ -37,8 +36,7 @@ commands =
depends =
skip_install = True
deps =
coverage
-c requirements/dev.txt
-r requirements/tests.txt
setenv =
NP_TESTLOG_NAME =
commands =
Expand All @@ -51,8 +49,7 @@ depends =
py{39, 38,37,36}
skip_install = True
deps =
coverage
-c requirements/dev.txt
-r requirements/tests.txt
setenv =
NP_TESTLOG_NAME =
commands =
Expand All @@ -66,7 +63,6 @@ depends =
skip_install = True
deps =
junitparser
-c requirements/dev.txt
setenv =
NP_TESTLOG_NAME =
commands =
Expand All @@ -77,9 +73,7 @@ depends =
skip_install = True
deps =
-r requirements/style.txt
pytest # to analyse tests
pytest_mock # to analyse tests
-c requirements/dev.txt
-r requirements/tests.txt # to analyse tests
setenv =
NP_TESTLOG_NAME =
commands =
Expand Down
13 changes: 4 additions & 9 deletions python-plugin-example/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ download = False
depends = tests_start
deps =
-r requirements/tests.txt
-c requirements/dev.txt
commands =
# !!! specialties for running in this dev env. Remove them when adopting for a real-world plugin.
# get the current in-dev version of nichtparasoup
Expand All @@ -36,8 +35,7 @@ commands =
depends =
skip_install = True
deps =
coverage
-c requirements/dev.txt
-r requirements/tests.txt
commands =
{envpython} -m coverage erase
{envpython} -c 'import shutil; shutil.rmtree("reports", True);'
Expand All @@ -48,8 +46,7 @@ depends =
py{39,38,37,36}
skip_install = True
deps =
coverage
-c requirements/dev.txt
-r requirements/tests.txt
commands =
{envpython} -m coverage xml
{envpython} -m coverage report
Expand All @@ -61,7 +58,6 @@ depends =
skip_install = True
deps =
junitparser
-c requirements/dev.txt
commands =
{envpython} -m junitparser merge --glob reports/pytests/*.xml reports/pytests.xml

Expand All @@ -70,11 +66,10 @@ depends =
skip_install = True
deps =
-r requirements/style.txt
pytest # to analyse tests
-c requirements/dev.txt
-r requirements/tests.txt # to analyse tests
commands =
# !!! specialties for running in this dev env. Remove them when adopting for a real-world plugin.
# get the current in-dev version of nichtparasoup
{envpython} -m flake8
{envpython} -m pip install -q -U {toxinidir}/../python-package -c requirements/dev.txt
{envpython} -m pip install -q -U {toxinidir}/../python-package # -c requirements/dev.txt
{envpython} -m mypy

0 comments on commit 41250b0

Please sign in to comment.