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 == 0and clean:TAGDISTANCE > 0and tagX.Y.0:X.Y.DISTANCE+gSHA- if dirty: append
.dirtyto 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)
| File | Size | Uploaded | |
|---|---|---|---|
| hatch_mpt_versioning-1.0.3.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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}
|