Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(python): refactor unit / system test dependency install #1294

Merged
merged 11 commits into from
Apr 1, 2022
Merged
Prev Previous commit
Next Next commit
chore: use editable installs for local deps
  • Loading branch information
tseaver committed Oct 4, 2021
commit be04805d067fc8fa37c9874461a78a54289ee438
8 changes: 4 additions & 4 deletions synthtool/gcp/templates/python_library/noxfile.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ def install_unittest_dependencies(session, *constraints):
session.install(*UNIT_TEST_EXTERNAL_DEPENDENCIES, *constraints)

if UNIT_TEST_LOCAL_DEPENDENCIES:
session.install(*UNIT_TEST_LOCAL_DEPENDENCIES, *constraints)
session.install("-e", *UNIT_TEST_LOCAL_DEPENDENCIES, *constraints)

if UNIT_TEST_DEPENDENCIES:
session.install(*UNIT_TEST_DEPENDENCIES, *constraints)
session.install("-e", *UNIT_TEST_DEPENDENCIES, *constraints)

if UNIT_TEST_EXTRAS_BY_PYTHON:
extras = UNIT_TEST_EXTRAS_BY_PYTHON.get(session.python, [])
Expand Down Expand Up @@ -191,10 +191,10 @@ def install_systemtest_dependencies(session, *constraints):
session.install(*SYSTEM_TEST_EXTERNAL_DEPENDENCIES, *constraints)

if SYSTEM_TEST_LOCAL_DEPENDENCIES:
session.install(*SYSTEM_TEST_LOCAL_DEPENDENCIES, *constraints)
session.install("-e", *SYSTEM_TEST_LOCAL_DEPENDENCIES, *constraints)

if SYSTEM_TEST_DEPENDENCIES:
session.install(*SYSTEM_TEST_DEPENDENCIES, *constraints)
session.install("-e", *SYSTEM_TEST_DEPENDENCIES, *constraints)

if SYSTEM_TEST_EXTRAS_BY_PYTHON:
extras = SYSTEM_TEST_EXTRAS_BY_PYTHON.get(session.python, [])
Expand Down