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


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

Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Ondrej Novy <novy@ondrej.org>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package
Date Fri, 01 Dec 2017 12:20:02 +0100
Message-ID <uRRwm-3I7-3@gated-at.bofh.it> (permalink)
References <uRQgV-2I8-9@gated-at.bofh.it> <uRQJX-37W-3@gated-at.bofh.it> <uRQgV-2I8-9@gated-at.bofh.it> <uRQJX-37W-3@gated-at.bofh.it>
X-Original-To Simon McVittie <smcv@debian.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Fri Dec 1 11:15:10 2017
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -4.098
Reply-To Ondrej Novy <novy@ondrej.org>, 883246@bugs.debian.org
Original-Sender ondrej.novy@gmail.com
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc wnpp@debian.org, Ondřej Nový <onovy@debian.org>
X-Debian-Pr-Message followup 883246
X-Debian-Pr-Package wnpp
X-Spam-Bayes score:0.0000 Tokens: new, 36; hammy, 150; neutral, 114; spammy, 0. spammytokens: hammytokens:0.000-+--python27, 0.000-+--python2.7, 0.000-+--HX-Google-DKIM-Signature:in-reply-to, 0.000-+--McVittie, 0.000-+--mcvittie
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=G8FTgYxmnqQJczFfTiw/yQofVbrt8ywZw/BtuvjAnbg=; b=K8CjiN7ZuzTI8E02G5wmQ5YuW3Lrif1Z/ydsDPayxBMZmdoo44YvPqOlsWyd0oBw04 kCjJ/OYOWRli5D2uWE3n4uFr/vRd5S9keHGculZZjE7zg5n4YQCwVOeGS1hNQZgteEOg foOlDpr1evqen976ebQyzGPLg2YD/gaLYr1jERg3PPQ6yd5VKtvD9ptNqHgvrbGQQNK0 PZ/0D8dP33zDj/Exky1Qi+0WGHNjaRMPMztdgU9IrcX8l+WpdiEAVMBMHPqVcuzGbL3O WVxJX6ZWOcMESREyNWlqV5PX1PrFsbuHQ2yZyr+VLTCy79gaa7hmLLRDk9t47OjXUrfs ifwQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=G8FTgYxmnqQJczFfTiw/yQofVbrt8ywZw/BtuvjAnbg=; b=QUtjpysXelwJtapjyLmhCn+7FKlMgm1VZqy1/iqMtZ+fafkn6UMD55+yTAynXUkyPC 4xBDKx3fISsLzFKYwiUcfPdFmJmWuO8iO0MU6Jj4kmPNhYVHV26RPl8LIkgK3mweI+Ix B5g59XWQIlK5aHIwNXCwb68Mt0tXWnTnl3kIptQ4nhq0xkf3lgwRtg2D9Mhpbo+OwnMq dMCuEJsuq0WWYoQ7pY1LP99ybwD4fdm6FFb7XI9H94b3Vfxt6+FHoHC2e1QEZ2gWIeSa A5M7e7al94KxNr5n3pOjQ0vKmrHtiPludvW/tX5f6TJFk2ZyF/738Q0tbK9Jft80GYIX sBXg==
X-Gm-Message-State AKGB3mLTuSAMSXUr0C3SlgcoRt3+E2omty1ap1f5LVXchk6nVltbrmTk g9A2xFtJOIs1ihTk434Bg3riwHkaq0JRMq/O+r8=
X-Google-SMTP-Source AGs4zMaBOJGh2T6yYLIyxHCJymbV3aomiHJCV/hZWRn6cRmODJZi3YdgavtsKc46nzfrxKDxeRudGgebhC2uIpKToZI=
X-Received by 10.200.40.157 with SMTP id i29mr8070551qti.86.1512126806656; Fri, 01 Dec 2017 03:13:26 -0800 (PST)
MIME-Version 1.0
Sender robomod@news.nic.it
X-Google-Sender-Auth PLr5JMAiyouzkegemOUDbV4oTSs
Content-Type multipart/alternative; boundary="001a1141ae582a8a8a055f4575d1"
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1422890
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 95
Organization linux.* mail to news gateway
X-Original-Cc 883246@bugs.debian.org, debian-python <debian-python@lists.debian.org>
X-Original-Date Fri, 1 Dec 2017 12:13:26 +0100
X-Original-Message-ID <CAOO6c=xg8fKT5fYqr-5q6jnHV3fZquC+JRzjnxbonhYPsS2h0Q@mail.gmail.com>
X-Original-References <151212171747.8735.3910383764092601931.reportbug@sid> <20171201102522.GA30779@perpetual.pseudorandom.co.uk> <151212171747.8735.3910383764092601931.reportbug@sid> <20171201102522.GA30779@perpetual.pseudorandom.co.uk>
X-Original-Sender ondrej.novy@gmail.com
Xref csiph.com linux.debian.bugs.dist:866302 linux.debian.maint.python:9987

Cross-posted to 2 groups.

Show key headers only | View raw


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

Hi,

2017-12-01 11:25 GMT+01:00 Simon McVittie <smcv@debian.org>:

> Within Debian, wouldn't this be better achieved by having Python 2 packages
> that require enum34 depend on python-enum34 directly, as they already do?
> python-enum34 could have a Provides on some other name if that helped.
>

I already tried this solution.

I added:
https://anonscm.debian.org/cgit/python-modules/packages/enum34.git/commit/?id=ed2496b8582d939a8ad48769a8b513e916d9df5a

which should handle deps to be automatically added by pybuild, which works.

But when some packages requires enum-compat in setup.py:
https://anonscm.debian.org/cgit/python-modules/packages/python-eventlet.git/tree/setup.py#n16

But even with this change you need to patch upstream code, see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881989

Without this patch, setuptools install deps fails (tries to download it
from pypi). Build of eventlet doesn't fail, because it doesn't downloads
requirements from pypi. But other packages which depends on eventlet fails.

The proposed name also isn't really compatible with Debian Python
> policies: you can't `import enum_compat` after installing it.
>

you can't, but enum-compat will be even more confusing. Because
python-enum-compat will contain
'/usr/lib/python2.7/dist-packages/enum_compat-0.0.2.egg-info i think
python-enum-compat is correct.

-- 
Best regards
 Ondřej Nový

Email: novy@ondrej.org
PGP: 3D98 3C52 EB85 980C 46A5  6090 3573 1255 9D1E 064B

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


Thread

Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package Ondrej Novy <novy@ondrej.org> - 2017-12-01 12:20 +0100
  Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package Simon McVittie <smcv@debian.org> - 2017-12-01 12:50 +0100

csiph-web