Managing Python Releases
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install ffmpeg-skill-managing-python-releasesWhat this does: Manages Python library releases including semantic versioning, changelog maintenance (Keep a Changelog format), release automation with GitHub Actions, and deprecation workflows. Use when planning releases, writing changelogs, automating release pipelines, or communicating breaking changes.
Manual setup by platform
Claude Code
~/.claude/skills/ffmpeg-skill-managing-python-releases/SKILL.md
Instructions
Release Management
Semantic Versioning
MAJOR.MINOR.PATCH (e.g., 1.2.3)
PATCH: Bug fixes, no API changes
MINOR: New features, backward compatible
MAJOR: Breaking changes
Changelog Format (Keep a Changelog)
# Changelog
## [Unreleased]
### Added
- New `batch_encode()` function
## [1.2.0] - 2024-03-15
### Added
- Support for custom formats (#123)
### Fixed
- Edge case at -180 longitude (#145)
### Deprecated
- `old_function()` - use `new_function()` instead
[Unreleased]: https://github.com/user/repo/compare/v1.2.0...HEAD
[1.2.0]: https://github.com/user/repo/releases/tag/v1.2.0
Categories: Added, Changed, Deprecated, Removed, Fixed, Security
Version in Code
# src/package/__init__.py
__version__ = "1.2.3"
# Or use importlib.metadata
from importlib.metadata import version
__version__ = version("my-package")
GitHub Actions Release (PyPI example)
A tag-triggered workflow builds and publishes to a registry via trusted
publishing (no stored token) is the general shape — swap the publish step for
whatever registry the project actually uses (PyPI, npm, crates.io, ...):
# .github/workflows/release.yml
on:
push:
tags: ['v*']
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # create the GitHub release
id-token: write # trusted publishing (no token)
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv build
- uses: softprops/action-gh-release@v2
with:
files: dist/*
- uses: pypa/gh-action-pypi-publish@release/v1
Deprecation Process
Warn with stacklevel=2 so the message points at the caller.
import warnings
def old_function():
"""Deprecated: Use new_function() instead."""
warnings.warn(
"old_function() deprecated, will be removed in 2.0.0",
DeprecationWarning,
stacklevel=2,
)
return new_function()
Release Process
# 1. Update CHANGELOG.md (move Unreleased to version)
# 2. Bump version in the project manifest
# 3. Commit and tag
git commit -am "Release v1.2.0"
git tag -a v1.2.0 -m "Release v1.2.0"
git push origin main --tags
# 4. CI publishes automatically (if automated) or publish manually
Checklist
Before Release:
- [ ] All tests pass
- [ ] CHANGELOG updated
- [ ] Version bumped
- [ ] Documentation current
After Release:
- [ ] Registry shows new version
- [ ] A fresh install actually works (not just that the tag/publish succeeded)
- [ ] GitHub release created
- [ ] Docs updated
Note for this repository (ffmpeg-skill)
CHANGELOG.md here keeps a ## Unreleased section and one ## X.Y.Z section
per version (no dates in the headings since the releases became automatic).
Two real differences from the generic PyPI example:
- Releases are automatic; nothing is cut by hand.
.github/workflows/release.ymlruns on every push tomain: it resolves the
next version from the merged PRs' labels (.github/scripts/resolve_version.py),
bumpspackage.json, the plugin manifests,server.json,docs/contract.md
anddocs/roadmap.md, moves thechangelog.d/fragments (and anything under## Unreleased) into the new version's section,
pushes that commit, tags it, creates the GitHub Release, publishes to npm with
provenance, thepluginbranch and the MCP Registry entry. A PR writes its
notes as a fragment filechangelog.d/<slug>.md(seechangelog.d/README.md) and never bumps a version, except a major, which
is a hand bump in a PR. A version that was tagged but did not reach npm is
finished by the workflow'srecoverjob (CONTRIBUTING.md, "Pull requests"),
never by a localnpm publish. (The 0.10.0 release was the last one done by
hand, before the workflow existed.) - The registry is npm, not PyPI, and there is no
__version__in code —
scripts/_contract.py'sskill_version()anddoctor'sversionfield
both readpackage.jsondirectly (see this repo's ownconcurrent-branches
andbuild-artifactsskill notes for the related merge-conflict and
publish-verification patterns this touches).
Source: wdm0006/python-skills (MIT).
Security
Reviews (0)
Related skills
Browse all →More from ffmpeg-skill
View source →More Build skills
Browse category →Frequently asked questions about managing-python-releases
What does the managing-python-releases skill do?
Manages Python library releases including semantic versioning, changelog maintenance (Keep a Changelog format), release automation with GitHub Actions, and deprecation workflows. Use when planning releases, writing changelogs, automating release pipelines, or communicating breaking changes. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the managing-python-releases skill?
Run `npx @skills-hub-ai/cli install ffmpeg-skill-managing-python-releases` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/ffmpeg-skill-managing-python-releases/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does managing-python-releases work with?
managing-python-releases runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the managing-python-releases skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use managing-python-releases after installing it?
In Claude Code, type `/ffmpeg-skill-managing-python-releases` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the managing-python-releases skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/ffmpeg-skill-managing-python-releases)<a href="https://skills-hub.ai/skills/ffmpeg-skill-managing-python-releases"><img src="https://skills-hub.ai/api/badges/skill/ffmpeg-skill-managing-python-releases" alt="Install on Skills Hub"></a>More options in the badge docs.