[openstack-dev] [Oslo] oslo.version and pbr

Mark McLoughlin markmc at redhat.com
Thu Aug 8 21:52:52 UTC 2013

On Sun, 2013-08-04 at 13:41 -0400, Monty Taylor wrote:
> Hey all!
> Currently, there is runtime version handling code in pbr. It's been a
> cause of concern for some folks because it means that pbr becomes a
> runtime rather than just a build time dependency - so the suggestion has
> come across that we split it out into its own library.
> This becomes even more important, because I'd also like to take the
> extra version handling code that's in nova (that allows for version
> override files in /etc that the distributors can drop in) and add it to
> the mix. That code as currently written depends on oslo.config - and I
> definitely do not want to make pbr depend on oslo.config.
> So - the proposal is:
> - make an oslo.version library based on the current code in pbr
> - bring the nova version code over, and keep its depend on oslo.config
> That way, pbr can go back to being a build-time need - and the people
> who want the runtime version discovery code probably won't mind also
> consuming oslo.config.
> Also, now that pbr doesn't need setuptools-git or d2to1 any more, I
> think as soon as the version code is split into oslo.version, I'd like
> to release a 1.0 of pbr and call it both done and API stable.
> Sound decent to everyone?

It looks like you've tweaked your thinking on this, since oslo.version
copies the "look for a config file in some well known directories" code
into oslo.version:


That's totally cool with me. Depending on oslo.config just for
find_config_files() would be gratuitous.

Thanks for doing this.


More information about the OpenStack-dev mailing list