Re: [openstack-dev] [horizon][all] How to properly depend on Horizon

2016-04-04 Thread Doug Hellmann

> On Apr 4, 2016, at 3:32 PM, Rob Cresswell  
> wrote:
> 
> When you refer to publishing horizon on PyPI, did you mean the entire service 
> (horizon + openstack_dashboard), or just the horizon package?
> 
> My advice would be to add the horizon tarball to requirements.txt rather than 
> test-requirements, and just use stable-* tarball when creating stable plugin 
> releases. I'm not sure what the tox method achieves; it seems like it 
> obscures the dependency to me.

Linking to tarballs in dependency lists doesn’t let us express which versions 
are actually compatible, and it doesn’t help packagers understand the true 
interdependencies of our projects.

It seems to me that it’s time to split the horizon library (or framework, or 
whatever) out so we can publish it to PyPI and treat it as a dependency of all 
of the UI projects we’re spawning.

Doug

> 
> Rob
> 
> On 4 April 2016 at 02:37, Serg Melikyan  > wrote:
> Hi folks,
> 
> while I was working on bug [0] with incorrect dependency to horizon in
> stable/mitaka I discovered at least three different ways how people
> add such dependency:
> 
> 1. tarball dependency in tox.ini [1]
> 2. tarball dependency in test-requirements.txt [2]
> 3. git repo dependency in  test-requirements.txt [3]
> 
> Question: How to properly depend on horizon?
> 
> P.S. Looks like update.py in openstack/requirements simply ignores #2
> and #3 and don't count as extra dependency.
> 
> P.P.S Why we can't publish horizon to pypi.openstack.org 
> ?
> 
> Reference:
> [0] https://bugs.launchpad.net/bugs/1565577 
> 
> [1] 
> https://github.com/openstack/designate-dashboard/blob/dfa2fc6660467da2f1c53e12aeb7d7aab5d7531e/tox.ini#L20
>  
> 
> [2] 
> https://github.com/openstack/monasca-ui/blob/8861bede7e06d19b265d3425208b4865c480eb69/test-requirements.txt#L25
>  
> 
> [3] 
> https://github.com/openstack/manila-ui/blob/bf382083b281a77f77df9e0bd51376df49d53b2e/test-requirements.txt#L5
>  
> 
> 
> --
> Serg Melikyan, Development Manager at Mirantis, Inc.
> http://mirantis.com  | smelik...@mirantis.com 
> 
> 
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe 
> 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev 
> 
> 
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [horizon][all] How to properly depend on Horizon

2016-04-04 Thread Rob Cresswell
When you refer to publishing horizon on PyPI, did you mean the entire service 
(horizon + openstack_dashboard), or just the horizon package?

My advice would be to add the horizon tarball to requirements.txt rather than 
test-requirements, and just use stable-* tarball when creating stable plugin 
releases. I'm not sure what the tox method achieves; it seems like it obscures 
the dependency to me.

Rob

On 4 April 2016 at 02:37, Serg Melikyan 
mailto:smelik...@mirantis.com>> wrote:
Hi folks,

while I was working on bug [0] with incorrect dependency to horizon in
stable/mitaka I discovered at least three different ways how people
add such dependency:

1. tarball dependency in tox.ini [1]
2. tarball dependency in test-requirements.txt [2]
3. git repo dependency in  test-requirements.txt [3]

Question: How to properly depend on horizon?

P.S. Looks like update.py in openstack/requirements simply ignores #2
and #3 and don't count as extra dependency.

P.P.S Why we can't publish horizon to 
pypi.openstack.org?

Reference:
[0] https://bugs.launchpad.net/bugs/1565577
[1] 
https://github.com/openstack/designate-dashboard/blob/dfa2fc6660467da2f1c53e12aeb7d7aab5d7531e/tox.ini#L20
[2] 
https://github.com/openstack/monasca-ui/blob/8861bede7e06d19b265d3425208b4865c480eb69/test-requirements.txt#L25
[3] 
https://github.com/openstack/manila-ui/blob/bf382083b281a77f77df9e0bd51376df49d53b2e/test-requirements.txt#L5

--
Serg Melikyan, Development Manager at Mirantis, Inc.
http://mirantis.com | smelik...@mirantis.com

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: 
openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [horizon][all] How to properly depend on Horizon

2016-04-04 Thread Serg Melikyan
>I agree the simplest way is to publish horizon to PyPI, but the OpenStack does 
>not release server projects to PyPI yet.

Problem is that openstack/horizon is actually two things in one repo:
* OpenStack Dashboard which is server project
* Horizon which is library

In this case I would say that publishing to pypi.openstack.org would
be much more practical.

On Sun, Apr 3, 2016 at 9:49 PM, Akihiro Motoki  wrote:
>
> Hi Serg,
>
> I proposed another way to sahara-dashboard [1].
> This is the way used in neutron sub-projects.
> It also allows us to use constrained environments used in OpenStack gate jobs.
> I believe it works for all horizon related projects.
>
> I agree the simplest way is to publish horizon to PyPI, but
> the OpenStack does not release server projects to PyPI yet.
>
> Akihiro
>
> [1] https://github.com/openstack/sahara-dashboard/blob/master/tox.ini#L8
>
> 2016-04-04 10:37 GMT+09:00 Serg Melikyan :
> > Hi folks,
> >
> > while I was working on bug [0] with incorrect dependency to horizon in
> > stable/mitaka I discovered at least three different ways how people
> > add such dependency:
> >
> > 1. tarball dependency in tox.ini [1]
> > 2. tarball dependency in test-requirements.txt [2]
> > 3. git repo dependency in  test-requirements.txt [3]
> >
> > Question: How to properly depend on horizon?
> >
> > P.S. Looks like update.py in openstack/requirements simply ignores #2
> > and #3 and don't count as extra dependency.
> >
> > P.P.S Why we can't publish horizon to pypi.openstack.org?
> >
> > Reference:
> > [0] https://bugs.launchpad.net/bugs/1565577
> > [1] 
> > https://github.com/openstack/designate-dashboard/blob/dfa2fc6660467da2f1c53e12aeb7d7aab5d7531e/tox.ini#L20
> > [2] 
> > https://github.com/openstack/monasca-ui/blob/8861bede7e06d19b265d3425208b4865c480eb69/test-requirements.txt#L25
> > [3] 
> > https://github.com/openstack/manila-ui/blob/bf382083b281a77f77df9e0bd51376df49d53b2e/test-requirements.txt#L5
> >
> > --
> > Serg Melikyan, Development Manager at Mirantis, Inc.
> > http://mirantis.com | smelik...@mirantis.com
> >
> > __
> > OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Serg Melikyan, Development Manager at Mirantis, Inc.
http://mirantis.com | smelik...@mirantis.com

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [horizon][all] How to properly depend on Horizon

2016-04-03 Thread Akihiro Motoki
Hi Serg,

I proposed another way to sahara-dashboard [1].
This is the way used in neutron sub-projects.
It also allows us to use constrained environments used in OpenStack gate jobs.
I believe it works for all horizon related projects.

I agree the simplest way is to publish horizon to PyPI, but
the OpenStack does not release server projects to PyPI yet.

Akihiro

[1] https://github.com/openstack/sahara-dashboard/blob/master/tox.ini#L8

2016-04-04 10:37 GMT+09:00 Serg Melikyan :
> Hi folks,
>
> while I was working on bug [0] with incorrect dependency to horizon in
> stable/mitaka I discovered at least three different ways how people
> add such dependency:
>
> 1. tarball dependency in tox.ini [1]
> 2. tarball dependency in test-requirements.txt [2]
> 3. git repo dependency in  test-requirements.txt [3]
>
> Question: How to properly depend on horizon?
>
> P.S. Looks like update.py in openstack/requirements simply ignores #2
> and #3 and don't count as extra dependency.
>
> P.P.S Why we can't publish horizon to pypi.openstack.org?
>
> Reference:
> [0] https://bugs.launchpad.net/bugs/1565577
> [1] 
> https://github.com/openstack/designate-dashboard/blob/dfa2fc6660467da2f1c53e12aeb7d7aab5d7531e/tox.ini#L20
> [2] 
> https://github.com/openstack/monasca-ui/blob/8861bede7e06d19b265d3425208b4865c480eb69/test-requirements.txt#L25
> [3] 
> https://github.com/openstack/manila-ui/blob/bf382083b281a77f77df9e0bd51376df49d53b2e/test-requirements.txt#L5
>
> --
> Serg Melikyan, Development Manager at Mirantis, Inc.
> http://mirantis.com | smelik...@mirantis.com
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [horizon][all] How to properly depend on Horizon

2016-04-03 Thread Serg Melikyan
Hi folks,

while I was working on bug [0] with incorrect dependency to horizon in
stable/mitaka I discovered at least three different ways how people
add such dependency:

1. tarball dependency in tox.ini [1]
2. tarball dependency in test-requirements.txt [2]
3. git repo dependency in  test-requirements.txt [3]

Question: How to properly depend on horizon?

P.S. Looks like update.py in openstack/requirements simply ignores #2
and #3 and don't count as extra dependency.

P.P.S Why we can't publish horizon to pypi.openstack.org?

Reference:
[0] https://bugs.launchpad.net/bugs/1565577
[1] 
https://github.com/openstack/designate-dashboard/blob/dfa2fc6660467da2f1c53e12aeb7d7aab5d7531e/tox.ini#L20
[2] 
https://github.com/openstack/monasca-ui/blob/8861bede7e06d19b265d3425208b4865c480eb69/test-requirements.txt#L25
[3] 
https://github.com/openstack/manila-ui/blob/bf382083b281a77f77df9e0bd51376df49d53b2e/test-requirements.txt#L5

-- 
Serg Melikyan, Development Manager at Mirantis, Inc.
http://mirantis.com | smelik...@mirantis.com

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev