From dba10ef333407242f11a5512d96f9ac00399f4b9 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 6 Feb 2015 10:31:09 -0800 Subject: [PATCH] * 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. --- build.py | 6 +++--- buildtools/config.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index 8913c76e..53c4f89c 100755 --- a/build.py +++ b/build.py @@ -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'): diff --git a/buildtools/config.py b/buildtools/config.py index 2c6cffa8..36c7f4ad 100644 --- a/buildtools/config.py +++ b/buildtools/config.py @@ -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.