Re: [openstack-dev] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
On 24 November 2015 at 20:06, Angus Lees wrote: > Ah, I could have been clearer. A workaround for (2) in the original post: > If you're starting from an older pip version it can be hard to bootstrap the > right order of new things to correctly survive the new "; predicate" > requirements.txt syntax. Oh. So yes and no. That won't help with a number of failures, specifically conflicts with pbr in setup_requires which will happen at sdist time if the setuptools and or pbr *outside* the venv are too old. https://rbtcollins.wordpress.com/2015/07/12/bootstrapping-developer-environments-for-openstack/ is my recipe for avoiding issues - and doesn't require mucking about with system packages, nor changing tox.ini. It has one known defect - I need to update it for the python3-as-default changes that are rippling through various distros at the moment, since they change the packages that one needs to not use - but putting stuff in a user-install and not touching the system packages is still superior and doesn't require any purging etc. -Rob -- Robert Collins Distinguished Technologist HP Converged Cloud __ 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
Ah, I could have been clearer. A workaround for (2) in the original post: If you're starting from an older pip version it can be hard to bootstrap the right order of new things to correctly survive the new "; predicate" requirements.txt syntax. On Mon, 23 Nov 2015 at 18:10 Robert Collins wrote: > Workaround for what? > > -Rob > > On 23 November 2015 at 19:39, Angus Lees wrote: > > The workaround I found is to set this in tox.ini: > > > > install_command = > > sh -c 'pip install -U "pip>=6" && pip install -U "$@"' pip {opts} > > {packages} > > > > It's pretty ugly, but works fine and was unfortunately the only way I > could > > find to update a dependency before parsing requirements.txt. > > > > - Gus > > > > On Tue, 17 Nov 2015 at 06:25 Doug Hellmann > wrote: > >> > >> Excerpts from gord chung's message of 2015-11-16 12:04:27 -0500: > >> > > >> > On 16/11/2015 11:13 AM, Doug Hellmann wrote: > >> > > does anyone want to sign up to remove that last > >> > > namespace package? > >> > already in action: https://review.openstack.org/#/c/243255/ > >> > > >> > >> Thanks, Gordon! > >> > >> > __ > >> 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 > > > > > > -- > Robert Collins > Distinguished Technologist > HP Converged Cloud > > __ > 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
Workaround for what? -Rob On 23 November 2015 at 19:39, Angus Lees wrote: > The workaround I found is to set this in tox.ini: > > install_command = > sh -c 'pip install -U "pip>=6" && pip install -U "$@"' pip {opts} > {packages} > > It's pretty ugly, but works fine and was unfortunately the only way I could > find to update a dependency before parsing requirements.txt. > > - Gus > > On Tue, 17 Nov 2015 at 06:25 Doug Hellmann wrote: >> >> Excerpts from gord chung's message of 2015-11-16 12:04:27 -0500: >> > >> > On 16/11/2015 11:13 AM, Doug Hellmann wrote: >> > > does anyone want to sign up to remove that last >> > > namespace package? >> > already in action: https://review.openstack.org/#/c/243255/ >> > >> >> Thanks, Gordon! >> >> __ >> 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 > -- Robert Collins Distinguished Technologist HP Converged Cloud __ 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
The workaround I found is to set this in tox.ini: install_command = sh -c 'pip install -U "pip>=6" && pip install -U "$@"' pip {opts} {packages} It's pretty ugly, but works fine and was unfortunately the only way I could find to update a dependency before parsing requirements.txt. - Gus On Tue, 17 Nov 2015 at 06:25 Doug Hellmann wrote: > Excerpts from gord chung's message of 2015-11-16 12:04:27 -0500: > > > > On 16/11/2015 11:13 AM, Doug Hellmann wrote: > > > does anyone want to sign up to remove that last > > > namespace package? > > already in action: https://review.openstack.org/#/c/243255/ > > > > Thanks, Gordon! > > __ > 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
Excerpts from gord chung's message of 2015-11-16 12:04:27 -0500: > > On 16/11/2015 11:13 AM, Doug Hellmann wrote: > > does anyone want to sign up to remove that last > > namespace package? > already in action: https://review.openstack.org/#/c/243255/ > Thanks, Gordon! __ 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
On 16/11/2015 11:13 AM, Doug Hellmann wrote: does anyone want to sign up to remove that last namespace package? already in action: https://review.openstack.org/#/c/243255/ -- gord __ 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
Excerpts from Dmitry Tantsur's message of 2015-11-16 12:37:15 +0100: > On 11/16/2015 12:28 PM, Davanum Srinivas wrote: > > Dmitry, > > > > i was trying to bring sanity to the tox.ini(s). +1 to documenting this > > step somewhere prominent. > > Please don't get me wrong, I really appreciate it. I'm not sure why > "usedevelop" is not the default, though. Maybe we at least make sure to > communicate this to people first? Because the error message is really > vague to anyone who is not aware of these version tags. When the Oslo libraries depended on namespace packages, we couldn't have usedevelop = True because it broke importing other libraries. Now that we've removed namespace packages from most of the libraries, we could set it true everywhere except oslo.middleware (I think that's the only one that was left, because of having to wait to roll out paste.ini changes this cycle -- does anyone want to sign up to remove that last namespace package?). Doug > > > > > -- Dims > > > > On Mon, Nov 16, 2015 at 5:37 AM, Dmitry Tantsur wrote: > >> On 11/16/2015 11:35 AM, Julien Danjou wrote: > >>> > >>> On Mon, Nov 16 2015, Dmitry Tantsur wrote: > >>> > Before you ask: using 'sudo pip install -U setuptools pbr' is out of > question > in binary distributions :) so please make sure to remove this line only > when > everyone is updated to whatever version is required for understanding > these > ;python_version=='2.7 bits. > >>> > >>> > >>> But: > >>> pip install --user setuptools pbr > >>> might not be out of the question. > >>> > >> > >> Yeah, this (with added -U) fixes the problem. But then we have to add it to > >> *all* contribution documentation. I'm pretty sure a lot of people won't > >> realize they need it. > >> > >> > >> __ > >> 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
On 11/16/2015 12:28 PM, Davanum Srinivas wrote: Dmitry, i was trying to bring sanity to the tox.ini(s). +1 to documenting this step somewhere prominent. Please don't get me wrong, I really appreciate it. I'm not sure why "usedevelop" is not the default, though. Maybe we at least make sure to communicate this to people first? Because the error message is really vague to anyone who is not aware of these version tags. -- Dims On Mon, Nov 16, 2015 at 5:37 AM, Dmitry Tantsur wrote: On 11/16/2015 11:35 AM, Julien Danjou wrote: On Mon, Nov 16 2015, Dmitry Tantsur wrote: Before you ask: using 'sudo pip install -U setuptools pbr' is out of question in binary distributions :) so please make sure to remove this line only when everyone is updated to whatever version is required for understanding these ;python_version=='2.7 bits. But: pip install --user setuptools pbr might not be out of the question. Yeah, this (with added -U) fixes the problem. But then we have to add it to *all* contribution documentation. I'm pretty sure a lot of people won't realize they need it. __ 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
Dmitry, i was trying to bring sanity to the tox.ini(s). +1 to documenting this step somewhere prominent. -- Dims On Mon, Nov 16, 2015 at 5:37 AM, Dmitry Tantsur wrote: > On 11/16/2015 11:35 AM, Julien Danjou wrote: >> >> On Mon, Nov 16 2015, Dmitry Tantsur wrote: >> >>> Before you ask: using 'sudo pip install -U setuptools pbr' is out of >>> question >>> in binary distributions :) so please make sure to remove this line only >>> when >>> everyone is updated to whatever version is required for understanding >>> these >>> ;python_version=='2.7 bits. >> >> >> But: >>pip install --user setuptools pbr >> might not be out of the question. >> > > Yeah, this (with added -U) fixes the problem. But then we have to add it to > *all* contribution documentation. I'm pretty sure a lot of people won't > realize they need it. > > > __ > 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 -- Davanum Srinivas :: https://twitter.com/dims __ 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
On 11/16/2015 11:35 AM, Julien Danjou wrote: On Mon, Nov 16 2015, Dmitry Tantsur wrote: Before you ask: using 'sudo pip install -U setuptools pbr' is out of question in binary distributions :) so please make sure to remove this line only when everyone is updated to whatever version is required for understanding these ;python_version=='2.7 bits. But: pip install --user setuptools pbr might not be out of the question. Yeah, this (with added -U) fixes the problem. But then we have to add it to *all* contribution documentation. I'm pretty sure a lot of people won't realize they need it. __ 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
On Mon, Nov 16 2015, Dmitry Tantsur wrote: > Before you ask: using 'sudo pip install -U setuptools pbr' is out of question > in binary distributions :) so please make sure to remove this line only when > everyone is updated to whatever version is required for understanding these > ;python_version=='2.7 bits. But: pip install --user setuptools pbr might not be out of the question. -- Julien Danjou -- Free Software hacker -- https://julien.danjou.info signature.asc Description: PGP signature __ 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] [all] [oslo] Please stop removing usedevelop from tox.ini (at least for now)
Hi all! I've seen a couple of patches removing "usedevelop = true" from tox.ini. This has 2 nasty consequences: 1. It's harder to manually experiment in tox environment, as you have to explicitly use 'tox' command every time you change code 2. The most important, it breaks tox invocation for all people who don't have very recent pbr and setuptools in their distributions (which I suspect might be the majority of people): ERROR: invocation failed (exit code 1), logfile: /home/dtantsur/.gerrty-git/openstack/futurist/.tox/log/tox-0.log ERROR: actionid=tox msg=packaging cmdargs=['/usr/bin/python', local('/home/dtantsur/.gerrty-git/openstack/futurist/setup.py'), 'sdist', '--formats=zip', '--dist-dir', local('/home/dtantsur/.gerrty-git/openstack/futurist/.tox/dist')] env=None Installed /home/dtantsur/.gerrty-git/openstack/futurist/.eggs/pbr-1.8.1-py2.7.egg error in setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected ',' or end-of-list in futures>=3.0;python_version=='2.7' or python_version=='2.6' at ;python_version=='2.7' or python_version=='2.6' ERROR: FAIL could not package project - v = InvocationError('/usr/bin/python /home/dtantsur/.gerrty-git/openstack/futurist/setup.py sdist --formats=zip --dist-dir /home/dtantsur/.gerrty-git/openstack/futurist/.tox/dist (see /home/dtantsur/.gerrty-git/openstack/futurist/.tox/log/tox-0.log)', 1) Before you ask: using 'sudo pip install -U setuptools pbr' is out of question in binary distributions :) so please make sure to remove this line only when everyone is updated to whatever version is required for understanding these ;python_version=='2.7 bits. Thank you! __ 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