Poetry plugin to get package version from git
Project description
Poetry Git Version Plugin
Poetry plugin to get package version from git.
Descendant of
poetry-version-plugin
, which does not work onpoetry 1.2.0
.
Functionality
- Project tag parsing
- Substitution of the project tag (if any) in the poetry.version value
- Maintenance of PEP 440
- Command to output a new version
Quick start
poetry self add poetry-git-version-plugin
poetry git-version # Write your git tag
poetry -v git-version # print process
Dependencies
[tool.poetry.dependencies]
python = ">=3.10"
poetry = ">=1.2.0"
Setup
[tool.poetry-git-version-plugin]
# Ignore "tag missing" errors
ignore_exception = true
# If the tag is missing.
# Returns a version, computed from the latest version tag.
# It takes the version tag, increases the version tag by the number of commits since, adds a local label specifying the git commit hash and the dirty status.
# Example: 1.3.2+5-5babef6
use_last_tag = true
Contribute
Issue Tracker: https://gitlab.com/rocshers/python/poetry-git-version-plugin/-/issues
Source Code: https://gitlab.com/rocshers/python/poetry-git-version-plugin
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
Close
Hashes for poetry_git_version_plugin-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43926f88daaa0cbc421e88ac5503591746a90b4bb4f5b5cb37c42349cb3df17c |
|
MD5 | 166a74f1ee5544d4e7250ce1ba107998 |
|
BLAKE2b-256 | 6c0f1f80875b1e7e3f01ed057d45a8c3e7a6ff46ff1d806784b2a06ea0e8f8ea |
Close
Hashes for poetry_git_version_plugin-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 560ea9911424460cd42eb6a06cd65158a4bb8d3ad6a92be843a804e762f03a58 |
|
MD5 | c24f17e4b704542ebe2769ea804964d0 |
|
BLAKE2b-256 | 687ed8f15ce9ce65183de4b781f07605107347468df0f6c1f2f03fb23988cc94 |