Permalink
Browse files

avoid uploading with a wrong subversion number

  • Loading branch information...
sdpython committed Oct 22, 2016
1 parent 8fc4ee0 commit 99a7b3b756dab87def47644aa8ae0a865f4913e7
Showing with 10 additions and 0 deletions.
  1. +10 −0 setup.py
View
@@ -146,6 +146,16 @@ def write_version():
# when the module is installed, no commit number is displayed
subversion = ""
if "upload" in sys.argv and not subversion:
# avoid uploading with a wrong subversion number
try:
import pyquickhelper
pyq = True
except ImportError:
pyq = False
raise Exception(
"subversion is empty, cannot upload, is_local()={0}, pyquickhelper={1}".format(is_local(), pyq))
##############
# common part
##############

0 comments on commit 99a7b3b

Please sign in to comment.