Releases¶
Note
Releases are made by the maintainers. Whether and when a version is released, and what it contains, is decided by them; a contributor's pull request is not released until they approve it. This page describes the procedure as it is recorded in the repository (its files, workflows and history); it is not a promise of a schedule.
The list of releases is on Release history.
Version numbers¶
Versions are MAJOR.MINOR.PATCH and tags are v plus the version (v1.4.0, v1.5.0, ...). The version appears
in:
pinnstudio/__init__.py(__version__ = ...): the one place the version number is set;setup.pyand the window's About PINNStudio read it;CITATION.cff:versionanddate-released, set for a release;CHANGELOG.md: one heading per released version.
The running application reports pinnstudio.__version__ (Help › About PINNStudio, and the version saved in problem
files), and the "newer version available" notice compares it with the latest version on PyPI.
Changelog¶
CHANGELOG.md follows Keep a Changelog. Every change is recorded when it
is made, under Unreleased, in the sections Added, Changed and Fixed. At a release the Unreleased
entries move under a heading with the version number.
Procedure¶
The steps below are those visible in the repository history and workflows for the past releases (for example
the commits leading to the v1.5.0 tag):
- Tests on every platform. The full suite runs on Windows, macOS and Linux for every push to the
development branches (
platform-tests.yml). Before a release the platform matrix (platform-matrix.yml) is started, by a commit whose message contains[matrix]or by hand: the suite and the window check on older and newer versions of each system and of Python, and the one-command installers (Tests). - Checks of the examples and results, as the change requires:
tools/check_export_equivalence.py,tools/run_deepxde_examples.py, and the benchmark pages and figures regenerated from the recorded runs (tools/make_benchmarks_readme.py,tools/check_benchmarks_figures.py). - Version commit. One commit sets the version in
pinnstudio/__init__.pyandCITATION.cffand moves the changelog entries under the new version heading. - Merge into
main. The development branch is merged intomain(for 1.5.0: "Merge branch 'cleanup' into main (release 1.5.0)"). - Tag. An annotated tag
vX.Y.Zwith the message "PINNStudio X.Y.Z" on the merge commit. - PyPI. The sdist and wheel are built from the tagged commit (
python -m build, Building and packaging) and uploaded to PyPI. The repository has no workflow that publishes to PyPI; the upload is done by a maintainer. From then onpip install pinnstudioand the one-command installers install the new version. - Documentation. Publishing a release does not deploy this site. The
docs.ymlworkflow deploys to GitHub Pages only when a maintainer starts it by hand onmainwith deployment selected, and only once publication has been approved (repository variableDOCS_PUBLISH_APPROVED). The steps are intools/docs/DEPLOY.md.
Documentation checklist for a release¶
Before the version commit:
- Source-code links. After the tag
vX.Y.Zexists, setextra.source_refinmkdocs.ymlfrommainto the tag (this one value is the base of every source-code link:extra.repo_blob+extra.source_ref+ path), then runpython tools/docs/make_source_links.pyandpython tools/docs/make_gallery.pyand commit the changed snippets and gallery pages. Do not set it to a tag that does not exist yet. - Edit links.
edit_uriinmkdocs.ymlpoints tomain(edit/main/website/) once the documentation branch has been merged, so Edit this page and View source of this page open the merged files. - Installation page. The version installed by
pip install pinnstudioand the installers. - Changelog page.
website/about/changelog.mdfollowsCHANGELOG.md. - Generated pages.
python tools/docs/make_gallery.py(example gallery),python tools/docs/make_config_reference.py --check(configuration reference),python tools/docs/make_settings_index.py --check(the All settings page) andpython tools/docs/make_source_links.py --check(source-code links) report no changes, or their output is committed. - Screenshots. If the interface changed, regenerate them with the three commands in
tools/docs/README.mdand look through the changed images before committing. - README and citation. The README's version-specific lines and
CITATION.cffname the same version (the README is also the PyPI description). - Strict build and link check pass on the pull request (the
docs.ymlworkflow). - Deploy after the release is tagged (
tools/docs/DEPLOY.md, Deploying) and check the live site.
After a release¶
Further changes are recorded under a new Unreleased section of the changelog. Problems saved by the released version must keep opening in later versions: a configuration field that is renamed or removed needs a fallback when a saved problem is loaded (see the legacy fields in Configuration schema).