Releases¶
Releases for FlaskBB can be found on pypi as well as on github.
FlaskBB loosely follows semantic versioning (semver) where all releases in each major version strive to be backwards compatible, though sometimes this will be broken in order to apply a bugfix or security patch. When this occurs the release notes will contain information about this.
Releases follow no particular cadence.
Branching and Tagging¶
Each release of FlaskBB will have a git tag such as v2.0.0 as well as a
branch such as 2.0.0. Minor releases and patches reside in their major
version branch (e.g. version 2.0.1 resides in the 2.0.0 branch).
The master branch is always the latest version of FlaskBB and versions are
cut from this branch.
Feature and example branches may also be found in the official FlaskBB repo but these are not considered release ready and may be unstable.
Making a Release¶
A release is cut by pushing a version tag. Everything after the push is done
by the Publish workflow in .github/workflows/publish.yaml, see
The Publish Workflow.
Check that the
Tests,Typingandpre-commitworkflows are green on the commit you are about to tag.Publishdoes not run any of them.Rebuild both themes and commit
flaskbb/staticandflaskbb/themes/aurora_dark/staticif anything changed:make frontend-buildThe wheel ships the compiled theme assets from the repository, the workflow does not build them.
make frontendwrites development builds, don’t release those.In
CHANGES.md, replaceUnreleasedbelow the version’s heading with the release date, e.g.Released October 15th, 2026.Set
__version__inflaskbb/_version.pyto the new version. Hatchling reads the package version from this file.Commit both files and create an annotated tag. The tag is the version with a
vprefix and must match__version__:git commit -m "release version v3.0.0" CHANGES.md flaskbb/_version.py git tag -a v3.0.0 -m "release version v3.0.0"
Push the branch and the tag together, so that neither arrives without the other:
git push --atomic origin master v3.0.0
Follow the
Publishrun in the Actions tab of the repository. If thepublishenvironment requires a reviewer, approve the deployment when the run waits for it.When the run has finished, open the draft release the workflow created on GitHub, write the release notes and publish it. Mark release candidates as pre-releases.
Warning
Publish runs for every tag that is pushed, not only version tags, and
it does not compare the tag with __version__. PyPI receives the version
from flaskbb/_version.py, while the Docker job derives the wheel’s file
name from the tag. If they differ, the Docker job fails after the upload
to PyPI has already happened.
PyPI never accepts the same version twice. If something is wrong with a release after it has been uploaded, fix it and release the next version instead of moving the tag.
The Publish Workflow¶
buildBuilds the sdist and the wheel with
uv build.SOURCE_DATE_EPOCHis set to the commit date so that the build is reproducible. The build hook inhatch_build.pycompiles the translations into the wheel.create-releaseCreates a draft GitHub release for the tag and attaches the sdist and the wheel.
publish-pypiUploads the sdist and the wheel to PyPI with trusted publishing, there is no API token. PyPI trusts the workflow by its file name
publish.yamland the environmentpublish, renaming either one requires updating the trusted publisher on PyPI.publish-dockerRuns after the upload to PyPI. Builds the release image (
docker/Dockerfile) from the wheel forlinux/amd64andlinux/arm64and pushes it toghcr.io/flaskbb/flaskbb, once as it is and once with thepluginsextra, which contains all official plugins.
The image tags follow the version. Pre-releases only get their exact version:
Tag |
Image tags |
|---|---|
|
|
|
|
See Docker Deployment for how the images are used.
Deprecation Policy¶
A release of FlaskBB may deprecate existing features and begin emitting
FlaskBBDeprecation warnings.
These warnings are on by default and will announce for the first time each
deprecated usage is detected. If you want to ignore these warnings, this
behavior can be modified by setting DEPRECATION_LEVEL in your configuration
file or setting FLASKBB_DEPRECATION_LEVEL in your environment to a level
from the builtin warnings module.
For more details on interacting with warnings see the official documentation on warnings.
In general, a feature deprecated in a release will not be fully removed until the next major version. For example, a feature deprecated in 2.1.0 would not be removed until 3.0.0. There may be exceptions to this, such as if a deprecated feature is found to be a security risk.
Note
If you are developing on FlaskBB the level for FlaskBBDeprecation warnings
is always set to error when running tests to ensure that deprecated
behavior isn’t being relied upon. If you absolutely need to downgrade to a
non-exception level, use pytest’s recwarn fixture and set the level with
warnings.simplefilter
For more details on using deprecations in plugins or extensions, see Deprecation Helpers.