On 27 February 2016 at 01:34, Thomas Bechtold <tbecht...@suse.com> wrote: > On Fri, Feb 26, 2016 at 06:52:03AM -0500, Doug Hellmann wrote: >> Excerpts from Neil Jerram's message of 2016-02-26 11:27:05 +0000: >> > On 26/02/16 11:16, Neil Jerram wrote: > [snipped] >> > v = version.VersionInfo('networking-calico').semantic_version() >> > print v.release_string() >> > print v.brief_string() >> > print v.debian_string() >> > print v.rpm_string() >> >> Those do work. I found that there's also an rpm_version command >> available like this: >> >> python setup.py rpm_version > > The output for i.e. for Manila is here "1.9999.9999.b3.dev138" > > Which is not really correct. The version is "2.0.0.0b3.dev138" . > rpm supports the tilde ("~") for pre versions. Converting a PEP440 > compatible version to a rpm version can be done with code like:
Does it? Thats great. It didn't as far as anyone here knew when we wrote the spec - http://git.openstack.org/cgit/openstack/oslo-specs/plain/specs/juno/pbr-semver.rst - or we'd have avoiding a tonne of complexity. I see from http://www.rpm.org/ticket/56 that it only came in in RPM 4.10 - is RPM 4.10 available on all the RPM platforms we support? Including I guess old RHEL's and stuff? -Rob -- Robert Collins <rbtcoll...@hpe.com> Distinguished Technologist HP Converged Cloud __________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev