Skip to content

Commit b02f76f

Browse files
authored
Nox: use inplace installs (#5865)
1 parent d2e3ec6 commit b02f76f

File tree

1 file changed

+10
-7
lines changed
  • packages/google-cloud-firestore

1 file changed

+10
-7
lines changed

packages/google-cloud-firestore/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.
@@ -86,11 +88,12 @@ def system(session, py):
8688
# Use pre-release gRPC for system tests.
8789
session.install('--pre', 'grpcio')
8890

89-
# Install all test dependencies, then install this package into the
90-
# virtualenv's dist-packages.
91-
session.install('mock', 'pytest', *LOCAL_DEPS)
92-
session.install(os.path.join('..', 'test_utils'))
93-
session.install('.')
91+
# Install all test dependencies, then install local packages in-place.
92+
session.install('mock', 'pytest')
93+
for local_dep in LOCAL_DEPS:
94+
session.install('-e', local_dep)
95+
session.install('-e', os.path.join('..', 'test_utils'))
96+
session.install('-e', '.')
9497

9598
# Run py.test against the system tests.
9699
session.run(

0 commit comments

Comments
 (0)