|
19 | 19 | from __future__ import absolute_import |
20 | 20 | import os |
21 | 21 | import pathlib |
22 | | -import re |
23 | 22 | import shutil |
24 | 23 |
|
25 | 24 | import nox |
@@ -184,73 +183,6 @@ def system(session): |
184 | 183 | ) |
185 | 184 |
|
186 | 185 |
|
187 | | -@nox.session(python=DEFAULT_PYTHON_VERSION) |
188 | | -def prerelease(session): |
189 | | - # TODO: Geoalchemy, Shapely, Alembic from extras |
190 | | - session.install( |
191 | | - "--prefer-binary", |
192 | | - "--pre", |
193 | | - "--upgrade", |
194 | | - "google-api-core", |
195 | | - "google-cloud-bigquery", |
196 | | - "google-cloud-bigquery-storage", |
197 | | - "google-cloud-core", |
198 | | - "google-resumable-media", |
199 | | - "grpcio", |
200 | | - ) |
201 | | - session.install( |
202 | | - "freezegun", |
203 | | - "google-cloud-testutils", |
204 | | - "mock", |
205 | | - "psutil", |
206 | | - "pytest", |
207 | | - "pytest-cov", |
208 | | - "pytz", |
209 | | - ) |
210 | | - |
211 | | - # Because we test minimum dependency versions on the minimum Python |
212 | | - # version, the first version we test with in the unit tests sessions has a |
213 | | - # constraints file containing all dependencies and extras. |
214 | | - with open( |
215 | | - CURRENT_DIRECTORY |
216 | | - / "testing" |
217 | | - / f"constraints-{UNIT_TEST_PYTHON_VERSIONS[0]}.txt", |
218 | | - encoding="utf-8", |
219 | | - ) as constraints_file: |
220 | | - constraints_text = constraints_file.read() |
221 | | - |
222 | | - # Ignore leading whitespace and comment lines. |
223 | | - deps = [ |
224 | | - match.group(1) |
225 | | - for match in re.finditer( |
226 | | - r"^\s*(\S+)(?===\S+)", constraints_text, flags=re.MULTILINE |
227 | | - ) |
228 | | - ] |
229 | | - |
230 | | - # We use --no-deps to ensure that pre-release versions aren't overwritten |
231 | | - # by the version ranges in setup.py. |
232 | | - session.install(*deps) |
233 | | - session.install("--no-deps", "-e", ".[all]") |
234 | | - |
235 | | - # Print out prerelease package versions. |
236 | | - session.run("python", "-m", "pip", "freeze") |
237 | | - |
238 | | - # Run all tests, except a few samples tests which require extra dependencies. |
239 | | - session.run( |
240 | | - "py.test", |
241 | | - "--quiet", |
242 | | - f"--junitxml=prerelease_unit_{session.python}_sponge_log.xml", |
243 | | - os.path.join("tests", "unit"), |
244 | | - ) |
245 | | - session.run( |
246 | | - "py.test", |
247 | | - "--quiet", |
248 | | - f"--junitxml=prerelease_system_{session.python}_sponge_log.xml", |
249 | | - os.path.join("tests", "system"), |
250 | | - ) |
251 | | - # TODO: should we add compliance test suite, too? It takes quite a lot longer than our other tests, though. |
252 | | - |
253 | | - |
254 | 186 | @nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS) |
255 | 187 | def compliance(session): |
256 | 188 | """Run the SQLAlchemy dialect-compliance system tests""" |
|
0 commit comments