Skip to main content

hatch-mpt-versioning

Hatchling version source plugin that derives a PEP 440 version from git describe.

Usage

In a consuming project's pyproject.toml:

[build-system]
requires = ["hatchling>=1.21.0", "hatch-mpt-versioning>=0.1.0"]
build-backend = "hatchling.build"

[project]
dynamic = ["version"]

[tool.hatch.version]
source = "mpt-git-describe"

Version format

Given git describe --tags --long --always --abbrev=7 --dirty, parse TAG-DISTANCE-gSHA[-dirty]:

  • DISTANCE == 0 and clean: TAG
  • DISTANCE > 0 and tag X.Y.0: X.Y.DISTANCE+gSHA
  • if dirty: append .dirty to local part → ...+gSHA.dirty

Metadata

Release files for hatch-mpt-versioning 1.0.3

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

Source distribution (sdist)

Source distribution for hatch-mpt-versioning 1.0.3
File Size Uploaded
hatch_mpt_versioning-1.0.3.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hatch-mpt-versioning 1.0.3
File Interpreter ABI Platform
hatch_mpt_versioning-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / hatch_mpt_versioning-1.0.3.tar.gz

Download URL hatch_mpt_versioning-1.0.3.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
db0ccea3a1eee37e9d6c87f23e6e1eb9590321d690614102409358689633e278
BLAKE2b-256 checksum
How to use checksums
bfb3ff3ca817be45219cccea01d910557bad472e0c3163a5b788af90c634faec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hatch_mpt_versioning-1.0.3-py3-none-any.whl

Download URL hatch_mpt_versioning-1.0.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d826edf2044c25198119898a2f4af46d3b9980ded31a641c3dbe70d1ece1e434
BLAKE2b-256 checksum
How to use checksums
5ecfd9ce382c0f0f65f574fb9cfc9bfe83661cda335882cd699c547f473c6c29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

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