[openstack-dev] How do I calculate the semantic version prior to a release?
Neil Jerram
Neil.Jerram at metaswitch.com
Sun Feb 28 10:30:18 UTC 2016
Many thanks to everyone who has replied in this thread.
In case you have further comment, I'll explain what prompted my question. In the networking-calico project, which is release:independent, we keep the Debian and RPM packaging together with the non-packaging code. When the time comes for a release, we'd like to update the Debian and RPM versions and changelogs first (and merge that) and then ask for the project to be tagged and released to PyPI. We'd like the Debian and RPM versions to match the tag and PyPI version - and so my original question in this thread was really 'how can we predict what the next tag and PyPI version will be?'
I hope that makes sense; thanks again for all the follow ups so far.
Regards,
Neil
Original Message
From: Robert Collins
Sent: Friday, 26 February 2016 18:53
To: OpenStack Development Mailing List (not for usage questions)
Reply To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] How do I calculate the semantic version prior to a release?
On 27 February 2016 at 00:13, Neil Jerram <Neil.Jerram at metaswitch.com> wrote:
> I understand the semantic versioning algorithm for calculating a new
> version. But what do I run, in a git repository, to do that calculation
> for me, and output:
pbr does that automatically, generating a pre-release version. The
regular part of the version is the lowest version number you can use
that will match the semver rules.
> - the new semantic version that would be used if I asked for a formal
> release to PyPI
We were/are going to add a command to tag for you, but just querying
it would be good too.
> - the corresponding Debian version
I don't think we expose that yet (but we should).
> - the corresponding RPM version.
As already mentioned, the rpm_version command exposes this.
-Rob
--
Robert Collins <rbtcollins at hpe.com>
Distinguished Technologist
HP Converged Cloud
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list