Poetry plugin to get package version from git
Project description
Poetry Git Version Plugin
Poetry plugin to get package version from git.
Functionality
- Git tag parsing
- Make alpha version
- 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.7"
poetry = ">=1.2.0"
Setup
[tool.poetry-git-version-plugin]
# Ignore "tag missing" errors and other errors
# Default = true
ignore_errors = 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
make_alpha_version = true
# Format for alpha version
# Default = '{version}.a{distance}+{commit_hash}'
format_alpha_version = '{version}+{distance}'
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.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26396f7fc413e789365db488d5bdcfb0c1b8ffee002ac54a87b37ccab2051aba |
|
MD5 | d8255a60f13fcbedd4887db05f849691 |
|
BLAKE2b-256 | e1a8341ac89f3264f00a55706d92fc1f4d4ec51a370a062ac4a3306268c14bcc |
Close
Hashes for poetry_git_version_plugin-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4faaddabb0223b1342052b18abecc8e7fd3e9c44830792d4a0799bf0ced7db31 |
|
MD5 | 0ecf5944e67e0a2e75cb0b4422402edc |
|
BLAKE2b-256 | 886903356c117401569cee2287a88f62b6e8a13eca8853eb5952a8442ddbbe3d |