* Make the git hash be the "local version label" (see PEP 440) by separating it with a '+'.

* Change the name template for the docs tarball so pip will not think it is part of the local version label and is the package's source code.

* Use version3 for the docset filenames.
This commit is contained in:
Robin Dunn
2015-02-06 10:31:09 -08:00
parent 62faf1f13c
commit dba10ef333
2 changed files with 4 additions and 4 deletions

View File

@@ -688,7 +688,7 @@ def cmd_docset_wx(options, args):
# Remove any existing docset in the dist dir and move the new docset in
srcname = posixjoin(wxDir(), 'docs/doxygen/out/docset',
'wxWidgets-%s.docset' % cfg.VERSION[:3])
destname = 'dist/wxWidgets-%s.docset' % cfg.VERSION[:3]
destname = 'dist/wxWidgets-%s.docset' % version3
if not os.path.isdir(srcname):
msg('ERROR: %s not found' % srcname)
sys.exit(1)
@@ -706,7 +706,7 @@ def cmd_docset_py(options, args):
sys.exit(1)
# clear out any old docset build
name = 'wxPython-{}'.format(version2)
name = 'wxPython-{}'.format(version3)
docset = posixjoin('dist', '{}.docset'.format(name))
if os.path.isdir(docset):
shutil.rmtree(docset)
@@ -869,7 +869,7 @@ def cmd_docs_bdist(options, args):
cfg = Config()
rootname = "%s-%s-docs" % (baseName, cfg.VERSION)
rootname = "%s-docs-%s" % (baseName, cfg.VERSION)
tarfilename = "dist/%s.tar.gz" % rootname
if not os.path.exists('dist'):

View File

@@ -761,7 +761,7 @@ def getVcsRev():
revhash = runcmd('git rev-parse --short HEAD', getOutput=True, echoCmd=False)
except:
return None
return "{}.{}".format(revcount, revhash)
return "{}+{}".format(revcount, revhash)
# Try getting the revision number from SVN, or GIT, or just fall back
# to the date.