-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Releasing Versions
mmcky edited this page Apr 6, 2022
·
3 revisions
This page documents setting up a new release
Any collaborator
of this repository can setup a new release to PyPI using tagged releases. You don't need to be a PyPI maintainer as the GitHub action makes use of a PyPI token.
- Setup a PR to a) update
version
, and b) updateCHANGELOG
- After
CI
checks are completed, this PR can be merged - Tag a new release on GitHub using the standard major,minor,bug fix version system such as
v0.5.2
This will cause the CI
to run and once passed it will publish the new package to PyPI using flit
[Review and Deprecate Below]
To issue a new release of QuantEcon.py
through PyPI you should follow these steps:
You will need to be a PyPI maintainer of the package to make updates
- Checkout
new-release
branch - Update version number in setup.py and run
python setup.py install
to updatequantecon/versions.py
- Commit changes, push to Github, and setup PR
- After CI has passed checks, merge the PR
- Checkout
master
branch and git pull - Go to GitHub and setup a new release using
tag
convention{{ version_number }}
(matching the version number) - Fill in description of release from running https://github.com/QuantEcon/QuantEcon.py/wiki/Generating-CHANGELOG.md-file locally.
- Run
python setup.py sdist bdist_wheel
- Run
twine upload dist/*