Mercurial > evolve
diff 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 |
line wrap: on
line diff
--- a/setup.py Thu Oct 03 23:39:37 2019 +0100 +++ b/setup.py Thu Oct 03 23:48:50 2019 +0100 @@ -13,7 +13,7 @@ def get_version(): '''Read version info from a file without importing it''' - return get_metadata()['__version__'] + return u'%s' % get_metadata()['__version__'] def min_hg_version(): '''Read version info from a file without importing it'''