Update the version in pyproject.toml.
Then build as below.
Requirement: pip install build
If using UV:
del dist\*.* /Q && uv run python -m buildor without UV:
del dist\*.* /Q && python -m buildIf using UV:
rm dist/*.* | uv run python3 -m buildor without UV:
rm dist/*.* | python3 -m buildFirst, if needed: pip install twine
Upload to PyPi:
python -m twine upload dist/*
Upload to PyPiTest:
python -m twine upload --repository testpypi dist/*