Install the necessary tools for building and uploading packages:
pip install build
pip install twine
Build the OmniCloudMask package:
python -m build
Upload the package to Test PyPI for testing purposes. You will need to enter your user token:
twine upload --repository testpypi dist/*
Install the package from Test PyPI in a new environment to ensure it works correctly:
pip install -i https://test.pypi.org/simple/ omnicloudmask --extra-index-url https://pypi.org/simple
Once testing is complete and successful, upload the package to the main PyPI repository:
twine upload --repository pypi dist/*
Note: Ensure you have the necessary credentials and permissions for both Test PyPI and PyPI before attempting to upload.