(Re-)generates the readme for a sample.
(session: nox.sessions.Session, path: str)
| 279 | @nox.session |
| 280 | @nox.parametrize("path", GENERATED_READMES) |
| 281 | def 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 | ) |
nothing calls this directly
no test coverage detected
searching dependent graphs…