print semantic version for git projects
Project description
lu-semver
Print Semantic Version for Git project.
Intended usage: makefiles and build scripts to print meaningful project version.
Usage
Let's take this repo as example
* 4cf9ba3 (HEAD -> master) sync 11
* ac24825 sync 10
* 73745a4 sync 9
| * 856d14b (feat2) sync 8
| * 1fcbaf1 sync 7
| * 2a02f9b sync 6
|/
* b62e51a (tag: 1.3.0) sync 5
* 027b518 sync 4
| * d58163e (feat1) sync 3
| * d658ddc sync 2
|/
* 217658d (tag: 1.0.0) sync 1
* ad3d54e initial commit
Running lu-semver
for project's refs give below output
command | output |
---|---|
lu-semver | 1.3.1-rc.3.git.4cf9ba3 |
lu-semver --ver @same | 1.3.0-dev.3.git.4cf9ba3 |
lu-semver --ver @next --fmt 'branch,count:pfx=rc,scm,extra' | 1.3.1-rc.3.git.4cf9ba3 |
lu-semver --ver @next --fmt 'branch,count:pfx=rc,scm,extra' --extra gcc.9 | 1.3.1-rc.3.git.4cf9ba3.gcc.9 |
lu-semver --ver @same --fmt 'branch,count,extra' --extra gcc.9 | 1.3.0-dev.3.gcc.9 |
lu-semver --ver @latest | latest |
lu-semver --ver @latest feat1 | latest-feat1 |
lu-semver feat1 | 1.0.1-feat1.rc.2.git.d58163e |
lu-semver --fmt 'branch,count,extra' --extra gcc.9 feat1 | 1.0.1-feat1.dev.2.gcc.9 |
lu-semver feat2 | 1.3.1-feat2.rc.3.git.856d14b |
lu-semver 1.3.0 | 1.3.0 |
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
lu_semver-4.0.0-py3-none-any.whl
(14.1 kB
view hashes)
Close
Hashes for lu_semver-4.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 114364e8152ec58dba7e91f8e883262a75b2f017811f2d0f6830a7913f1e38b3 |
|
MD5 | fb643ae6ac906f78132215882c0f5b92 |
|
BLAKE2b-256 | ba13ef23793a2cd1faf1c8d6a176d6182d399aebf69a57bff391c379267a9192 |