Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Ondrej Novy 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: References: X-Original-To: Simon McVittie X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Dec 1 11:15:10 2017 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -4.098 Reply-To: Ondrej Novy , 883246@bugs.debian.org Original-Sender: ondrej.novy@gmail.com Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: wnpp@debian.org, =?utf-8?b?T25kxZllaiBOb3bDvQ==?= 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: archive/latest/1422890 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 95 Organization: linux.* mail to news gateway X-Original-Cc: 883246@bugs.debian.org, debian-python X-Original-Date: Fri, 1 Dec 2017 12:13:26 +0100 X-Original-Message-ID: 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 --001a1141ae582a8a8a055f4575d1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, 2017-12-01 11:25 GMT+01:00 Simon McVittie : > Within Debian, wouldn't this be better achieved by having Python 2 packag= es > 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=3Ded2496b8582d939a8ad48769a8b513e916d9df5a 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=3D881989 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. --=20 Best regards Ond=C5=99ej Nov=C3=BD Email: novy@ondrej.org PGP: 3D98 3C52 EB85 980C 46A5 6090 3573 1255 9D1E 064B --001a1141ae582a8a8a055f4575d1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

2017-12-01 11:25 GMT+01:00 Simon McVittie <smcv@debian.org>:
Within Debian, w= ouldn'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.
<= /blockquote>

I already tried this solution.=C2=A0
<= div>
I added:
https://anonscm.debian.org/cgit/python-modules/package= s/enum34.git/commit/?id=3Ded2496b8582d939a8ad48769a8b513e916d9df5a

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

But when some packages requi= res enum-compat in setup.py:

But even with this change yo= u need to patch upstream code, see:

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

The proposed name als= o 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 cor= rect.

--
Best re= gards
=C2=A0Ond=C5=99ej Nov=C3=BD
=C2=A0
Email: novy@ondrej.org
PGP:=C2=A0= 3D98 3C52 EB85 980C 46A5 =C2=A06090 3573 1255 9D1E 064B

=
--001a1141ae582a8a8a055f4575d1--