Followed this tutorial https://packaging.python.org/en/latest/tutorials/packaging-projects/ The pwd is on my google Dont forget to update the version number in setup.py -- currently is 0.1.4 And to change the testpipy to pipy in the twine upload And to skip existing versions with python3 -m twine upload --skip-existing --repository pypi dist/*
Steps
- Change version in pyproject.toml -- also in docs/source/conf.py
- Build with
- python3 -m build
- deploy with
- python3 -m twine upload --skip-existing --repository pypi dist/*
- As user token as pwd pypi-AgEIcHlwaS5vcmcCJGY4ZTUwNTFjLTQ3M2EtNDYxMy1hNjMyLWI1NzMxZjlkZTgyYQACD1sxLFsic2tzaGlmdCJdXQACLFsyLFsiZWVhNzEyZTgtYjcwNC00MTY4LWJkMmUtOTlmMDRmMTBhNGU0Il1dAAAGIHrMgMxD_5KJxea0zOsFUpRgZBmjN-7AkcTxzQKVIhPL ``
Following this tutorial https://docs.readthedocs.io/en/stable/tutorial/ Sign with Github To build locally sphinx-build -a docs/source/ docs/build