Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: Binary naming for Django Related Packages Date: Mon, 28 Nov 2016 18:10:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Nov 28 17:09:30 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 Dkim-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kitterman.com; s=201409; t=1480352947; bh=a32s+QHz4cTJtRzwAf6rZyiAG1fQ4PQs5hrhP5QoEQk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Prz4fIXNp/0F7YIWYX+VG5bCNQ8K+NxH00M3O0t80lc37gJduKCIxtdbUr3Dx8Xxb xps5ZveI3F+tL683M53b64T9XekwwavQh1kUaYRA385D9dcCNd1Fv5zeOwE5tOfOnE 0VRHJi697JjsE7IGmkwG01Ln677ZQdvoaDNP2nHU= User-Agent: KMail/4.13.3 (Linux/3.13.0-101-generic; KDE/4.13.3; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailing-List: archive/latest/14388 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/1661297.rc9HeQAamU@kitterma-e6430 Approved: robomod@news.nic.it Lines: 86 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 28 Nov 2016 12:09:06 -0500 X-Original-Message-ID: <1661297.rc9HeQAamU@kitterma-e6430> X-Original-References: <26917154.d0blnEnNDW@kitterma-e6430> <20161128165024.gn4s7tudeiqtoaow@sar0.p1otr.com> Xref: csiph.com linux.debian.maint.python:9042 On Monday, November 28, 2016 05:50:24 PM Piotr O=C5=BCarowski wrote: > [Scott Kitterman, 2016-11-28] >=20 > > I've recently done some Django related packaging for the first time= and > > noticed that we have organically (as far as I can tell) grown a sli= ghtly > > different naming convention for such packages. Instead of python*-= foo, we > > use python*-django-foo. > >=20 > > I think this is a reasonable approach and followed it in the new pa= ckages > > I've recently done. > >=20 > > I decided to check and see how common the approach is. Here's what= I > > found in Sid: > >=20 > > Start with django: 7 > > Start w/django, not transitional: 2 > > Start with django3: 0 > >=20 > > Start with python-django (excluding -doc): 136 > > Start with python3-django: 84 > >=20 > > I think it would make sense to add this to the Python policy so how= we're > > doing it is documented. I am attaching a proposed diff. I made it= a > > should because there are two non-DPMT packages that don't follow th= is > > rule and I think it's late in the cycle to be adding to must policy= > > requirements. > >=20 > > Please let me know what you think. I'm open to suggestions on word= ing.=20 > > I'd like to get this done in the next week and do a python-defaults= > > upload with this and a few minor (non-policy) changes that are pend= ing. >=20 > -1 from me >=20 >=20 > If Django packages have no use outside Django=C2=B9, they should be m= oved out=C2=B2 > of public dist-packages IMO. If they are useful, "-django" part is > misleading. >=20 > [=C2=B9] dash suggest they're not in django namespace, otherwise bina= ry > package name would be python3-django.foo > (or python3-django.ext.foo, like in flask?) > [=C2=B2] sys.path.append('/usr/lib/python3/django-packages/') in > django/__init__.py if django import always prepends other imports= > (python3-django- namespace would be tolerable then, I guess) Some, but not all of them, are shipped as django_foo, so for those, I t= hink=20 python*-django-foo is actually correct. =20 >From a django perspective, it makes a difference. As an example, djang= o- python-hstore (which I just packaged with python*-django-hstore binarie= s) is=20 django_hstore. When added to Django INSTALLED_APPS, it's added as=20 django_hstore. The django. namespace is for things shipped with Django= , not=20 third-party packages. Asking upstreams to rename to use django_ where they don't will complic= ate=20 things for upgrades, so I don't think that's a great idea. I'm not one of the python-django uploaders, so we'd need their feedback= on=20 [2]. I think something like that is a reasonable compromise if they ar= e=20 willing to support it. Thanks, Scott K