PBR

Activity log for bug #1452515

Date Who What changed Old value New value Message
2015-05-07 01:04:45 Jay Lee bug added bug
2015-05-07 01:05:38 Jay Lee bug added subscriber Samsung SDS Openstack
2015-05-13 06:59:31 Jay Lee description From 0.11.0 release, It can't parse version when build metadata is exist. for example, our python-keystoneclient test branch has a tag "1.3.0+test2.0.dev479". python-keystoneclient has a code to verify package version below.(every other openstack projects has this code) __version__ = pbr.version.VersionInfo('python-keystoneclient').version_string() This code cause below error, so every openstack project can't start. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pbr/version.py", line 457, in version_string return self.semantic_version().brief_string() File "pbr/version.py", line 452, in semantic_version self._semantic = self._get_version_from_pkg_resources() File "pbr/version.py", line 440, in _get_version_from_pkg_resources return SemanticVersion.from_pip_string(result_string) File "pbr/version.py", line 203, in from_pip_string prerelease_type, prerelease = _parse_type(remainder[0]) File "pbr/version.py", line 181, in _parse_type return prerelease_type, int(prerelease) ValueError: invalid literal for int() with base 10: '' I think our tag is compliant with Linux/Python Compatible Semantic Versioning 3.0.0. (http://docs.openstack.org/developer/pbr/semver.html) and pbr can't parse version when tag contain build metadata. From 0.11.0 release, It can't parse version when build metadata is exist. for example, our python-keystoneclient test branch has a tag "1.3.0+test2.0.dev479". python-keystoneclient has a code to verify package version below.(every other openstack projects has this code) __version__ = pbr.version.VersionInfo('python-keystoneclient').version_string() This code cause below error, so every openstack project can't start. Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "pbr/version.py", line 457, in version_string     return self.semantic_version().brief_string()   File "pbr/version.py", line 452, in semantic_version     self._semantic = self._get_version_from_pkg_resources()   File "pbr/version.py", line 440, in _get_version_from_pkg_resources     return SemanticVersion.from_pip_string(result_string)   File "pbr/version.py", line 203, in from_pip_string     prerelease_type, prerelease = _parse_type(remainder[0])   File "pbr/version.py", line 181, in _parse_type     return prerelease_type, int(prerelease) ValueError: invalid literal for int() with base 10: '' I think our tag is compliant with Linux/Python Compatible Semantic Versioning 3.0.0. (http://docs.openstack.org/developer/pbr/semver.html) In Semver no.12, It describe about build metadata and pbr can't parse version when tag contain build metadata.
2015-05-19 22:56:06 Robert Collins pbr: status New Triaged
2015-05-19 22:56:08 Robert Collins pbr: importance Undecided High
2015-05-19 22:56:10 Robert Collins pbr: status Triaged Confirmed
2015-05-19 22:56:31 Robert Collins summary 0.11.0 doesn't support a bulid metadata. PEP-440 local versions not accepted
2015-06-10 21:00:48 Kevin L. Mitchell bug added subscriber Kevin L. Mitchell
2015-06-11 21:10:32 OpenStack Infra pbr: status Confirmed In Progress
2015-06-11 21:10:32 OpenStack Infra pbr: assignee Kevin L. Mitchell (klmitch)
2015-06-17 19:14:59 OpenStack Infra pbr: assignee Kevin L. Mitchell (klmitch) Greg Hellings (greg-hellings)
2015-11-16 20:07:45 David Moreau Simard bug watch added https://bugzilla.redhat.com/show_bug.cgi?id=1281920
2016-02-21 00:12:11 Davanum Srinivas (DIMS) pbr: importance High Wishlist
2016-02-21 00:12:53 Davanum Srinivas (DIMS) pbr: status In Progress Triaged
2016-04-14 04:35:31 Sachi King bug added subscriber Sachi King