The version string lives in two places and both must be updated:
pyproject.toml→version = "X.Y.Z"splitfolders/__init__.py→__version__ = "X.Y.Z"
-
Update the version in both files listed above.
-
Commit the version bump:
git add pyproject.toml splitfolders/__init__.py git commit -m "Bump version to X.Y.Z" -
Create a git tag:
git tag X.Y.Z
-
Push the commit and tag:
git push && git push --tags -
Build and publish to PyPI:
poetry build poetry publish
This requires PyPI credentials configured locally via
poetry config pypi-token.pypi <token>. -
Create a GitHub release:
gh release create X.Y.Z --title "X.Y.Z" --notes "$(cat <<'EOF' ### Added - ... ### Fixed - ... ### Changed - ... EOF )"
Copy the release notes from
CHANGELOG.mdfor the version being released.