1.2.0
1.2.0 - 2025-05-20
Summary
With #420, any GitHub repos using the PTB for documentation will also need to
reconfigure the GitHub Pages settings for each repo:
- Go to the affected repo's GitHub page
- Select 'Settings'
- Scroll down & select 'Pages'
- Within the 'Build and deployment' section, change 'Source' to 'GitHub Actions'.
This should also create a 'github-pages' environment, if it does not yet exist.
We'll also need to configure settings for github-pages environment:
- Go to the affected repo's GitHub page
- Select 'Settings'
- Scroll down & select 'Environment'
- Click on 'github-pages'
- In the 'Deployment branches and tags', click 'Add deployment branch or tag rule'
- Select 'Ref type' to be 'Tag' and set the 'Name pattern' to
[0-9]*.[0-9]*.[0-9]*
(or whatever matches that repo's tags)
For most repos using the PTB, the updating of the github pages only happens when a
PR is merged to main, so please check post-merge that it worked as expected.
With #422, we have hardened the security in our GitHub workflows by explicitly
setting permissions to the default GitHub token. In a few repos who greatly differ
from the default PTB setup, this might lead to small issues which require the allowed
permissions to be increased for specific jobs.
⚒️ Refactorings
- #412: Refactored pre commit hook package version.py into nox task
Security
- #420: Replaced 3rd party action with GitHub actions for gh-pages
- #422: Set permissions within the GitHub workflows to restrict usage of the default GitHub token
✨ Features
- #161: Added support for installing extras & not using a cache to the python-environment action
- #408: Added support for GitHub runners who do not per default have pipx to use the python-environment action
- #433: Removed directory .html-documentation/.doctrees after creating documentation
- #436: Updated template for new projects to poetry 2.x