Poetry plugin to get package version from git
Project description
Poetry Git Version Plugin
Poetry plugin to get package version from git.
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.7"
poetry = ">=1.2.0"
Setup
[tool.poetry-git-version-plugin]
# Ignore "tag missing" errors
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
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3317f886e5663d7cdbb0c976232040b9079a847f314bd69db72ae8a77c8305c |
|
MD5 | f28e6757338633b6065ef464d5f4fc46 |
|
BLAKE2b-256 | 8a3d13882e39cced04bd1ce005e1a0e565f2bf2c781fd1cfc2fb1f4c36950223 |
Close
Hashes for poetry_git_version_plugin-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 566d7a27445bd74fdd98fedeef733cfccb198e248bbac8d9388672ca3979b608 |
|
MD5 | 4ed8f90e5495e00bca9fb4a771d483c4 |
|
BLAKE2b-256 | ecf76cf16b55fc8f5e45431ede935eada83c1fc2816b389d7a238c456a8ea80c |