Re: [openstack-dev] Cross distribution talks on Friday

2014-12-23 Thread Doug Hellmann

On Dec 23, 2014, at 2:17 AM, Thomas Goirand  wrote:

> On 12/19/2014 11:55 PM, Ihar Hrachyshka wrote:
>> Note that OSLO_PACKAGE_VERSION is not public.
> 
> Well, it used to be public, it has been added and discussed a few years
> ago because of issues I had with packaging.
> 
>> Instead, we should use
>> PBR_VERSION:
>> 
>> http://docs.openstack.org/developer/pbr/packagers.html#versioning
> 
> I don't mind switching, though it's going to be a slow process (because
> I'm using OSLO_PACKAGE_VERSION in all packages).
> 
> Are we at least *sure* that using OSLO_PACKAGE_VERSION is now deprecated?

It’s not marked as deprecated [1], but I think we added PBR_VERSION because the 
name OSLO_PACKAGE_VERSION made less sense to someone outside of OpenStack who 
isn’t familiar with the fact that the Oslo program manages pbr.

Doug

[1] http://git.openstack.org/cgit/openstack-dev/pbr/tree/pbr/packaging.py#n641

> 
> Thomas
> 
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-12-23 Thread Ihar Hrachyshka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 23/12/14 08:17, Thomas Goirand wrote:
> On 12/19/2014 11:55 PM, Ihar Hrachyshka wrote:
>> Note that OSLO_PACKAGE_VERSION is not public.
> 
> Well, it used to be public, it has been added and discussed a few 
> years ago because of issues I had with packaging.
> 
>> Instead, we should use PBR_VERSION:
>> 
>> http://docs.openstack.org/developer/pbr/packagers.html#versioning
>
>>
>>
>> 
> I don't mind switching, though it's going to be a slow process 
> (because I'm using OSLO_PACKAGE_VERSION in all packages).
> 
> Are we at least *sure* that using OSLO_PACKAGE_VERSION is now 
> deprecated?

I haven't said anyone should go forward and switch all existing build
manifests. ;) I think Doug Hellmann should be able to answer to your
question more formally. Adding him to CC.

> 
> Thomas
> 
> ___ OpenStack-dev 
> mailing list OpenStack-dev@lists.openstack.org 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)

iQEcBAEBCgAGBQJUmVZYAAoJEC5aWaUY1u57E8UH/1lekBJpSRFQsRCvudG2dIyr
lBk+W9ZsfzsOPbdOEf1xtZprU2qz6SwV6zZ6vD/qy7pXoFQe9Z8DP1K2VjPc1JGC
G+maz8HWYxCjgc7UL8nKWqh1gIzSvYN0KkNJYBAHmn39bV7EjSnHJ2y7o2vG57bE
nJA6DlRw3oDdfagWwZr3E2A1+WDDkoAImkj9XZeYQjzal5EMsHyMrWMWlcMvt3Sg
x4SGtxxRmYOkzARpZrtCfrsm5JZAC21mX8aJJdoRVwOwCPUHZi9mG1X821NJdvh6
fLVnpu6dCFTo+oKZyESRoPu6BUZOKGxElV2pp2UrIJJEJ3t3mHrPGKXOde28KPg=
=ydXr
-END PGP SIGNATURE-

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-12-22 Thread Thomas Goirand
On 12/19/2014 11:55 PM, Ihar Hrachyshka wrote:
> Note that OSLO_PACKAGE_VERSION is not public.

Well, it used to be public, it has been added and discussed a few years
ago because of issues I had with packaging.

> Instead, we should use
> PBR_VERSION:
> 
> http://docs.openstack.org/developer/pbr/packagers.html#versioning

I don't mind switching, though it's going to be a slow process (because
I'm using OSLO_PACKAGE_VERSION in all packages).

Are we at least *sure* that using OSLO_PACKAGE_VERSION is now deprecated?

Thomas

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-12-22 Thread Thomas Goirand
On 11/11/2014 12:46 AM, Donald Stufft wrote:
> 
>> On Nov 10, 2014, at 11:43 AM, Adam Young  wrote:
>>
>> On 11/01/2014 06:51 PM, Alan Pevec wrote:
 %install
 export OSLO_PACKAGE_VERSION=%{version}
 %{__python} setup.py install -O1 --skip-build --root %{buildroot}

 Then everything should be ok and PBR will become your friend.
>>> Still not my friend because I don't want a _build_ tool as runtime 
>>> dependency :)
>>> e.g. you don't ship make(1) to run C programs, do you?
>>> For runtime, only pbr.version part is required but unfortunately
>>> oslo.version was abandoned.
>>>
>>> Cheers,
>>> Alan
>>>
>> Perhaps we need a top level Python Version library, not Oslo?  Is there such 
>> a thing?  Seems like it should not be something specific to OpenStack
> 
> What does pbr.version do?

Basically, the same as pkg-resources. Therefore I don't really
understand the need for it... Am I missing something?

Thomas


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-12-19 Thread Ihar Hrachyshka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 01/11/14 20:26, Thomas Goirand wrote:
> On 11/01/2014 11:29 PM, Kashyap Chamarthy wrote:
>> On Sat, Nov 01, 2014 at 09:13:21PM +0800, Thomas Goirand wrote:
>>> Hi,
>>> 
>>> I was wondering if some distribution OpenStack package
>>> maintainers would be interested to have some cross-distribution
>>> discussion on Friday, during the contributors sessions.
>>> 
>>> I'll be happy to discuss with Ubuntu people, but not only. I'd
>>> like to meet also guys working with RedHat and Gentoo. I'm sure
>>> we may have some interesting things to share.
>>> 
>>> 
>>> OpenStack release management team would also be welcome.
>>> 
>>> If you are interested, please reply to this mail.
>> 
>> You might also want to start an etherpad instance with some
>> initial agenda notes and throw the URL here to guage interest.
> 
> Here's the etherpad: 
> https://etherpad.openstack.org/p/cross_distro_talks
> 
>> On a related note, a bunch of Fedora/RHEL/CentOS/Scientific
>> Linux packagers are planning[1] to meetup at the summit to
>> discuss RDO project packaging aspects, etc.
>> 
>> [1] https://etherpad.openstack.org/p/RDO_Meetup_Summit
> 
> Well, if you guys are only talking about RPM packaging, as I'm
> doing only Debian stuff [1], I'm only mildly interested. If we're
> going to talk more about packaging in general, then maybe.
> 
> On 11/02/2014 01:45 AM, Adam Young wrote:
>> Getting the whole "PBR version" issues cleared up would be huge.
> 
> I'm not sure what issue you are talking about, as I believe
> there's none. This has been discussed for about a year and a half
> before we finally had the OSLO_PACKAGE_VERSION to play with, when
> this was designed a few years ago. I'm now very happy about the way
> PBR does things, and wouldn't like it to change anything.
> Currently, what I do in Debian is (from the debian/rules file
> included from openstak-pkg-tools):
> 
> DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version:
> //p') VERSION ?= $(shell echo '$(DEBVERS)' | sed -e
> 's/^[[:digit:]]*://' -e 's/[-].*//') export
> OSLO_PACKAGE_VERSION=$(VERSION)

Note that OSLO_PACKAGE_VERSION is not public. Instead, we should use
PBR_VERSION:

http://docs.openstack.org/developer/pbr/packagers.html#versioning

> 
> You may not be familiar with dpkg-parsechangelog, so let me
> explain. Basically, if my debian/changelog has on top 2014.2~rc2,
> the debian/rules file will exports 2014.2~rc2 into the
> OSLO_PACKAGE_VERSION shell variable before doing "python setup.py
> install", and then PBR is smart enough to use that.
> 
> I am not at all a RedHat packaging specialist, but from the old
> time when I did some RPM porting from my Debian packages, I believe
> that in your .spec file, this should translate into something like
> this:
> 
> %install export OSLO_PACKAGE_VERSION=%{version} %{__python}
> setup.py install -O1 --skip-build --root %{buildroot}
> 
> Then everything should be ok and PBR will become your friend. I
> hope this helps and that I'm not writing any RPM packaging mistake!
> :)
> 
> Cheers,
> 
> Thomas Goirand (zigo)
> 
> [1] Here's the list of packages I maintain in Debian (only for
> OpenStack): 
> https://qa.debian.org/developer.php?login=openstack-de...@lists.alioth.debian.org
>
> 
> 
> ___ OpenStack-dev
> mailing list OpenStack-dev@lists.openstack.org 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)

iQEcBAEBCgAGBQJUlEp/AAoJEC5aWaUY1u57f7cH+wVU4GQ324bfHp01kp8aG1fh
wIN6NoXnn9zuxtu1DcU+x+UhkPa9/nW61EPMJlHva+HVtmW4dY5obNSnMSP1l1cY
cTgY660nwxZByheGCv97FfzFQnetuNZpJ4E7k05EzrwsyOuW8IBPYyPhaRKj18Je
E5wVh6LqMQEYdrz0dWQ2YmuEkHHeOL4aNi/LCmNWP1vc5uaRTuXIIFIOz7dcvm/x
tW/s4fAlBBWEsjiat/WYzbKSNyVYcJYXwpPTBaNAMGygRJwRp5gAYBHqgD6FpuEN
i36hLQ6+dkDEMg0h3uHMU/UJ4qARhlZmRC/Hj9GMdDD9YGLLsDo/lzllm/iODWs=
=TGl4
-END PGP SIGNATURE-

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-10 Thread Matthias Runge
On 10/11/14 20:27, Samuel Merritt wrote:

> 
> Swift has an elegant* solution** to this problem that makes PBR into a
> build-time-only dependency.
> 
> Take a look at the top-level __init__.py in the Swift source tree:
> https://github.com/openstack/swift/blob/709187b54ff2e9b81ac53977d4283523ce16af38/swift/__init__.py
> 
For Horizon, there is a patch: https://review.openstack.org/#/c/92814/
to go the same route as swift.

Matthias


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-10 Thread Samuel Merritt

On 11/1/14, 3:51 PM, Alan Pevec wrote:

%install
export OSLO_PACKAGE_VERSION=%{version}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

Then everything should be ok and PBR will become your friend.


Still not my friend because I don't want a _build_ tool as runtime dependency :)
e.g. you don't ship make(1) to run C programs, do you?
For runtime, only pbr.version part is required but unfortunately
oslo.version was abandoned.


Swift has an elegant* solution** to this problem that makes PBR into a 
build-time-only dependency.


Take a look at the top-level __init__.py in the Swift source tree: 
https://github.com/openstack/swift/blob/709187b54ff2e9b81ac53977d4283523ce16af38/swift/__init__.py


* kind of ugly
** hack

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-10 Thread Donald Stufft

> On Nov 10, 2014, at 11:43 AM, Adam Young  wrote:
> 
> On 11/01/2014 06:51 PM, Alan Pevec wrote:
>>> %install
>>> export OSLO_PACKAGE_VERSION=%{version}
>>> %{__python} setup.py install -O1 --skip-build --root %{buildroot}
>>> 
>>> Then everything should be ok and PBR will become your friend.
>> Still not my friend because I don't want a _build_ tool as runtime 
>> dependency :)
>> e.g. you don't ship make(1) to run C programs, do you?
>> For runtime, only pbr.version part is required but unfortunately
>> oslo.version was abandoned.
>> 
>> Cheers,
>> Alan
>> 
>> ___
>> OpenStack-dev mailing list
>> OpenStack-dev@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> Perhaps we need a top level Python Version library, not Oslo?  Is there such 
> a thing?  Seems like it should not be something specific to OpenStack

What does pbr.version do?

---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-10 Thread Adam Young

On 11/01/2014 06:51 PM, Alan Pevec wrote:

%install
export OSLO_PACKAGE_VERSION=%{version}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

Then everything should be ok and PBR will become your friend.

Still not my friend because I don't want a _build_ tool as runtime dependency :)
e.g. you don't ship make(1) to run C programs, do you?
For runtime, only pbr.version part is required but unfortunately
oslo.version was abandoned.

Cheers,
Alan

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Perhaps we need a top level Python Version library, not Oslo?  Is there 
such a thing?  Seems like it should not be something specific to OpenStack


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-02 Thread Matthias Runge
On 01/11/14 14:13, Thomas Goirand wrote:
> Hi,
> 
> I was wondering if some distribution OpenStack package maintainers would
> be interested to have some cross-distribution discussion on Friday,
> during the contributors sessions.
> 
Unfortunately, this is at the same time as Ceilometer, Glance, Heat,
Horizon, Keystone, Neutron, Nova, TripleO, Ironic contributors meetup.
I could imagine, some folks, (like me) are wearing more than one hat and
will have to decide.

Could we discuss the time? There might be time slots better suited for this.

Matthias



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-01 Thread Alan Pevec
> %install
> export OSLO_PACKAGE_VERSION=%{version}
> %{__python} setup.py install -O1 --skip-build --root %{buildroot}
>
> Then everything should be ok and PBR will become your friend.

Still not my friend because I don't want a _build_ tool as runtime dependency :)
e.g. you don't ship make(1) to run C programs, do you?
For runtime, only pbr.version part is required but unfortunately
oslo.version was abandoned.

Cheers,
Alan

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-01 Thread Thomas Goirand
On 11/01/2014 11:29 PM, Kashyap Chamarthy wrote:
> On Sat, Nov 01, 2014 at 09:13:21PM +0800, Thomas Goirand wrote:
>> Hi,
>>
>> I was wondering if some distribution OpenStack package maintainers
>> would be interested to have some cross-distribution discussion on
>> Friday, during the contributors sessions.
>>
>> I'll be happy to discuss with Ubuntu people, but not only. I'd like to
>> meet also guys working with RedHat and Gentoo. I'm sure we may have
>> some interesting things to share.
>>
>>
>> OpenStack release management team would also be welcome.
>>
>> If you are interested, please reply to this mail.
> 
> You might also want to start an etherpad instance with some initial
> agenda notes and throw the URL here to guage interest.

Here's the etherpad:
https://etherpad.openstack.org/p/cross_distro_talks

> On a related note, a bunch of Fedora/RHEL/CentOS/Scientific Linux
> packagers are planning[1] to meetup at the summit to discuss RDO project
> packaging aspects, etc.
> 
>   [1] https://etherpad.openstack.org/p/RDO_Meetup_Summit

Well, if you guys are only talking about RPM packaging, as I'm doing
only Debian stuff [1], I'm only mildly interested. If we're going to
talk more about packaging in general, then maybe.

On 11/02/2014 01:45 AM, Adam Young wrote:
> Getting the whole "PBR version" issues cleared up would be huge.

I'm not sure what issue you are talking about, as I believe there's
none. This has been discussed for about a year and a half before we
finally had the OSLO_PACKAGE_VERSION to play with, when this was
designed a few years ago. I'm now very happy about the way PBR does
things, and wouldn't like it to change anything. Currently, what I do in
Debian is (from the debian/rules file included from openstak-pkg-tools):

DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e
's/[-].*//')
export OSLO_PACKAGE_VERSION=$(VERSION)

You may not be familiar with dpkg-parsechangelog, so let me explain.
Basically, if my debian/changelog has on top 2014.2~rc2, the
debian/rules file will exports 2014.2~rc2 into the OSLO_PACKAGE_VERSION
shell variable before doing "python setup.py install", and then PBR is
smart enough to use that.

I am not at all a RedHat packaging specialist, but from the old time
when I did some RPM porting from my Debian packages, I believe that in
your .spec file, this should translate into something like this:

%install
export OSLO_PACKAGE_VERSION=%{version}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

Then everything should be ok and PBR will become your friend. I hope
this helps and that I'm not writing any RPM packaging mistake! :)

Cheers,

Thomas Goirand (zigo)

[1] Here's the list of packages I maintain in Debian (only for OpenStack):
https://qa.debian.org/developer.php?login=openstack-de...@lists.alioth.debian.org


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-01 Thread Kashyap Chamarthy
On Sat, Nov 01, 2014 at 01:45:24PM -0400, Adam Young wrote:
> On 11/01/2014 11:29 AM, Kashyap Chamarthy wrote:
> >On Sat, Nov 01, 2014 at 09:13:21PM +0800, Thomas Goirand wrote:
> >>Hi,
> >>
> >>I was wondering if some distribution OpenStack package maintainers
> >>would be interested to have some cross-distribution discussion on
> >>Friday, during the contributors sessions.
> >>
> >>I'll be happy to discuss with Ubuntu people, but not only. I'd like to
> >>meet also guys working with RedHat and Gentoo. I'm sure we may have
> >>some interesting things to share.
> >>
> >>
> >>OpenStack release management team would also be welcome.
> >>
> >>If you are interested, please reply to this mail.
> >You might also want to start an etherpad instance with some initial
> >agenda notes and throw the URL here to guage interest.
> >
> >On a related note, a bunch of Fedora/RHEL/CentOS/Scientific Linux
> >packagers are planning[1] to meetup at the summit to discuss RDO project
> >packaging aspects, etc.
> >
> >
> >   [1] https://etherpad.openstack.org/p/RDO_Meetup_Summit
> >
> Getting the whole "PBR version" issues cleared up would be huge.

I took the liberty to add the above topic to the etherpad. If you'd like
to add more granular details, feel free to edit.

-- 
/kashyap

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-01 Thread Adam Young

On 11/01/2014 11:29 AM, Kashyap Chamarthy wrote:

On Sat, Nov 01, 2014 at 09:13:21PM +0800, Thomas Goirand wrote:

Hi,

I was wondering if some distribution OpenStack package maintainers
would be interested to have some cross-distribution discussion on
Friday, during the contributors sessions.

I'll be happy to discuss with Ubuntu people, but not only. I'd like to
meet also guys working with RedHat and Gentoo. I'm sure we may have
some interesting things to share.


OpenStack release management team would also be welcome.

If you are interested, please reply to this mail.

You might also want to start an etherpad instance with some initial
agenda notes and throw the URL here to guage interest.

On a related note, a bunch of Fedora/RHEL/CentOS/Scientific Linux
packagers are planning[1] to meetup at the summit to discuss RDO project
packaging aspects, etc.


   [1] https://etherpad.openstack.org/p/RDO_Meetup_Summit


Getting the whole "PBR version" issues cleared up would be huge.

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cross distribution talks on Friday

2014-11-01 Thread Kashyap Chamarthy
On Sat, Nov 01, 2014 at 09:13:21PM +0800, Thomas Goirand wrote:
> Hi,
> 
> I was wondering if some distribution OpenStack package maintainers
> would be interested to have some cross-distribution discussion on
> Friday, during the contributors sessions.
> 
> I'll be happy to discuss with Ubuntu people, but not only. I'd like to
> meet also guys working with RedHat and Gentoo. I'm sure we may have
> some interesting things to share.
>
> 
> OpenStack release management team would also be welcome.
> 
> If you are interested, please reply to this mail.

You might also want to start an etherpad instance with some initial
agenda notes and throw the URL here to guage interest. 

On a related note, a bunch of Fedora/RHEL/CentOS/Scientific Linux
packagers are planning[1] to meetup at the summit to discuss RDO project
packaging aspects, etc.


  [1] https://etherpad.openstack.org/p/RDO_Meetup_Summit

-- 
/kashyap

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev