|
47 | 47 |
|
48 | 48 | CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() |
49 | 49 |
|
50 | | -LOWER_BOUND_CONSTRAINTS_FILE = CURRENT_DIRECTORY / "constraints.txt" |
| 50 | +if (CURRENT_DIRECTORY / "testing").exists(): |
| 51 | + LOWER_BOUND_CONSTRAINTS_FILE = ( |
| 52 | + CURRENT_DIRECTORY / "testing" / f"constraints-{ALL_PYTHON[0]}.txt" |
| 53 | + ) |
| 54 | +else: |
| 55 | + LOWER_BOUND_CONSTRAINTS_FILE = CURRENT_DIRECTORY / "constraints.txt" |
51 | 56 | PACKAGE_NAME = "google-cloud-monitoring-dashboards" |
52 | 57 |
|
53 | 58 | UNIT_TEST_STANDARD_DEPENDENCIES = [ |
@@ -468,14 +473,6 @@ def prerelease_deps(session, protobuf_implementation): |
468 | 473 | unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES |
469 | 474 | session.install(*unit_deps_all) |
470 | 475 |
|
471 | | - # Install dependencies for the system test environment |
472 | | - system_deps_all = ( |
473 | | - SYSTEM_TEST_STANDARD_DEPENDENCIES |
474 | | - + SYSTEM_TEST_EXTERNAL_DEPENDENCIES |
475 | | - + SYSTEM_TEST_EXTRAS |
476 | | - ) |
477 | | - session.install(*system_deps_all) |
478 | | - |
479 | 476 | # Because we test minimum dependency versions on the minimum Python |
480 | 477 | # version, the first version we test with in the unit tests sessions has a |
481 | 478 | # constraints file containing all dependencies and extras. |
@@ -587,14 +584,6 @@ def core_deps_from_source(session, protobuf_implementation): |
587 | 584 | unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES |
588 | 585 | session.install(*unit_deps_all) |
589 | 586 |
|
590 | | - # Install dependencies for the system test environment |
591 | | - system_deps_all = ( |
592 | | - SYSTEM_TEST_STANDARD_DEPENDENCIES |
593 | | - + SYSTEM_TEST_EXTERNAL_DEPENDENCIES |
594 | | - + SYSTEM_TEST_EXTRAS |
595 | | - ) |
596 | | - session.install(*system_deps_all) |
597 | | - |
598 | 587 | # Because we test minimum dependency versions on the minimum Python |
599 | 588 | # version, the first version we test with in the unit tests sessions has a |
600 | 589 | # constraints file containing all dependencies and extras. |
|
0 commit comments