Skip to content

Commit

Permalink
Shorten nox virtualenv names to avoid hashing. (#3585)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver authored Jul 6, 2017
1 parent 546c1ba commit f3223cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/google-cloud-python-speech/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def unit_tests(session, python_version):
# Run unit tests against all supported versions of Python.
session.interpreter = 'python{}'.format(python_version)

# Set the virtualenv dirname.
session.virtualenv_dirname = 'unit-' + python_version

# Install all test dependencies, then install this package in-place.
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
session.install('-e', '.')
Expand All @@ -54,6 +57,9 @@ def system_tests(session, python_version):
# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)

# Set the virtualenv dirname.
session.virtualenv_dirname = 'sys-' + python_version

# Install all test dependencies, then install this package into the
# virutalenv's dist-packages.
session.install('mock', 'pytest', *LOCAL_DEPS)
Expand Down Expand Up @@ -88,6 +94,10 @@ def lint(session):
def lint_setup_py(session):
"""Verify that setup.py is valid (including RST check)."""
session.interpreter = 'python3.6'

# Set the virtualenv dirname.
session.virtualenv_dirname = 'setup'

session.install('docutils', 'Pygments')
session.run(
'python', 'setup.py', 'check', '--restructuredtext', '--strict')
Expand Down

0 comments on commit f3223cc

Please sign in to comment.