Skip to content

Commit c3afe2f

Browse files
authored
Nox: use inplace installs (#5865)
1 parent 6b2be70 commit c3afe2f

File tree

1 file changed

+10
-7
lines changed
  • packages/google-cloud-error-reporting

1 file changed

+10
-7
lines changed

packages/google-cloud-error-reporting/nox.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ def default(session):
3535
Python corresponding to the ``nox`` binary the ``PATH`` can
3636
run the tests.
3737
"""
38-
# Install all test dependencies, then install this package in-place.
39-
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
38+
# Install all test dependencies, then install local packages in-place.
39+
session.install('mock', 'pytest', 'pytest-cov')
40+
for local_dep in LOCAL_DEPS:
41+
session.install('-e', local_dep)
4042
session.install('-e', '.')
4143

4244
# Run py.test against the unit tests.
@@ -111,11 +113,12 @@ def system(session, py):
111113
# Use pre-release gRPC for system tests.
112114
session.install('--pre', 'grpcio')
113115

114-
# Install all test dependencies, then install this package into the
115-
# virtualenv's dist-packages.
116-
session.install('mock', 'pytest', *LOCAL_DEPS)
117-
session.install('../test_utils/')
118-
session.install('.')
116+
# Install all test dependencies, then install local packages in-place.
117+
session.install('mock', 'pytest')
118+
for local_dep in LOCAL_DEPS:
119+
session.install('-e', local_dep)
120+
session.install('-e', '../test_utils/')
121+
session.install('-e', '.')
119122

120123
# Run py.test against the system tests.
121124
session.run('py.test', '-vvv', 'tests/system', *session.posargs)

0 commit comments

Comments
 (0)