Skip to content

CI: Use locked Poetry setup in release workflows#24

Merged
akr-amd merged 3 commits into
masterfrom
update-poetry-release-workflows
Jun 25, 2026
Merged

CI: Use locked Poetry setup in release workflows#24
akr-amd merged 3 commits into
masterfrom
update-poetry-release-workflows

Conversation

@akr-amd

@akr-amd akr-amd commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Read the Poetry version from .poetry-version in release workflows instead of hardcoding the old version.
  • Replace the docs workflow's inline requirements list with poetry install --with docs so it uses poetry.lock.

Test plan

  • ReadLints for .github/workflows/ext-publish-to-pypi.yml and .github/workflows/ext-publish-to-gh-pages.yml
  • git diff --check -- .github/workflows/ext-publish-to-pypi.yml .github/workflows/ext-publish-to-gh-pages.yml
  • rg checks for the removed old Poetry pin and generated requirements install

Made with Cursor

Copilot AI review requested due to automatic review settings June 25, 2026 00:32
@akr-amd akr-amd self-assigned this Jun 25, 2026
@akr-amd akr-amd changed the title CI/CD: Use locked Poetry setup in release workflows CI: Use locked Poetry setup in release workflows Jun 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the external release/documentation GitHub Actions workflows to use the repository’s pinned Poetry version (from .poetry-version) and to install docs dependencies via Poetry so the workflow follows poetry.lock.

Changes:

  • Read Poetry version from .poetry-version in the PyPI publish workflow and use it to configure abatilo/actions-poetry.
  • Read Poetry version from .poetry-version in the GitHub Pages docs publish workflow and use it to configure abatilo/actions-poetry.
  • Replace the docs workflow’s inline requirements generation/install with poetry install --with docs (lockfile-driven installs).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/ext-publish-to-pypi.yml Uses .poetry-version output to pin Poetry in the PyPI build workflow.
.github/workflows/ext-publish-to-gh-pages.yml Uses .poetry-version output to pin Poetry and switches docs dependency installation to Poetry/lockfile.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 74 to +75
- name: Install documentation dependencies
run: |
cat > requirements.txt << 'EOF'
alabaster==0.7.13 ; python_full_version >= "3.8.3" and python_version < "4.0"
antlr4-python3-runtime==4.13.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
babel==2.12.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
certifi==2023.7.22 ; python_full_version >= "3.8.3" and python_version < "4.0"
charset-normalizer==3.2.0 ; python_full_version >= "3.8.3" and python_version < "4.0"
click==8.1.7 ; python_full_version >= "3.8.3" and python_version < "4.0"
colorama==0.4.6 ; python_full_version >= "3.8.3" and python_version < "4.0" and (sys_platform == "win32" or platform_system == "Windows")
commonmark==0.9.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
docutils==0.19 ; python_full_version >= "3.8.3" and python_version < "4.0"
idna==3.4 ; python_full_version >= "3.8.3" and python_version < "4.0"
imagesize==1.4.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
importlib-metadata==6.8.0 ; python_full_version >= "3.8.3" and python_version < "4.0"
jinja2==3.1.2 ; python_full_version >= "3.8.3" and python_version < "4.0"
loguru==0.7.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
markdown-it-py==3.0.0 ; python_full_version >= "3.8.3" and python_version < "4.0"
markdown==3.4.4 ; python_full_version >= "3.8.3" and python_version < "4.0"
markupsafe==2.1.3 ; python_full_version >= "3.8.3" and python_version < "4.0"
mdurl==0.1.2 ; python_full_version >= "3.8.3" and python_version < "4.0"
more-itertools==10.1.0 ; python_full_version >= "3.8.3" and python_version < "4.0"
packaging==23.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
pillow==10.4.0 ; python_full_version >= "3.8.3" and python_version < "4"
pygments==2.16.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
pytz==2023.3.post1 ; python_full_version >= "3.8.3" and python_version < "3.9"
pyyaml==6.0.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
recommonmark==0.6.0 ; python_full_version >= "3.8.3" and python_version < "4.0"
reportlab==4.0.4 ; python_full_version >= "3.8.3" and python_version < "4"
requests==2.29.0 ; python_full_version >= "3.8.3" and python_version < "4.0"
rich==13.5.2 ; python_full_version >= "3.8.3" and python_version < "4.0"
rst2pdf==0.99 ; python_full_version >= "3.8.3" and python_version < "4.0"
smartypants==2.0.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
snowballstemmer==2.2.0 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinx-autodoc-typehints==1.12.0 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinx-markdown-tables==0.0.17 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinx-rtd-theme==2.0.0 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinx==6.2.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinxcontrib-applehelp==1.0.4 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinxcontrib-devhelp==1.0.2 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinxcontrib-htmlhelp==2.0.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinxcontrib-jquery==4.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinxcontrib-jsmath==1.0.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinxcontrib-qthelp==1.0.3 ; python_full_version >= "3.8.3" and python_version < "4.0"
sphinxcontrib-serializinghtml==1.1.5 ; python_full_version >= "3.8.3" and python_version < "4.0"
typing-extensions==4.7.1 ; python_full_version >= "3.8.3" and python_version < "4.0"
urllib3==1.26.19 ; python_full_version >= "3.8.3" and python_version < "4.0"
win32-setctime==1.1.0 ; python_full_version >= "3.8.3" and python_version < "4.0" and sys_platform == "win32"
zipp==3.16.2 ; python_full_version >= "3.8.3" and python_version < "4.0"
EOF
poetry run pip install -r requirements.txt
run: poetry install --with docs
github-actions Bot added a commit that referenced this pull request Jun 25, 2026
@akr-amd akr-amd merged commit 6816533 into master Jun 25, 2026
7 checks passed
@akr-amd akr-amd deleted the update-poetry-release-workflows branch June 25, 2026 00:53
github-actions Bot added a commit that referenced this pull request Jun 25, 2026
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.

2 participants