|
27 | 27 | BLACK_PATHS = ("docs", "google", "samples", "tests", "noxfile.py", "setup.py")
|
28 | 28 |
|
29 | 29 | DEFAULT_PYTHON_VERSION = "3.8"
|
30 |
| -SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"] |
31 |
| -UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] |
| 30 | +SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.10"] |
| 31 | +UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"] |
32 | 32 | CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
|
33 | 33 |
|
34 | 34 | # 'docfx' is excluded since it only needs to run in 'docs-presubmit'
|
@@ -69,7 +69,12 @@ def default(session, install_extras=True):
|
69 | 69 | constraints_path,
|
70 | 70 | )
|
71 | 71 |
|
72 |
| - install_target = ".[all]" if install_extras else "." |
| 72 | + if install_extras and session.python == "3.10": |
| 73 | + install_target = ".[bqstorage,pandas,tqdm,opentelemetry]" |
| 74 | + elif install_extras: |
| 75 | + install_target = ".[all]" |
| 76 | + else: |
| 77 | + install_target = "." |
73 | 78 | session.install("-e", install_target, "-c", constraints_path)
|
74 | 79 |
|
75 | 80 | session.install("ipython", "-c", constraints_path)
|
@@ -153,7 +158,11 @@ def system(session):
|
153 | 158 | # Data Catalog needed for the column ACL test with a real Policy Tag.
|
154 | 159 | session.install("google-cloud-datacatalog", "-c", constraints_path)
|
155 | 160 |
|
156 |
| - session.install("-e", ".[all]", "-c", constraints_path) |
| 161 | + if session.python == "3.10": |
| 162 | + extras = "[bqstorage,pandas,tqdm,opentelemetry]" |
| 163 | + else: |
| 164 | + extras = "[all]" |
| 165 | + session.install("-e", f".{extras}", "-c", constraints_path) |
157 | 166 | session.install("ipython", "-c", constraints_path)
|
158 | 167 |
|
159 | 168 | # Run py.test against the system tests.
|
|
0 commit comments