Skip to main content

Changeset management tool for Python projects

Project description

pychangeset

A tool for automating version bumps, changelog generation and release PRs in Python projects, inspired by Changesets.

Installation

# Use with uvx (recommended)
uvx changeset

# Or install from PyPI
pip install pychangeset

Quick Start

0. Initialize

uvx changeset

This will:

  • Run changeset init, creating a .changeset/ directory in your project
  • Prompt the user to add a changeset, which will:
    • Detect which packages have changes
    • Ask what type of change for each (major/minor/patch)
    • Prompt for a description
    • Create a changeset file in .changeset/

1. Track .changset/

git add .changeset/
git commit -m "Add changeset"
git push

2. Automated Release Process

To get the most out of pychangeset, add these workflows to your repository:

.github/workflows/changesets.yml

When you merge to your main branch, the changesets workflow will create or update a Release PR with:

  • Updated CHANGELOG.md files
  • Bumped version numbers
  • Consolidated PR description

.github/workflows/release.yml

When the Release PR is merged, the release workflow:

  • Publishes packages to PyPI
  • Creates git tags
  • Creates GitHub releases

Commands

changeset init

Initialize changesets in your project.

changeset add / changeset

Create a new changeset interactively.

Options:

  • --all: Include all packages without prompting

changeset version

Process changesets and bump versions.

Options:

  • --dry-run: Preview changes without applying them
  • --skip-changelog: Skip changelog generation

changeset changelog

Generate changelogs from changesets.

Options:

  • --dry-run: Preview changelog without writing files
  • --output-pr-description <file>: Write PR description to file

changeset check-changeset

Check if changesets exist for the current branch (useful for CI).

Options:

  • --skip-ci: Skip check in CI environment

Changelog Format

Changelogs are generated with PR and commit metadata:

# package-name

## 1.2.0

### Minor Changes

- [#123](link-to-pr) [`abc123`](link-to-commit) Thanks @username! - Description of change

### Patch Changes

- [#124](link-to-pr) [`def456`](link-to-commit) Thanks @username! - Bug fix description

Development

# Clone the repository
git clone https://github.com/browserbase/pychangeset.git
cd pychangeset

# Install with uv
uv sync

# Run tests
uv run pytest

# Run the tool locally
uv run changeset

License

MIT

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

changeset-0.2.4.tar.gz (36.4 kB view details)

Uploaded Source

Built Distribution

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

changeset-0.2.4-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file changeset-0.2.4.tar.gz.

File metadata

  • Download URL: changeset-0.2.4.tar.gz
  • Upload date:
  • Size: 36.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.21

File hashes

Hashes for changeset-0.2.4.tar.gz
Algorithm Hash digest
SHA256 f1644f143ae5520f86c8ca730bc5cbcf4a5ad9bf959f313b3398baa3bad1c20d
MD5 c0e2165d2b20b52a7b7b30b6fdeca0d5
BLAKE2b-256 d920f34c2124e8885743d28df6846b8f9eeb32951246b7ed4afbf01ebeb60f51

See more details on using hashes here.

File details

Details for the file changeset-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: changeset-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.21

File hashes

Hashes for changeset-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 647f8af8cc74ad3678b443fb68250c99177a847fb6fece8bf0b2a650f167bc21
MD5 8e20d498c71cf27f4e619ff0b123c7d9
BLAKE2b-256 dec8e619a64f0356341059b2733e2f6b2ccdddaccf0ae1d3e68a38159a9cb814

See more details on using hashes here.

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