Prepare Release
This skill automates the steps required to prepare a new version release.
Instructions
-
Update Version:
- Ask the user for the new version number (e.g.
0.4.1). - Update
versioninpyproject.toml. - Update
__version__variable ingwexpy/__init__.pyif it exists.
- Ask the user for the new version number (e.g.
-
Update Changelog:
- Read
CHANGELOG.md. - Create a new header for the new version with the current date.
- Move "Unreleased" changes under this new header.
- Read
-
Build Package:
- Clean old distribution files:
rm -rf dist/ build/ *.egg-info. - Run build command:
python -m build. - Check if correct
.tar.gzand.whlfiles are created indist/.
- Clean old distribution files:
-
Verify:
- (Optional) Run
twine check dist/*to verify metadata validation iftwineis available.
- (Optional) Run
Scan to join WeChat group