Skip to content

Commit e653c3e

Browse files
authored
chore(python): allow post processor to run without docs (#2126)
1 parent ba74133 commit e653c3e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

synthtool/languages/python_mono_repo.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,12 @@ def owlbot_main(package_dir: str) -> None:
306306
)
307307
synthtool.move([templated_files], package_dir)
308308

309-
# create symlink docs/README.rst if it doesn't exist
310-
create_symlink_docs_readme(package_dir)
309+
if Path(f"{package_dir}/docs").exists():
310+
# create symlink docs/README.rst if it doesn't exist
311+
create_symlink_docs_readme(package_dir)
311312

312-
# create CHANGELOG.md and symlink to docs/CHANGELOG.md if it doesn't exist
313-
create_changelog_and_symlink_to_docs_changelog(package_dir)
313+
# create CHANGELOG.md and symlink to docs/CHANGELOG.md if it doesn't exist
314+
create_changelog_and_symlink_to_docs_changelog(package_dir)
314315

315316
if Path(f"{package_dir}/setup.py").exists():
316317
# update the url in setup.py to point to google-cloud-python

0 commit comments

Comments
 (0)