mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
* 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:
6
build.py
6
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'):
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user