MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / readmegen

Function readmegen

samples/compute/noxfile.py:281–292  ·  view source on GitHub ↗

(Re-)generates the readme for a sample.

(session: nox.sessions.Session, path: str)

Source from the content-addressed store, hash-verified

279@nox.session
280@nox.parametrize("path", GENERATED_READMES)
281def readmegen(session: nox.sessions.Session, path: str) -> None:
282 """(Re-)generates the readme for a sample."""
283 session.install("jinja2", "pyyaml")
284 dir_ = os.path.dirname(path)
285
286 if os.path.exists(os.path.join(dir_, "requirements.txt")):
287 session.install("-r", os.path.join(dir_, "requirements.txt"))
288
289 in_file = os.path.join(dir_, "README.rst.in")
290 session.run(
291 "python", _get_repo_root() + "/scripts/readme-gen/readme_gen.py", in_file
292 )

Callers

nothing calls this directly

Calls 1

_get_repo_rootFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…