Préparation de version

VérifiéSûr

Automatise la mise à jour du numéro de version dans pyproject.toml et __init__.py, l'édition du CHANGELOG, et la construction du package. Utile avant chaque nouvelle publication.

Spar Skills Guide Bot
DeveloppementIntermédiaire
10002/06/2026
Claude Code
#release#versioning#changelog#build

Recommandé pour

Notre avis

Automatise les étapes de préparation d'une nouvelle version : mise à jour du numéro de version, du journal des modifications et construction du paquet.

Points forts

  • Garantit la cohérence entre les fichiers de version (pyproject.toml, __init__.py)
  • Structure le CHANGELOG avec les nouvelles sections datées
  • Nettoie et reconstruit les fichiers de distribution de manière fiable

Limites

  • Conçu spécifiquement pour les projets Python utilisant pyproject.toml
  • Ne publie pas la version (reste en préparation)
  • Nécessite que l'utilisateur fournisse le numéro de version
Quand l'utiliser

Quand vous devez préparer une nouvelle version d'un paquet Python avant publication.

Quand l'éviter

Si vous cherchez un outil de publication complet (utilisez alors un workflow CI/CD).

Analyse de sécurité

Sûr
Score qualité85/100

The skill only runs standard Python build commands and a targeted rm for cleanup. No exfiltration, no disabling of safety, no obfuscation.

Aucun point d'attention détecté

Exemples

Prepare version 0.4.1
Prepare a release for version 0.4.1.
Update changelog and build
Run the release preparation steps: update version to 1.0.0, update changelog, and build the package.

name: prep_release description: バージョン更新、CHANGELOG整備、パッケージビルドなど、リリース前の準備を行う

Prepare Release

This skill automates the steps required to prepare a new version release.

Instructions

  1. Update Version:

    • Ask the user for the new version number (e.g. 0.4.1).
    • Update version in pyproject.toml.
    • Update __version__ variable in gwexpy/__init__.py if it exists.
  2. Update Changelog:

    • Read CHANGELOG.md.
    • Create a new header for the new version with the current date.
    • Move "Unreleased" changes under this new header.
  3. Build Package:

    • Clean old distribution files: rm -rf dist/ build/ *.egg-info.
    • Run build command: python -m build.
    • Check if correct .tar.gz and .whl files are created in dist/.
  4. Verify:

    • (Optional) Run twine check dist/* to verify metadata validation if twine is available.
Skills similaires