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 0460a70 commit 59b6b4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/google-cloud-resource-manager/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 Down Expand Up @@ -66,6 +69,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 59b6b4a

Please sign in to comment.