Skip to content

Commit e36ba9c

Browse files
authored
Add twine check to publish process (#6770)
1 parent c04d6ea commit e36ba9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ def get_version(package):
5656
print("twine not installed.\nUse `pip install twine`.\nExiting.")
5757
sys.exit()
5858
os.system("python setup.py sdist bdist_wheel")
59+
if os.system("twine check dist/*"):
60+
print("twine check failed. Packages might be outdated.")
61+
print("Try using `pip install -U twine wheel`.\nExiting.")
62+
sys.exit()
5963
os.system("twine upload dist/*")
6064
print("You probably want to also tag the version now:")
6165
print(" git tag -a %s -m 'version %s'" % (version, version))

0 commit comments

Comments
 (0)