pip install build twineYou also need a PyPI account. Create one at https://pypi.org/account/register/ and generate an API token at https://pypi.org/manage/account/token/.
Edit pyproject.toml and bump the version:
[project]
version = "0.1.1"rm -rf dist/
python -m buildThis creates dist/miao-<version>.tar.gz (sdist) and dist/miao-<version>-py3-none-any.whl (wheel).
twine upload --repository testpypi dist/*Then verify:
pip install --index-url https://test.pypi.org/simple/ miaotwine upload dist/*You will be prompted for credentials. Use __token__ as the username and your API token as the password.
To avoid entering credentials each time, create ~/.pypirc:
[pypi]
username = __token__
password = pypi-<your-token>