Skip to main content

comver

Commit-based semantic versioning - highly configurable and tag-free.

✨ Features 🚀 Quick start 📚 Documentation 🤝 Contribute 👍 Adopters 📜 Legal


Features

comver is a tool for calculating semantic versioning of your project using only commit messages - no tags required!

  • Separation of concerns: versioning focuses on technical aspects, not marketing. You can now use tags solely for communication.
  • Highly configurable: include only relevant commits by filtering via message, author, email, or even commit path.
  • Immutable: version is calculated directly from the commit history. Tags can now be used more meaningfully (e.g., to mark a major milestone or release).
  • Batteries-included: integrate with pdm, Hatch or uv.
  • Verifiable: verify that a specific version was generated from a given commit chain - more resistant to tampering like dependency substitution attacks

Why?

Semantic versioning based on Git tags has a few limitations:

  • Teams may avoid bumping the major version due to the perceived weight of the change. Double versioning scheme; one version for technical changes, another for public releases is a viable mitigation.
  • Tag creation by bots (e.g. during automated releases) lead to problems with branch protection (see this discussion).
  • Not all commits are relevant for release versions (e.g., CI changes, bot updates, or tooling config), yet many schemes count them in. With filtering, comver can exclude such noise.
  • Tags are mutable by default and can be re-pointed. By calculating the version based on commits, and combining it with the commit sha and a config checksum, you get verifiable and reproducible results.

Quick start

Installation

> pip install comver

Calculate version

If your commits follow the Conventional Commits format, run:

> comver calculate

This will output a version string in the MAJOR.MINOR.PATCH format:

23.1.3 # Output

Configuration

Configuration can be done either in pyproject.toml (recommended for Python-first project) or in a separate .comver.toml file (recommended for non-python projects):

pyproject.toml .comver.toml
[tool.comver]
# Only commits to these paths are considered
path_includes = [
  "src/*",
  "pyproject.toml",
]

# Commits done by bots are discarded
author_name_excludes = [
  '.*\[bot\].*',
]
# No [tool.comver] needed here
# Source only commits considered
path_includes = [
  "src/*",
]

# Commits messages with [no version] are discarded
message_excludes = [
  '.*\[no version\].*',
  '.*\[skip version\].*',
]

Integrations

To integrate comver with pdm or hatch add the following to your pyproject.toml:

PDM Hatch
# Register comver for the build process
[build-system]
build-backend = "pdm.backend"

requires = [
  "pdm-backend",
  "comver>=2",
]

# Setup versioning for PDM
[tool.pdm.version]
source = "call"
getter = "comver.plugin:pdm"

# Comver-specific settings
[tool.comver]
...
# Register comver for the build process
[build-system]
build-backend = "hatchling.build"

requires = [
  "hatchling",
  "comver[hatchling]>=2",
]

# Setup versioning for Hatchling
[tool.hatch.version]
source = "comver"

# Comver-specific settings
[tool.comver]
...

Verification

To verify that a version was produced from the same Git tree and configuration, first use the calculate command with additional flags:

comver calculate --sha --checksum

This outputs three space-separated values:

<VERSION> <SHA> <CHECKSUM>

Before the next release provide these values to the comver verify to ensure the version was previously generated from the same codebase and config:

comver verify <VERSION> <SHA> <CHECKSUM>

If inconsistencies are found, you'll receive feedback, for example:

Provided checksum and the checksum of configuration do not match.

Contribute

We welcome your contributions! Start here:

  • This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
  • This project is copyrighted by open-nudge - the appropriate copyright notice is included in each file.

Metadata

Release files for comver 2.0.2

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

Source distribution (sdist)

Source distribution for comver 2.0.2
File Size Uploaded Provenance Actions
comver-2.0.2.tar.gz 39.4 kB With provenance Details for comver-2.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 105.5 kB

Release files / comver-2.0.2.tar.gz

Download URL comver-2.0.2.tar.gz
Size 39.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c4ca91e3b5cd2ee54b8c50083646e1a392ccdbe873d80d2ec0a5a23a2a270ef4
BLAKE2b-256 checksum
How to use checksums
2f8bfe36991d51b065d54f2e8e80cd4aeae875386dd9d59525b7bc6c93839ce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / comver-2.0.2-py3-none-any.whl

Download URL comver-2.0.2-py3-none-any.whl
Size 66.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d02322a9c6ca16237d2a66429b0181a06d3eaff5996a8fad24dd4e1b6a5bda62
BLAKE2b-256 checksum
How to use checksums
b93666d369a1999ef01ec340a514a5d0574c899e1afe5663e05da76a9d7dbdab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Security for comver 2.0.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for comver-2.0.2.tar.gz

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 Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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