Hatchling version source plugin for MPT git-describe based versioning.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hatch_mpt_versioning-1.0.2.tar.gz.
File metadata
- Download URL: hatch_mpt_versioning-1.0.2.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84af6e75fdb393d0f6e6b1c034165a40a23bcd6585bf2c56c0b1b75d3b1a1b6e
|
|
| MD5 |
3dfed75a59bc7bec79f3c129f04cd89a
|
|
| BLAKE2b-256 |
bebcbc162e9dea6910f2e66bb5385abbf6c4c72007480ccf2addab0034952ae8
|
File details
Details for the file hatch_mpt_versioning-1.0.2-py3-none-any.whl.
File metadata
- Download URL: hatch_mpt_versioning-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b42f21c0957c949c9acd50be5946c38fc45f6e9282f684dc4480e93b0118919f
|
|
| MD5 |
82f6830cb3def855da0176d01d5dd7f2
|
|
| BLAKE2b-256 |
3886b16feecbf68dad9094c75e4df81780ef13a6c513b7e9d99deb5c6ea264d4
|