Update the version in pyproject.toml.
Then build as below.
Requirement: pip install build
del dist\*.* /Q && python -m buildto delete any previous releases from the dist folder and then build.
rm dist/*.* | python3 -m buildto delete any previous releases from the dist folder and then build.
First, if needed: pip install twine
Upload to PyPi:
python -m twine upload dist/*
Upload to PyPiTest:
python -m twine upload --repository testpypi dist/*