Skip to content

Commit 01aca60

Browse files
1 parent dfe4fc2 commit 01aca60

File tree

1 file changed

+0
-68
lines changed

1 file changed

+0
-68
lines changed

‎noxfile.py‎

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from __future__ import absolute_import
2020
import os
2121
import pathlib
22-
import re
2322
import shutil
2423

2524
import nox
@@ -184,73 +183,6 @@ def system(session):
184183
)
185184

186185

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-
254186
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
255187
def compliance(session):
256188
"""Run the SQLAlchemy dialect-compliance system tests"""

0 commit comments

Comments
 (0)