Skip to content

Commit 66de1dd

Browse files
authored
Shorten nox virtualenv names to avoid hashing. (#3585)
1 parent fcfdf18 commit 66de1dd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • packages/google-cloud-vision

packages/google-cloud-vision/nox.py

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

30+
# Set the virtualenv dirname.
31+
session.virtualenv_dirname = 'unit-' + python_version
32+
3033
# Install all test dependencies, then install this package in-place.
3134
session.install('mock', 'pytest', 'pytest-cov', '../core/')
3235
session.install('-e', '.')
@@ -51,6 +54,9 @@ def system_tests(session, python_version):
5154
# Run unit tests against all supported versions of Python.
5255
session.interpreter = 'python{}'.format(python_version)
5356

57+
# Set the virtualenv dirname.
58+
session.virtualenv_dirname = 'sys-' + python_version
59+
5460
# Install all test dependencies, then install this package in-place.
5561
session.install('pytest', '../core/', '../storage/')
5662
session.install('../test_utils/')
@@ -105,6 +111,10 @@ def lint(session):
105111
def lint_setup_py(session):
106112
"""Verify that setup.py is valid (including RST check)."""
107113
session.interpreter = 'python3.6'
114+
115+
# Set the virtualenv dirname.
116+
session.virtualenv_dirname = 'setup'
117+
108118
session.install('docutils', 'pygments')
109119
session.run(
110120
'python', 'setup.py', 'check', '--restructuredtext', '--strict')

0 commit comments

Comments
 (0)