|
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 = "grafeas" |
52 | 57 |
|
53 | 58 | UNIT_TEST_STANDARD_DEPENDENCIES = [ |
@@ -467,14 +472,6 @@ def prerelease_deps(session, protobuf_implementation): |
467 | 472 | unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES |
468 | 473 | session.install(*unit_deps_all) |
469 | 474 |
|
470 | | - # Install dependencies for the system test environment |
471 | | - system_deps_all = ( |
472 | | - SYSTEM_TEST_STANDARD_DEPENDENCIES |
473 | | - + SYSTEM_TEST_EXTERNAL_DEPENDENCIES |
474 | | - + SYSTEM_TEST_EXTRAS |
475 | | - ) |
476 | | - session.install(*system_deps_all) |
477 | | - |
478 | 475 | # Because we test minimum dependency versions on the minimum Python |
479 | 476 | # version, the first version we test with in the unit tests sessions has a |
480 | 477 | # constraints file containing all dependencies and extras. |
@@ -586,14 +583,6 @@ def core_deps_from_source(session, protobuf_implementation): |
586 | 583 | unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES |
587 | 584 | session.install(*unit_deps_all) |
588 | 585 |
|
589 | | - # Install dependencies for the system test environment |
590 | | - system_deps_all = ( |
591 | | - SYSTEM_TEST_STANDARD_DEPENDENCIES |
592 | | - + SYSTEM_TEST_EXTERNAL_DEPENDENCIES |
593 | | - + SYSTEM_TEST_EXTRAS |
594 | | - ) |
595 | | - session.install(*system_deps_all) |
596 | | - |
597 | 586 | # Because we test minimum dependency versions on the minimum Python |
598 | 587 | # version, the first version we test with in the unit tests sessions has a |
599 | 588 | # constraints file containing all dependencies and extras. |
|
0 commit comments