-
Notifications
You must be signed in to change notification settings - Fork 21
PyPI How to upload a new version
Felix Hamborg edited this page Dec 16, 2021
·
3 revisions
You need to have pythons build and twine package installed. (python3 -m pip install --upgrade build twine
)
The following steps need to be performed if you want to publish a new version to PyPI.
In the root-directory of the repository:
- Open
setup.cfg
and change the version, e.g.version = 1.0.3
- Build the package:
python -m build
- Publish the package:
python -m twine upload dist/*
- Tag the current commit, e.g.
git tag -a v1.0.3
- Share the created tag, e.g.
git push origin v1.0.3
rm -rf dist/* ; rm -rf NewsSentiment.egg-info/*