Skip to content

Commit

Permalink
Force install tox>=4 for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzymadness committed Feb 10, 2023
1 parent 5b5c6a4 commit f1990b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ def tests(session: nox.Session) -> None:
session.create_tmp() # Fixes permission errors on Windows
session.install("-r", "requirements-test.txt")
session.install("-e", ".[tox_to_nox]")
if session.python == "3.7":
# Force reinstall tox to version 4+
# This is needed for Python 3.7 because there is
# a dependency conflict between argcomplete and
# the latest tox (both depend on a different
# version of importlib-metadata for Py 3.7)
# and if we just let pip install the latest version
# of tox, it installs tox 3 because then all deps match.
session.install("tox>=4")
session.run(
"pytest",
"--cov=nox",
Expand Down

0 comments on commit f1990b4

Please sign in to comment.