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.5.tar.gz (21.1 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.5-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file changes_semver-6.0.5.tar.gz.

File metadata

  • Download URL: changes_semver-6.0.5.tar.gz
  • Upload date:
  • Size: 21.1 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.5.tar.gz
Algorithm Hash digest
SHA256 eea08abcb0c70d3460cd6959b47fac63c19bca7a5da079d495508308ed5e2b33
MD5 7afcff71dc54f58bfc40626f8f716fbd
BLAKE2b-256 0a89092841b1226462f68ac295df8af15ead71b16225f99c5e31e98e408ef61d

See more details on using hashes here.

Provenance

The following attestation bundles were made for changes_semver-6.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: changes_semver-6.0.5-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f15f6bfa01f9e0b11280c701ee23d21f212bf386652ff8803ff182f6b361db3e
MD5 1c45ab3520b7a697f76f4b8e99d690c0
BLAKE2b-256 5ae0c946de35942d9d5609efc0d96b188ce05bfbfd83b1551a859d055a1a53b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for changes_semver-6.0.5-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