Path: csiph.com!aioe.org!goblin2!goblin.stu.neva.ru!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Robert Collins Newsgroups: linux.debian.maint.python Subject: Re: Removing some python3-* packages Date: Fri, 03 Jul 2015 05:10:02 +0200 Message-ID: References: X-Original-To: Ian Cordasco Old-Return-Path: X-Amavis-Spam-Status: No, score=-3.68 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, GMAIL=1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, OUTOFOFFICE_BACK=3, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .robertcollins. - helo: .mail-oi0-f51.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=j/CAL1Alhj8NqBBFNj6YNLy+U9a0RjaVDNFO4QGHR0E=; b=Vi/OCA5dV57pJJClrhGO3Tw7yGKmJwLmnB9uqTcl+JppdZp6n60Gp7YU6C+nW5fGrC T4CxvbjsmTl3a0Q2T97ahT3VJ2z+ccuHnnJ/3+OQ9qhLpmP1Lh9I4xoC+JStaLVk1OZK heuTHHPvV7ducFVi/7w+021Wr4if4ZelIAiGQVaVaMyuMfFtCbmqpPTUkwnTuy1bMDX1 z5FuYLdnm6om7U8j15oDOqjGGLL+FknkXnvRhyOR1jotYLi5ViQJRoIQx33gN+la4UwA 09FRGd1f/q019g9AlfQM0KCXR5p3BF0247K18u+AXELu27bSafZfQ+PK2luHm7hAAqEM C78A== X-Gm-Message-State: ALoCoQn8JEmttze7/U9t00+93L6EdFKntOyCPpIc0VDeR5CVVmu7S02tVQC80KcQOrMpP1T2TGX4 MIME-Version: 1.0 X-Received: by 10.60.69.200 with SMTP id g8mr32598324oeu.40.1435892607001; Thu, 02 Jul 2015 20:03:27 -0700 (PDT) X-Originating-IP: [122.57.100.81] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/12378 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 64 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Ben Finney , debian-python X-Original-Date: Fri, 3 Jul 2015 15:03:26 +1200 X-Original-Message-ID: X-Original-References: <20150702155530.4e93b05d@limelight.wooz.org> <85lheyqgb3.fsf@benfinney.id.au> Xref: aioe.org linux.debian.maint.python:7076 On 3 July 2015 at 11:44, Ian Cordasco wrote: > On Thu, Jul 2, 2015 at 6:40 PM, Ben Finney w= rote: >> Barry Warsaw writes: >> >>> [=E2=80=A6] there's actually no reason to have a Python 3 version of en= um in >>> any version >=3D Python 3.4. [=E2=80=A6] >> >> Ian Cordasco writes: >> >>> Probably a silly question, but are other libraries like unittest2 also >>> being packaged for python3? Another library is mock. That was included >>> in the stdlib in 3.3. >> >> One consideration is: What code is written to be Python 2 and Python 3 >> compatible from the same code base, which achieves this by importing a >> module which is backported to Python 2? >> >> In some of my code I'm doing =E2=80=98import unit2=E2=80=99 to have feat= ures from that >> library available in Python 2 code. >> >> Since those features are all in Python 3's standard library, the case >> could be made that =E2=80=98python3-unit2=E2=80=99 is pointless; but aga= inst that is the >> fact that a Python 3 =E2=80=98unit2=E2=80=99 package means that =E2=80= =98import unit2=E2=80=99 will work >> the same on both runtime versions. >> >> So I'd argue that =E2=80=98python3-mock=E2=80=99 and the like do have a = place in Debian: >> they make it easier to follow the recommended strategy of having a code >> base run unchanged on Python2 and Python 3. > > Just to be clear, trying to use mock on 3.4 is thoroughly broken. If > you can install python3-mock right now and use it in 3.4, then y'all > must be carrying patches to make it work. The last 3.x version that > mock works on is 3.3. > > That clearly doesn't have a place on a debian with python 3.5 as the > version of python 3 included, unless you're planning on supporting > packages for python 3.3 as well that will generate a numerous amount > of bugs for you. See my prior mail. I will be backporting all the changes in mock from the stdlib to the mock standalone lib in the near future. I have upload acls from Michael Foord for PyPI and I'm not afraid to use them to fix it up - if you wanted to prep a narrow patch to fix 3.4 then please do so here - https://github.com/testing-cabal/mock -Rob --=20 Robert Collins Distinguished Technologist HP Converged Cloud -- To UNSUBSCRIBE, email to debian-python-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: https://lists.debian.org/CAJ3HoZ1emwKF5St9WburFxv0ffe-Ufn+JKugCvvd2TTarNN0gQ@mail.gmail.com