Updating PyPi packageΒΆ
To update the PyPi package, follow these steps:
First, ensure you have the latest version of the build tool:
python -m pip install --upgrade build
This command upgrades the build package to the latest version, which is necessary for creating distribution packages.
Next, create the distribution packages:
python -m build
This command generates the source distribution and wheel distribution files in the dist/ directory.
Upgrade the twine package to the latest version:
python -m pip install --upgrade twine
twine is a utility for publishing Python packages on PyPi. This command ensures you have the latest version.
Finally, upload the distribution packages to PyPi:
twine upload dist/*
This command uploads all the files in the dist/ directory to PyPi. You will need your PyPi credentials to complete this step.