Skip to main content

No project description provided

Project description

changes-semver

build

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

changes_semver-6.0.6.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

changes_semver-6.0.6-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

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

Hashes for changes_semver-6.0.6.tar.gz
Algorithm Hash digest
SHA256 0e860f69ae332b8f63334e1cf392fd612325fb90b8a27b48102f8f871f78fab3
MD5 13c3b43470e564c7d8eb40681698d470
BLAKE2b-256 66f3fe880f26d0ecc204a52f9a53ae8bea63ed4bbfbd96fd1a90f38f58588b76

See more details on using hashes here.

Provenance

The following attestation bundles were made for changes_semver-6.0.6.tar.gz:

Publisher: build.yaml on jbmorley/changes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for changes_semver-6.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9db4788a4e71389ef4f8f56dec13cbeb84d0f54055cc15671a2ef52464313aa6
MD5 972e996d205644e5857a1b32f8c485af
BLAKE2b-256 46ae6aa2b7e35524b1431a62e108876482328460dca51f2edddf20361d3e2a22

See more details on using hashes here.

Provenance

The following attestation bundles were made for changes_semver-6.0.6-py3-none-any.whl:

Publisher: build.yaml on jbmorley/changes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page