[MIR] dependencies for tox - See LP: #1367016

Bug #1349832 reported by Matthias Klose
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
distlib (Ubuntu)
Won't Fix
Undecided
Unassigned
python-colorama (Ubuntu)
Won't Fix
Undecided
Unassigned
python-pip (Ubuntu)
Won't Fix
Undecided
Unassigned
python-virtualenv (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

These are all needed as B-Ds for tox, which is also a B-D for system-image, which is seeded for Ubuntu Touch.

Matthias Klose (doko)
Changed in distlib (Ubuntu):
status: New → Incomplete
Changed in python-colorama (Ubuntu):
status: New → Incomplete
Changed in python-pip (Ubuntu):
status: New → Incomplete
Changed in python-virtualenv (Ubuntu):
status: New → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

that was seeded. now removed again

Changed in python-virtualenv (Ubuntu):
status: Incomplete → Invalid
Changed in python-pip (Ubuntu):
status: Incomplete → Invalid
Changed in python-colorama (Ubuntu):
status: Incomplete → Invalid
Changed in distlib (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Barry Warsaw (barry) wrote :

Reopening all bug tasks since we need these to be MIR'd for system-image.

http://people.canonical.com/~ubuntu-archive/component-mismatches-proposed.svg

Changed in distlib (Ubuntu):
status: Invalid → New
Changed in python-colorama (Ubuntu):
status: Invalid → New
Changed in python-pip (Ubuntu):
status: Invalid → New
Changed in python-virtualenv (Ubuntu):
status: Invalid → New
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in distlib (Ubuntu):
status: New → Confirmed
Changed in python-colorama (Ubuntu):
status: New → Confirmed
Changed in python-pip (Ubuntu):
status: New → Confirmed
Changed in python-virtualenv (Ubuntu):
status: New → Confirmed
Revision history for this message
Barry Warsaw (barry) wrote :

See also LP: #1367041

summary: - [MIR] dependencies for python3.4-venv
+ [MIR] dependencies for tox - See LP: #1367016
Revision history for this message
Matthias Klose (doko) wrote :

we are trying to not include any "upstream" eco system into main, like seen with maven. where we do it, we have continuous problems updating and fixing issues like with ruby-rails. python-pip tox are build-dependencies only, so please just avoid these during the build.

and the mir for tox seems to be missing here

Changed in python-pip (Ubuntu):
status: Confirmed → Incomplete
Matthias Klose (doko)
Changed in python-virtualenv (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

it is my understanding that tox serves two purposes, one is a testing framework, the other doing the testing in a virtual environment. testing in a virtual environment makes sense as long as you don't know your environment, however this is not the case on a buildd or an autopkg test, where the environment is defined by the build dependencies or the test dependencies.

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1349832] Re: [MIR] dependencies for tox - See LP: #1367016

On Sep 09, 2014, at 07:59 AM, Matthias Klose wrote:

>it is my understanding that tox serves two purposes, one is a testing
>framework, the other doing the testing in a virtual environment.

I'd agree with that. The really interesting bits for build-deps I think is
the ability to test under multiple versions of Python, and to provide a
one-command no-guesswork invocation of the test suite. What I mean by that is
that if you see a tox.ini, you know you can run `tox` and not worry about all
the various crazy things people do to run their test suite (and there's *a
lot* of variation there). Sadly, my suggestions to add official metadata for
test suite support to the various PEPs has not been accepted.

>testing in a virtual environment makes sense as long as you don't know
>your environment, however this is not the case on a buildd or an autopkg
>test, where the environment is defined by the build dependencies or the
>test dependencies.

Agreed that the "testing in a virtual environment" is the least interesting
aspect of tox as it relates to building Ubuntu packages. Unfortunately
there's no way to separate out those two aspects of tox.

Revision history for this message
Barry Warsaw (barry) wrote :

On Sep 09, 2014, at 02:02 AM, Matthias Klose wrote:

>we are trying to not include any "upstream" eco system into main, like
>seen with maven. where we do it, we have continuous problems updating
>and fixing issues like with ruby-rails. python-pip tox are build-
>dependencies only, so please just avoid these during the build.

I don't know the history of the maven problems, but I don't think pip,
virtualenv, or tox have been very difficult to maintain in either Debian or
Ubuntu. All upstreams are pretty friendly and in the past have actively
addressed issues that we have relating to these packages.

tox is really not an ecosystem tool, it's a testing tool. It happens to run
tests in a virtualenv and *can* use pip (although as a build-time test runner,
especially with pybuild, it won't be able to do anything interesting with
pip).

Ultimately I think we're swimming upstream to deny tox in main, since it's use
is pervasive and growing, and it's the only good one-command, no-guessing way
to run a test suite.

We know the fact that our cross-pocket restrictions, especially for build-deps
is a problem (thus archive reorg). I don't think it will always be possible
to just say "don't use tox to run your test suite" and I don't think it's a
good idea to avoid running a test suite at build time. DEP-8 tests run in
different environments and usually do not run automatically when doing local
testing so they are not a substitute for build-time tests. So I disagree with
prohibiting a common test tool from main.

All that said, in the particular case of system-image, I will see if it's
possible to bypass tox, but I'm not willing to avoid running its test suite at
build time.

Revision history for this message
Matthias Klose (doko) wrote :

well you could run these as autopkg tests instead

Revision history for this message
Adam Conrad (adconrad) wrote :

06:09 <infinity> Maybe tox just needs a tox-lite that doesn't have the pip/virtualenv bits turned on (and thus, hasn't the dependencies).
06:09 <infinity> Though, without archive reorg, that would still be a forked source package. :/
06:10 <infinity> Oh, unless it doesn't need them at build time, which I suppose it might not.

Revision history for this message
Adam Conrad (adconrad) wrote :

Oh, but looking, it very clearly needs pip/venv as build-deps, so yeah, nevermind that as a binary option, it would have to be a new forked source (icky).

Revision history for this message
Matthias Klose (doko) wrote :

closing all these as won't fix. We don't have Ubuntu Touch images anymore.

Changed in distlib (Ubuntu):
status: Confirmed → Won't Fix
Changed in python-colorama (Ubuntu):
status: Confirmed → Won't Fix
Changed in python-pip (Ubuntu):
status: Incomplete → Won't Fix
Changed in python-virtualenv (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.