Skip to content

Commit

Permalink
Nox: use inplace installs (#5865)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Aug 30, 2018
1 parent 491c2b1 commit a0bafed
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions nox.py
Expand Up @@ -35,8 +35,10 @@ def default(session):
Python corresponding to the ``nox`` binary the ``PATH`` can
run the tests.
"""
# Install all test dependencies, then install this package in-place.
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
# Install all test dependencies, then install local packages in-place.
session.install('mock', 'pytest', 'pytest-cov')
for local_dep in LOCAL_DEPS:
session.install('-e', local_dep)
session.install('-e', '.')

# Run py.test against the unit tests.
Expand Down Expand Up @@ -86,11 +88,12 @@ def system(session, py):
# Use pre-release gRPC for system tests.
session.install('--pre', 'grpcio')

# Install all test dependencies, then install this package into the
# virtualenv's dist-packages.
session.install('mock', 'pytest', *LOCAL_DEPS)
session.install(os.path.join('..', 'test_utils'))
session.install('.')
# Install all test dependencies, then install local packages in-place.
session.install('mock', 'pytest')
for local_dep in LOCAL_DEPS:
session.install('-e', local_dep)
session.install('-e', os.path.join('..', 'test_utils'))
session.install('-e', '.')

# Run py.test against the system tests.
session.run(
Expand Down

0 comments on commit a0bafed

Please sign in to comment.