Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #7213

Re: Removing some python3-* packages

From Barry Warsaw <barry@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Removing some python3-* packages
Date 2015-08-25 01:30 +0200
Message-ID <q19lE-5Oe-7@gated-at.bofh.it> (permalink)
References (3 earlier) <pZeIO-39Y-31@gated-at.bofh.it> <q17Wy-3Ef-27@gated-at.bofh.it> <q186e-46x-11@gated-at.bofh.it> <q18zg-4Eq-29@gated-at.bofh.it> <q18IV-4PH-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Aug 25, 2015, at 10:45 AM, Robert Collins wrote:

>Lets take Ironic. While it supports Python 2.7+ and 3.4+ it will
>depend on 'mock' for unit testing.

That's not unreasonable, and different upstreams will have different policies,
but if it was *my* upstream package, I'd probably do a conditional import so
that unittest.mock were used if available, falling back to mock if not.

If it's easy to patch upstream to do this, then it seems an acceptable
approach to take.  I wouldn't say it's *required* (which is why I'm not sure a
blanket policy is appropriate for us).

> - patch Ironic to use unittest.mock on Python 3.5

That would be my first preference, and I'd also submit the patch to upstream.

> - patch the stdlib to make 'mock' be an alias to unittest.mock

Nope.

> - include 'python3-mock' as a binary package

That's not unreasonable for Debian either.

I'll note another thing that perhaps makes the enum34 case different.  It
exports the package under the same name in both the standalone version and in
the stdlib, so there *really* is no difference between the two.  That's not
the case with unittest.mock/mock.

> - not run the Ironic unit tests.

Nope.

But anyway, that's MHO.

Cheers,
-Barry

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Removing some python3-* packages Matthias Klose <doko@debian.org> - 2015-08-19 18:50 +0200
  Re: Removing some python3-* packages Barry Warsaw <barry@debian.org> - 2015-08-25 00:00 +0200
    Re: Removing some python3-* packages Robert Collins <robertc@robertcollins.net> - 2015-08-25 00:10 +0200
      Re: Removing some python3-* packages Barry Warsaw <barry@debian.org> - 2015-08-25 00:40 +0200
        Re: Removing some python3-* packages Robert Collins <robertc@robertcollins.net> - 2015-08-25 00:50 +0200
          Re: Removing some python3-* packages Barry Warsaw <barry@debian.org> - 2015-08-25 01:30 +0200
            Re: Removing some python3-* packages Robert Collins <robertc@robertcollins.net> - 2015-08-25 01:40 +0200
              Re: Removing some python3-* packages Barry Warsaw <barry@debian.org> - 2015-08-25 01:50 +0200
              Re: Removing some python3-* packages Thomas Kluyver <thomas@kluyver.me.uk> - 2015-08-25 01:50 +0200
                Re: Removing some python3-* packages Robert Collins <robertc@robertcollins.net> - 2015-08-25 04:00 +0200

csiph-web