Skip to content

Commit 07f85ab

Browse files
authored
Shorten nox virtualenv names to avoid hashing. (#3585)
1 parent 3beb2f9 commit 07f85ab

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • packages/google-cloud-datastore

packages/google-cloud-datastore/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', '.')
@@ -54,6 +57,9 @@ def system_tests(session, python_version):
5457
# Run the system tests against latest Python 2 and Python 3 only.
5558
session.interpreter = 'python{}'.format(python_version)
5659

60+
# Set the virtualenv dirname.
61+
session.virtualenv_dirname = 'sys-' + python_version
62+
5763
# Install all test dependencies, then install this package into the
5864
# virutalenv's dist-packages.
5965
session.install('mock', 'pytest', *LOCAL_DEPS)
@@ -112,6 +118,10 @@ def lint(session):
112118
def lint_setup_py(session):
113119
"""Verify that setup.py is valid (including RST check)."""
114120
session.interpreter = 'python3.6'
121+
122+
# Set the virtualenv dirname.
123+
session.virtualenv_dirname = 'setup'
124+
115125
session.install('docutils', 'Pygments')
116126
session.run(
117127
'python', 'setup.py', 'check', '--restructuredtext', '--strict')

0 commit comments

Comments
 (0)