Update the deploy script (for the twine upload process)

This commit is contained in:
Michael Mintz 2021-04-02 22:46:50 -04:00
parent e2b02245c9
commit fdcaece6b7
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ if sys.argv[-1] == 'publish':
print("*** No flake8 issues detected. Continuing...")
print("\n*** Rebuilding distribution packages: ***\n")
os.system('rm -f dist/*.egg; rm -f dist/*.tar.gz; rm -f dist/*.whl')
os.system('rm -rf build/bdist.*; rm -rf build/lib')
os.system('python setup.py sdist bdist_wheel') # Create new tar/wheel
print("\n*** Installing twine: *** (Required for PyPI uploads)\n")
os.system("python -m pip install --upgrade 'twine>=1.15.0'")