Make release
This skill prepares a new release of the web3-ethereum-defi package.
Required inputs
- Version number - The version string for the new release (e.g., 1.1 , 2.0 )
Steps
- Update version in pyproject.toml
Edit the version field in pyproject.toml to the new version number.
- Update CHANGELOG.md
-
Find the # Current heading in CHANGELOG.md
-
Rename it to # {version} (the new version number)
-
Append today's date in parentheses to every changelog entry in that section that is missing a date
-
Insert a new # Current section at the very top of the file with a single placeholder entry:
Current
- TODO
{version}
...existing entries...
- Create a git commit
Create a commit with the message Preparing a release . Push to the master.
- Build the package
Run:
poetry build
Verify the build succeeds and the output .tar.gz and .whl filenames contain the correct version number.
- Prompt the user
After a successful build, tell the user:
Release {version} built successfully. Please upload to PyPI manually.