Skip to content

Add release script and Python version classifiers - #57

Merged
Apakottur merged 4 commits into
mainfrom
add-release-script
Jul 10, 2026
Merged

Add release script and Python version classifiers#57
Apakottur merged 4 commits into
mainfrom
add-release-script

Conversation

@Apakottur

@Apakottur Apakottur commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Add the script scripts/release.py for releasing automatically.

Apakottur and others added 2 commits July 10, 2026 16:35
Interactive helper that dogfoods shpyx to run the git commands. It:

- verifies the working tree is clean and on `main`;
- fetches and fast-forwards to `origin/main`;
- reads the latest published version from PyPI and prompts for the next
  one (patch / minor / major);
- offers to delete a pre-existing tag (e.g. from a failed release run)
  before recreating it;
- creates and pushes the `v*` tag that triggers the Release workflow.

The shebang uses `uv run`, so `./scripts/release.py` works without a
manually activated virtualenv. Ignore T201 (print) under scripts/.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The shields.io pyversions badge reads the `Programming Language ::
Python :: 3.x` trove classifiers from PyPI metadata, which were missing,
so the badge was broken. Add classifiers for 3.10-3.14, matching
`requires-python` and the CI matrix.

The badge will recover once the next release publishes this metadata.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Apakottur
Apakottur force-pushed the add-release-script branch from 3bb3496 to cc24e02 Compare July 10, 2026 16:35
Apakottur and others added 2 commits July 10, 2026 16:44
Instead of hardcoding "Apakottur/shpyx" and the PyPI package name, parse
the GitHub "owner/repo" slug from `git remote get-url origin` (handles
both SSH and HTTPS URLs). The PyPI lookup URL and the Actions URL are
then built from it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Apakottur
Apakottur merged commit 630f569 into main Jul 10, 2026
22 checks passed
@Apakottur
Apakottur deleted the add-release-script branch July 10, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant