Skip to content

Commit

Permalink
Merge pull request #165 from dmtucker/constrain
Browse files Browse the repository at this point in the history
Ensure expected versions are installed while testing
  • Loading branch information
dmtucker committed Feb 14, 2024
2 parents e417fef + 291da1f commit a2ca9a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
import mypy.version

pytest_plugins = "pytester"


def pytest_report_header():
return f"mypy: {mypy.version.__version__}"
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
minversion = 3.20
minversion = 4.4
isolated_build = true
envlist =
py37-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.50, 0.x, 1.0, 1.x}
Expand All @@ -22,6 +22,7 @@ python =
3.12: py312-pytest{6.2, 6.x, 7.0, 7.x, 8.0, 8.x}-mypy{0.90, 0.x, 1.0, 1.x}

[testenv]
constrain_package_deps = true
deps =
pytest4.6: pytest ~= 4.6.0
pytest5.0: pytest ~= 5.0.0
Expand Down Expand Up @@ -54,6 +55,7 @@ testpaths = tests

[testenv:publish]
passenv = TWINE_*
constrain_package_deps = false
deps =
build[virtualenv] ~= 0.9.0
twine ~= 4.0.0
Expand Down

0 comments on commit a2ca9a8

Please sign in to comment.