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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5cce6c0d1cfe44979b6d676baff8563b07572ee1537e1d1ba36da5ada33042b |
|
MD5 | 6bbfabc4f045ccd5104b80617159765d |
|
BLAKE2b-256 | a52599e01aba6f8c8dc4403e6fcfcc4b5c4756b2c1854ccfa8e1f5e0cf24aeab |
Close
Hashes for poetry_git_version_plugin-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 466bb90001f2a0838abdfc64db0a7f10bd137dd75776c36c36bba607cbeabf72 |
|
MD5 | 0e238ae05a4696065924af8598f134be |
|
BLAKE2b-256 | 3e068913e8f29afc8b9d2b653c8522a4b6cbac639d751fd822fec75b8f47fa9c |