Skip to content

Commit f933eee

Browse files
committed
docs: how to release a new version at pypi
1 parent 557082f commit f933eee

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ cd docs
2525
make html
2626
```
2727

28+
## Release a New Version
29+
30+
1. Edit `changelog` and `setup.py` (`version`).
31+
2. Commit them and add a new tag. Then publish a new release at GitHub.
32+
3. Publish the package at at PyPI with following commands:
33+
34+
```sh
35+
python3 -m pip install --user --upgrade setuptools wheel
36+
rm -rf dist
37+
python3 setup.py sdist bdist_wheel
38+
python3 -m pip install --user --upgrade twine
39+
twine upload dist/*
40+
```
2841

2942
## License
3043

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal = 1

0 commit comments

Comments
 (0)