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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 788cea37a5750252cb6457f64553ac242aadc7d2e7efc995489c53aa054571b9 |
|
MD5 | 5beb3955d5a5a289124b1e2e9c80b6a9 |
|
BLAKE2b-256 | 506b56e4085cb92617261cf49da099f67538b289fe8aa11a71ae9097c5460f59 |
Close
Hashes for poetry_git_version_plugin-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6115f9073b9273a553e97cf2a708fa5c3432dd8cc89acbff72f0d5f08e66dc91 |
|
MD5 | 97bc63e347042093e22a1017d7dce5b0 |
|
BLAKE2b-256 | 01c3678fd3a3b3f2e9916822f7accd99298630aa8e00d5e0ae969bf0dea0bf01 |