A tool for managing semantic version tags in git repositories
Project description
Semantic Version GIT Tagger
A pretty trivial python script to easily manage git tags with semantic versioning (semver.org)
Usage
semtag [options]
Options
-h, --help show this help message and exit
-v, --verbose Verbosity (-v for INFO, -vv for DEBUG)
-b, --by BY Increment by a specific number
-p, --patch Increment patch version (x.x.PATCH)
-m, --minor Increment minor version (x.MINOR.0)
-M, --major Increment major version (MAJOR.0.0)
-l, --label LABEL Add label to the version (e.g., -l rc1 creates
1.0.0-rc1). Used alone, adds label to current version
-a, --msg MSG Annotated tags message
-u, --push Push the new tag to remote repository
-U, --pushall Push all local tags to remote repository
-n, --no-fetch Do not fetch tags from remote before operation
Examples
# Increment minor version and push to origin (1.0.0 -> 1.1.0)
semtag -mu
# Increment major version (1.0.0 -> 2.0.0)
semtag -M
# Increment patch version (1.0.0 -> 1.0.5)
semtag -u -p -b 5
# Increment patch and add label (1.0.0 -> 1.0.1-rc1)
semtag -u -pl rc1
Installation
Using pip (preferred)
pip install semtag
Using Homebrew (Mac)
brew install mateuszmikrut/tap/semtag
Using .deb package
VERSION="0.3.2"
curl -LO "https://github.com/mateuszmikrut/semtag/releases/download/${VERSION}/semtag-${VERSION}-1_amd64.deb"
sudo dpkg -i "semtag-${VERSION}-1_amd64.deb"
Using .rpm package
VERSION="0.3.2"
sudo dnf install https://github.com/mateuszmikrut/semtag/releases/download/${VERSION}/semtag-${VERSION}-1.x86_64.rpm
From source
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
Releases
https://github.com/mateuszmikrut/semtag/releases/
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.3.3.tar.gz.
File metadata
- Download URL: semtag-0.3.3.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d327fbc995673f7bdc82dc09f2cefeaa9b05de56ecab81b1ea04b33474e64020
|
|
| MD5 |
4055d54c65bd4979d72c7dafb5867c32
|
|
| BLAKE2b-256 |
88655fe29cd7f57be2173846f81c214945e4181dc141534aaa50fd6ff207530c
|
Provenance
The following attestation bundles were made for semtag-0.3.3.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.3.3.tar.gz -
Subject digest:
d327fbc995673f7bdc82dc09f2cefeaa9b05de56ecab81b1ea04b33474e64020 - Sigstore transparency entry: 923992760
- Sigstore integration time:
-
Permalink:
mateuszmikrut/semtag@7c85ae7cdd385f48b0d32c499a5fb7e91e4fed55 -
Branch / Tag:
refs/tags/0.3.3 - Owner: https://github.com/mateuszmikrut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7c85ae7cdd385f48b0d32c499a5fb7e91e4fed55 -
Trigger Event:
push
-
Statement type:
File details
Details for the file semtag-0.3.3-py3-none-any.whl.
File metadata
- Download URL: semtag-0.3.3-py3-none-any.whl
- Upload date:
- Size: 6.7 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 |
4ab20f212ac84c76553027755151006c6971fe6e80b1ce8b094e3943c8ff0631
|
|
| MD5 |
aa849cc1120a29e8f75fc664152ab9f4
|
|
| BLAKE2b-256 |
3d41eb03864723d550f85f973d6fd1fede7545c7752938c5fdbfe1064d0d4799
|
Provenance
The following attestation bundles were made for semtag-0.3.3-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.3.3-py3-none-any.whl -
Subject digest:
4ab20f212ac84c76553027755151006c6971fe6e80b1ce8b094e3943c8ff0631 - Sigstore transparency entry: 923992763
- Sigstore integration time:
-
Permalink:
mateuszmikrut/semtag@7c85ae7cdd385f48b0d32c499a5fb7e91e4fed55 -
Branch / Tag:
refs/tags/0.3.3 - Owner: https://github.com/mateuszmikrut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7c85ae7cdd385f48b0d32c499a5fb7e91e4fed55 -
Trigger Event:
push
-
Statement type: