Releasing - TeskaLabs/cysimdjson GitHub Wiki
Release procedure
Note: Inspired by https://towardsdatascience.com/how-to-upload-your-python-package-to-pypi-de1b363a1b3
setup.py
1) Version bump in ...
version="21.11",
...
2) Check the version of simdjson
at https://github.com/simdjson/simdjson and ./cysimdjson/simdjson folder
3) Create version tag and release in GitHub
21.11
for example
4) Initial clean up
rm -rf dist build
5) Create source distribution
python3 setup.py sdist
5) Create binary distributions
./build-linux-release.sh
6) Upload to pypi
python -m twine upload dist/*
Use the API token, ideally generated for this purpose, delete the API token after.
cysimdjson % python3 -m twine upload dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: __token__
Enter your password:
Uploading cysimdjson-23.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:02 • 844.0 kB/s
Uploading cysimdjson-23.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:04 • 437.0 kB/s
Uploading cysimdjson-23.7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:03 • 485.5 kB/s
Uploading cysimdjson-23.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:03 • 506.0 kB/s
Uploading cysimdjson-23.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:03 • 595.4 kB/s
Uploading cysimdjson-23.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:03 • 629.9 kB/s
Uploading cysimdjson-23.7.tar.gz
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 528.7/528.7 kB • 00:00 • 536.0 kB/s
View at:
https://pypi.org/project/cysimdjson/23.7/