Properly initialize version string in python-hglib setup.py
Peter Elmers
peter.elmers at yahoo.com
Tue May 26 22:56:29 UTC 2015
# HG changeset patch
# User Peter Elmers <peter.elmers at yahoo.com>
# Date 1432680605 25200
#Â Â Â Â Â Tue May 26 15:50:05 2015 -0700
# Node ID 9afa1d6c9da357b3f61f7e4eb4b08390c4bc5fd1
# Parent ec935041d1ff0fd2aa8cb666d79e6dcca398ddba
version: declare a default version in setup.py (issue3924)
Leaving version as "unknown" breaks `pip freeze`, so we should default the
version to the current version and let it update itself if a more precise one
can be pulled from version control.
diff -r ec935041d1ff -r 9afa1d6c9da3 setup.py
--- a/setup.py   Wed Apr 01 13:34:58 2015 -0500
+++ b/setup.py   Tue May 26 15:50:05 2015 -0700
@@ -2,7 +2,7 @@
 from distutils.core import setup
Â
 # query Mercurial for version number
-version = 'unknown'
+version = '1.6'
 if os.path.isdir('.hg'):
    cmd = "hg id -i -t"
    l = os.popen(cmd).read().split()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20150526/d7d96c46/attachment.html>
More information about the Mercurial-devel
mailing list