# Install build package
python -m pip install --upgrade build --user
# Install twine package
python -m pip install --upgrade twine --user
# Build the code
python -m build --wheel
# Upload to test server
python -m twine upload --repository testpypi dist/PyScep-{version}-py2.py3-none-any.whl
# Install from test server
pip install -i https://test.pypi.org/simple/ PyScep=={version}
# Uninstall the test version
pip uninstall PyScep=={version}
# Upload to production server
python -m twine upload --repository pypi dist/PyScep-{version}-py2-none-any.whl
# Install from production server
python -m pip install --upgrade PyScep --user