Skip to content

Commit 540ab0c

Browse files
committed
Update the deploy script
1 parent 334396e commit 540ab0c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,17 @@
4343
sys.exit()
4444
else:
4545
print("*** No flake8 issues detected. Continuing...")
46-
print("\n*** Rebuilding distribution packages: ***\n")
46+
print("\n*** Removing existing distribution packages: ***\n")
4747
os.system("rm -f dist/*.egg; rm -f dist/*.tar.gz; rm -f dist/*.whl")
4848
os.system("rm -rf build/bdist.*; rm -rf build/lib")
49-
os.system("python setup.py sdist bdist_wheel") # Create new tar/wheel
49+
print("\n*** Installing build: *** (Required for PyPI uploads)\n")
50+
os.system("python -m pip install --upgrade 'build>=0.7.0'")
5051
print("\n*** Installing twine: *** (Required for PyPI uploads)\n")
51-
os.system("python -m pip install --upgrade 'twine>=1.15.0'")
52+
os.system("python -m pip install --upgrade 'twine>=3.6.0'")
5253
print("\n*** Installing tqdm: *** (Required for PyPI uploads)\n")
5354
os.system("python -m pip install --upgrade 'tqdm>=4.62.3'")
55+
print("\n*** Rebuilding distribution packages: ***\n")
56+
os.system("python -m build") # Create new tar/wheel
5457
print("\n*** Publishing The Release to PyPI: ***\n")
5558
os.system("python -m twine upload dist/*") # Requires ~/.pypirc Keys
5659
print("\n*** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***\n")

0 commit comments

Comments
 (0)