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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53a5908ec8f6ed0ebc243bd0d954ae54daf94c11a6fbd86ba8872b3434061204 |
|
MD5 | 5d7308a51bc01eab8e23f7dc316cecd8 |
|
BLAKE2b-256 | 72372cc975ba31ec0659611f812009734c08214e18aeebb55dd2633542555240 |
Close
Hashes for poetry_git_version_plugin-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a92042169ef7e5a3565eaab594c70c60a281e163507cf54a72a730c39c613fb |
|
MD5 | c5987476123d16847fa4ceaccf66ed0b |
|
BLAKE2b-256 | a2f9f87742d46d9557adab6bd62a23949b2d2c6744b2aab7b6599c1ce25e27d8 |