Skip to content

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.py and the window's About PINNStudio read it;
  • CITATION.cff: version and date-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):

  1. 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).
  2. 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).
  3. Version commit. One commit sets the version in pinnstudio/__init__.py and CITATION.cff and moves the changelog entries under the new version heading.
  4. Merge into main. The development branch is merged into main (for 1.5.0: "Merge branch 'cleanup' into main (release 1.5.0)").
  5. Tag. An annotated tag vX.Y.Z with the message "PINNStudio X.Y.Z" on the merge commit.
  6. 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 on pip install pinnstudio and the one-command installers install the new version.
  7. Documentation. Publishing a release does not deploy this site. The docs.yml workflow deploys to GitHub Pages only when a maintainer starts it by hand on main with deployment selected, and only once publication has been approved (repository variable DOCS_PUBLISH_APPROVED). The steps are in tools/docs/DEPLOY.md.

Documentation checklist for a release

Before the version commit:

  • Source-code links. After the tag vX.Y.Z exists, set extra.source_ref in mkdocs.yml from main to the tag (this one value is the base of every source-code link: extra.repo_blob + extra.source_ref + path), then run python tools/docs/make_source_links.py and python tools/docs/make_gallery.py and commit the changed snippets and gallery pages. Do not set it to a tag that does not exist yet.
  • Edit links. edit_uri in mkdocs.yml points to main (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 pinnstudio and the installers.
  • Changelog page. website/about/changelog.md follows CHANGELOG.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) and python 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.md and look through the changed images before committing.
  • README and citation. The README's version-specific lines and CITATION.cff name the same version (the README is also the PyPI description).
  • Strict build and link check pass on the pull request (the docs.yml workflow).
  • 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).