[openstack-dev] How do I calculate the semantic version prior to a release?
harlowja at fastmail.com
Fri Feb 26 17:03:18 UTC 2016
On 02/26/2016 04:44 AM, Doug Hellmann wrote:
> Excerpts from Thomas Bechtold's message of 2016-02-26 13:34:03 +0100:
>> 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:
>>>> 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 "184.108.40.206b3.dev138" .
>> rpm supports the tilde ("~") for pre versions. Converting a PEP440
>> compatible version to a rpm version can be done with code like:
> Interesting. I don't know how we ended up with the implementation we
> have, or why it produces that output. Maybe no one is using it?
If robert collins is listening I'm sure he remembers :)
I was part of these discussions, but I can't quite remember ;)
Must be getting old or something, ha.
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
More information about the OpenStack-dev