Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit 7f9e75a

Browse files
chore: update docfx minimum Python version (#185)
* chore: update docfx minimum Python version * test: update test for python-asset deprecation * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 7b984ed commit 7f9e75a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

noxfile.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ def install_systemtest_dependencies(session, *constraints):
220220
@nox.session(python=["3.7", "3.8", "3.9"])
221221
@nox.parametrize(
222222
"library",
223-
["python-asset"],
223+
[
224+
("google-cloud-python", "google-cloud-asset"),
225+
],
224226
ids=["asset"],
225227
)
226228
def test(session, library):
@@ -230,6 +232,9 @@ def test(session, library):
230232
NOTE: The unit and system test functions above are copied from the templates.
231233
They will need to be updated when the templates change.
232234
"""
235+
package = ""
236+
if type(library) == tuple:
237+
library, package = library
233238
try:
234239
session.run("git", "-C", library, "pull", external=True)
235240
except nox.command.CommandFailed:
@@ -242,6 +247,8 @@ def test(session, library):
242247
)
243248

244249
session.cd(library)
250+
if package:
251+
session.cd(f"packages/{package}")
245252
unit(session)
246253
# system tests are run 3.7 only
247254
if session.python == "3.7":
@@ -337,13 +344,15 @@ def docs(session):
337344
)
338345

339346

340-
@nox.session(python="3.9")
347+
@nox.session(python="3.10")
341348
def docfx(session):
342349
"""Build the docfx yaml files for this library."""
343350

344351
session.install("-e", ".")
345352
session.install(
346-
"sphinx==4.0.1", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml"
353+
"gcp-sphinx-docfx-yaml",
354+
"alabaster",
355+
"recommonmark",
347356
)
348357

349358
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)

0 commit comments

Comments
 (0)