Skip to main content

Verri version, such flavour, wow

A set of opinionated yet tasty and simple calendar-based PEP-440 compliant versioning schemes to set-and-forget for Python projects. Using pdm-backend, like this:

[build-system]
requires = ["pdm-backend", "verri"]
build-backend = "pdm.backend"

[project]
dynamic = ["version"]

[tool.pdm.version]
source = "call"
getter = "verri.tasty:pineapple"

Every time your project is built (like locally when it gets pip installed, during pdm install or on CI/CD during testing or release steps), the project's dynamic version can be automatically determined by verri.

There's a few flavours available:

  • 🍓, verri.tasty:strawberry: a version based on the HEAD commit date, appending a counter at the end for the number of commits since the HEAD commit date, like 2026.1.2.0;
  • 🍍, verri.tasty:pineapple: also based on the HEAD commit date, creating a 'release version' much like the strawberry flavour on CI/CD environments or referencing the HEAD commit's hash otherwise, like 2026.1.2 or 2026.1.2.dev1+a1b2c3d.
  • 🥭, verri.tasty:mango: a purely date-based version, like 2026.1.2;
  • 🍒, verri.tasty:cherry: another date-based version, less likely to create duplicates by using the number of seconds in the day like 2026.1.2.12345;

Note that the commit-based versions assume your project is using git, and git is available as a command line tool. Both of these flavours will mark the version as "dirty" if tracked files contain uncommitted changes when the version is being established. The 🍍 flavour will consider a version a release if the following is true:

  • the build is being run on a CI/CD environment (detected through environment variables);
  • the repository is considered clean when the version is determined (that is, no changes in files tracked by git);
  • the build is run for the repository's default branch.

As verri is designed to be simple, it's great for projects that don't want or need to follow semantic version, but also don't want to keep building 0.1.0 forever. If your project needs a version that makes a clear reference to a point in time, and you don't want to have to think about it again, verri could be great for you! If you need a semantically meaningful version or want to control the version number manually, verri might not be great for you.

verri was created with pdm-backend in mind, so deliberately exposes its flavours as callable functions. See pdm-backend's documentation for more information on how this can be configured for your project. Other build systems might be able to use verri as well; there's no dependencies on PDM anywhere, and the versions are simple Python functions.

Release files for verri 2026.9.24.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for verri 2026.9.24.1
File Interpreter ABI Platform
verri-2026.9.24.1-py3-none-any.whl Python 3 none any Details

Release files / verri-2026.9.24.1-py3-none-any.whl

Download URL verri-2026.9.24.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e85484bdac7838bf608e8aa8be9cd0126dcb93b74648e08a6a45d774ff9087fa
BLAKE2b-256 checksum
How to use checksums
282ff371c2811774075cb25dd02eac8d1e0c30062239b9b504a55ed6f3700d98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page