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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04ce3eb92ed5bafc96930a396f3ef1feed750f1e4ed25389f80a234ec1db64e5 |
|
MD5 | 0b207dbf2552c3e00ba163f52c94ed9a |
|
BLAKE2b-256 | d539ae41287ba4a8b5fa4e1c48458831430a6e4355f5b6ceee183983e704474a |
Close
Hashes for poetry_git_version_plugin-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e21afaac67103d47ae66a25693f40cd60dbd9914ca8b78bf8ecae1598bfe15 |
|
MD5 | 16d3c5201205ad2c386722765f57e88b |
|
BLAKE2b-256 | de60f67338b7d697ba9ec2a6308f7c30ab56a220dd26100f18cc444b8dbc83d7 |