No project description provided
Project description
changes-semver
Lightweight and (hopefully) unopinionated tool for using Conventional Commits and Semantic Versioning with Git.
Overview
Many of the Semantic Versioning tools out there force very specific workflows that I found hard to adopt in my own projects. Changes attempts to provide a collection of tools that fit into your own project lifecycle by providing a collection of commands that can be assembled however you need.
Changes differs from many other solutions by using tags to mark commits in your repository as released. This allows releases to be made without modifying the source or making additional commits.
Installation
Changes is available via PyPI.
Install it using your Python package manager of choice. For example, using uv:
uv tool install changes-semver
Usage
Here are a few quick commands you can try to get you started—run these from within a Git repository with commit messages conforming to Conventional Commits:
-
Get the current version number:
changes version --released
-
Get the next version number (accounting for changes since the last release tag):
changes version -
Get the latest release notes:
changes notes --released
-
Get the released notes for the next version:
changes notes -
List the full history:
changes notes --all
-
Make a release:
changes release(Tags the current sha with the new version if there are unreleased changes).
Find out more details using the --help command:
changes --help
Or see the details of specific sub-commands by passing the --help flag directly to those commands:
changes release --help
Development
Setup
git clone git@github.com:jbmorley/changes.git
cd changes
pipenv install
Tests
Run tests locally using the test.sh script:
./scripts/test.sh
You can run a specific test by specifying the test class on the command line:
./scripts/test.sh test_cli.CLITestCase.test_version_multiple_changes_yield_single_increment
Project details
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 changes_semver-6.0.6.tar.gz.
File metadata
- Download URL: changes_semver-6.0.6.tar.gz
- Upload date:
- Size: 20.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 |
0e860f69ae332b8f63334e1cf392fd612325fb90b8a27b48102f8f871f78fab3
|
|
| MD5 |
13c3b43470e564c7d8eb40681698d470
|
|
| BLAKE2b-256 |
66f3fe880f26d0ecc204a52f9a53ae8bea63ed4bbfbd96fd1a90f38f58588b76
|
Provenance
The following attestation bundles were made for changes_semver-6.0.6.tar.gz:
Publisher:
build.yaml on jbmorley/changes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
changes_semver-6.0.6.tar.gz -
Subject digest:
0e860f69ae332b8f63334e1cf392fd612325fb90b8a27b48102f8f871f78fab3 - Sigstore transparency entry: 1097276183
- Sigstore integration time:
-
Permalink:
jbmorley/changes@6ee071bcf9217628e30f0fee14a48ba9f94a6125 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jbmorley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@6ee071bcf9217628e30f0fee14a48ba9f94a6125 -
Trigger Event:
push
-
Statement type:
File details
Details for the file changes_semver-6.0.6-py3-none-any.whl.
File metadata
- Download URL: changes_semver-6.0.6-py3-none-any.whl
- Upload date:
- Size: 14.2 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 |
9db4788a4e71389ef4f8f56dec13cbeb84d0f54055cc15671a2ef52464313aa6
|
|
| MD5 |
972e996d205644e5857a1b32f8c485af
|
|
| BLAKE2b-256 |
46ae6aa2b7e35524b1431a62e108876482328460dca51f2edddf20361d3e2a22
|
Provenance
The following attestation bundles were made for changes_semver-6.0.6-py3-none-any.whl:
Publisher:
build.yaml on jbmorley/changes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
changes_semver-6.0.6-py3-none-any.whl -
Subject digest:
9db4788a4e71389ef4f8f56dec13cbeb84d0f54055cc15671a2ef52464313aa6 - Sigstore transparency entry: 1097276189
- Sigstore integration time:
-
Permalink:
jbmorley/changes@6ee071bcf9217628e30f0fee14a48ba9f94a6125 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jbmorley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@6ee071bcf9217628e30f0fee14a48ba9f94a6125 -
Trigger Event:
push
-
Statement type: