No project description provided
Project description
Poetry Git Version Plugin
Descendant of poetry-version-plugin
, which does not work on poetry 1.2.0
.
Functionality
- Project tag parsing
- Substitution of the project tag (if any) in the poetry.version value
- Maintenance of PEP 440
Quick start
poetry self add poetry-git-version-plugin
poetry git-version # Write your git tag
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
# If the tag is missing.
# Returns the version computed from the last commit.
# It takes the template tag "0.0.1" and adds a local tag indicating the hash of the git commit.
#Example: 0.0.1+5babef6
use_dev_ref = 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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ae05c13c74a81075838b70c11e142dfa8092ebeffe2c52f00b794bb1bc48ee5 |
|
MD5 | 003aa370f3556dd7e914aed2919c85a5 |
|
BLAKE2b-256 | 05b4aec079607045eb99d65ecec3f1bd4e545bb4342b4f0404abbfafdaabbe6a |
Close
Hashes for poetry_git_version_plugin-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765f2177b83f26d49afd0e1b17adcfa9ab97520f418f80a5cebe21ad395db2bd |
|
MD5 | 9249ca38620e538916b60c51ec9e30c5 |
|
BLAKE2b-256 | 41aa53c5c109b1af043c4657f38863652fe90f58ae7db819e18c52de26a4f4bf |