A tool for managing semantic version tags in git repositories
Project description
Semantic Version GIT Tagger
A pretty trivial python script to easely manage git tags with semantic versioning (semver.org)
Usage
semtag [options]
Options
-p, --patch- Increment patch version (x.x.PATCH)-m, --minor- Increment minor version (x.MINOR.0)-M, --major- Increment major version (MAJOR.0.0)-b, --by- Increment by a specific number (default: 1)-l, --label- Add label to the version (e.g., -l rc1 creates 1.0.0-rc1)-u, --push- Push the new tag to remote repository-n, --nofetch- Do not fetch tags from remote prior creating new one
-v, --verbose- Increase verbosity (use -v, -vv, or -vvv for more detail)
Examples
# Increment minor version (1.0.0 -> 1.1.0)
semtag -m
# Increment major version (1.0.0 -> 2.0.0)
semtag -M
# Increment patch version (1.0.0 -> 1.0.5)
semtag -p -b 5
# Increment patch and add label (1.0.0 -> 1.0.1-rc1), don't fetch and push new tag
semtag -n -u -p -l rc1
Installation
Using pip (preferred)
pip install semtag
From git
git clone https://github.com/mateuszmikrut/semtag.git
cd semtag
python -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
python ./semtag.py
Supported Version Formats
The script supports semantic versioning with the following formats:
v1.0.0(with 'v' prefix)1.0.0(without prefix)1.0.0-rc1(with prerelease label)
When incrementing versions, prerelease labels are automatically removed.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file semtag-0.1.1.tar.gz.
File metadata
- Download URL: semtag-0.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
099685f96160d1d8d5ee01f818f56d832e5fe85bc26bf42be3525f814eb1a9e4
|
|
| MD5 |
f18a04eb09c43c61aecc6c0087e41d86
|
|
| BLAKE2b-256 |
2809554d2c9e981e74d93a2058da019d5e6d84eb4ccb5885c589efe163c0136d
|
Provenance
The following attestation bundles were made for semtag-0.1.1.tar.gz:
Publisher:
publish.yml on mateuszmikrut/semtag
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semtag-0.1.1.tar.gz -
Subject digest:
099685f96160d1d8d5ee01f818f56d832e5fe85bc26bf42be3525f814eb1a9e4 - Sigstore transparency entry: 768749701
- Sigstore integration time:
-
Permalink:
mateuszmikrut/semtag@4c273d11dc0ee40ca0a0583aa09437042d64c939 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/mateuszmikrut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4c273d11dc0ee40ca0a0583aa09437042d64c939 -
Trigger Event:
push
-
Statement type:
File details
Details for the file semtag-0.1.1-py3-none-any.whl.
File metadata
- Download URL: semtag-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b362995d3d2bf9118c43c571a3318ce438fd168aa048a18fc75d7bb18ab854cb
|
|
| MD5 |
46455b0aba7c3b8ec5bb1423fa2681d5
|
|
| BLAKE2b-256 |
df1f233642caaa118367a4d87d4b189a67f3df33d08a1c1e131d32ba04ee259c
|
Provenance
The following attestation bundles were made for semtag-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on mateuszmikrut/semtag
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semtag-0.1.1-py3-none-any.whl -
Subject digest:
b362995d3d2bf9118c43c571a3318ce438fd168aa048a18fc75d7bb18ab854cb - Sigstore transparency entry: 768749704
- Sigstore integration time:
-
Permalink:
mateuszmikrut/semtag@4c273d11dc0ee40ca0a0583aa09437042d64c939 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/mateuszmikrut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4c273d11dc0ee40ca0a0583aa09437042d64c939 -
Trigger Event:
push
-
Statement type: