Skip to content

fix: detect python version from project and use min Python version#178

Merged
rich-iannone merged 2 commits into
mainfrom
fix-detect-python-version-from-pyproject
May 20, 2026
Merged

fix: detect python version from project and use min Python version#178
rich-iannone merged 2 commits into
mainfrom
fix-detect-python-version-from-pyproject

Conversation

@rich-iannone
Copy link
Copy Markdown
Member

This PR updates the setup_github_pages() function in great_docs/cli.py to enforce a minimum required Python version for Great Docs in CI. If the detected project Python version is below 3.11, the function now automatically upgrades it to 3.11 (min Python version requirement) and notifies the user when using great-docs setup-github-pages.

The Python version is only used to fill the {python_version} placeholder in the generated GitHub Actions workflow template (i.e., it controls what actions/setup-python installs in CI for the docs build job). This determination doesn't affect the user's local environment or their project's own requires-python metadata.

@rich-iannone rich-iannone merged commit 6473243 into main May 20, 2026
7 checks passed
@rich-iannone rich-iannone deleted the fix-detect-python-version-from-pyproject branch May 20, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant