[openstack-dev] How do I calculate the semantic version prior to a release?
tbechtold at suse.com
Mon Feb 29 08:32:39 UTC 2016
On Sat, Feb 27, 2016 at 08:12:25AM +1300, Robert Collins wrote:
> On 27 February 2016 at 01:34, Thomas Bechtold <tbechtold at 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 "22.214.171.124b3.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 -
> - 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?
Good question. For SUSE, SLE12 has rpm 4.11 which is fine. No idea about RHEL.
More information about the OpenStack-dev