Mercurial > evolve
comparison setup.py @ 4878:095bab0d0cd7 stable
py3: return unicode from setup.py's get_version
py3 expects the version number for eggs to be unicode, so despite 9.2.0 being
the first evolve release with beta py3 support it isn't currently pip
installable since it dies with:
File "*/setuptools/command/egg_info.py", line *, in tagged_version
return safe_version(version + self.vtags)
TypeError: can't concat str to bytes
The `setup.py install` test added in a previous commit should cover this since
it died in a different but similar way before.
author | Ian Moody <moz-ian@perix.co.uk> |
---|---|
date | Thu, 03 Oct 2019 23:48:50 +0100 |
parents | 1a47cc2728ff |
children | 155e986045eb |
comparison
equal
deleted
inserted
replaced
4877:77e5c733200a | 4878:095bab0d0cd7 |
---|---|
11 exec(fp.read(), meta) | 11 exec(fp.read(), meta) |
12 return meta | 12 return meta |
13 | 13 |
14 def get_version(): | 14 def get_version(): |
15 '''Read version info from a file without importing it''' | 15 '''Read version info from a file without importing it''' |
16 return get_metadata()['__version__'] | 16 return u'%s' % get_metadata()['__version__'] |
17 | 17 |
18 def min_hg_version(): | 18 def min_hg_version(): |
19 '''Read version info from a file without importing it''' | 19 '''Read version info from a file without importing it''' |
20 return get_metadata()['minimumhgversion'] | 20 return get_metadata()['minimumhgversion'] |
21 | 21 |