Skip to content

Commit 5569da2

Browse files
authored
Shorten nox virtualenv names to avoid hashing. (#3585)
1 parent 51f9d6a commit 5569da2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

nox.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def unit_tests(session, python_version):
3030
# Run unit tests against all supported versions of Python.
3131
session.interpreter = 'python{}'.format(python_version)
3232

33+
# Set the virtualenv dirname.
34+
session.virtualenv_dirname = 'unit-' + python_version
35+
3336
# Install all test dependencies, then install this package in-place.
3437
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
3538
session.install('-e', '.')
@@ -66,6 +69,10 @@ def lint(session):
6669
def lint_setup_py(session):
6770
"""Verify that setup.py is valid (including RST check)."""
6871
session.interpreter = 'python3.6'
72+
73+
# Set the virtualenv dirname.
74+
session.virtualenv_dirname = 'setup'
75+
6976
session.install('docutils', 'Pygments')
7077
session.run(
7178
'python', 'setup.py', 'check', '--restructuredtext', '--strict')
@@ -83,6 +90,9 @@ def system_tests(session, python_version):
8390
# Run the system tests against latest Python 2 and Python 3 only.
8491
session.interpreter = 'python{}'.format(python_version)
8592

93+
# Set the virtualenv dirname.
94+
session.virtualenv_dirname = 'sys-' + python_version
95+
8696
# Install all test dependencies, then install this package into the
8797
# virtualenv's dist-packages.
8898
session.install('mock', 'pytest', *LOCAL_DEPS)

0 commit comments

Comments
 (0)