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


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

Re: Packaging Grip

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Scott Kitterman <debian@kitterman.com>
Newsgroups linux.debian.maint.python
Subject Re: Packaging Grip
Date Thu, 07 Apr 2016 06:00:01 +0200
Message-ID <rl9gR-6e9-7@gated-at.bofh.it> (permalink)
References <rjfqq-2i4-11@gated-at.bofh.it> <rkiFA-89A-3@gated-at.bofh.it> <rl2fo-Yp-11@gated-at.bofh.it> <rl8kO-5xu-17@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Apr 7 03:52:03 2016
Old-Return-Path <debian@kitterman.com>
X-Amavis-Spam-Status No, score=-5.6 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, CAPINIT=0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, GMAIL=1, LDO_WHITELIST=-5] autolearn=no autolearn_force=no
X-Policyd-Weight DYN_NJABL=SKIP(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=SKIP(-1.5) CL_IP_EQ_HELO_IP=-2 (check from: .kitterman. - helo: .mailout03.controlledmail. - helo-domain: .controlledmail.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -5
Dkim-Signature v=1; a=rsa-sha256; c=simple/simple; d=kitterman.com; s=201409; t=1460001079; bh=WiT9CeG6SJ6DRyqnjP0AtI5kq8NCIagP9KzmoYExM/c=; h=In-Reply-To:References:Subject:From:Date:To:From; b=DLt6tfOQAx33ozwqHsVQ2tLz/OAeSyBFblSCqie7hvx7YAyvf+5nMiWqc61taJUdS ydAoi7of2TNIEhSew5FhuZRpvFeoPTklRUaZzWLI1EdYFlcdzoNDGGDYU/magPKCDM 8F4qzdX4Z7VYe3SB1+yGDHPybu1eGjQ4bN3v7aQQ=
User-Agent K-9 Mail for Android
MIME-Version 1.0
Content-Transfer-Encoding 8bit
Content-Type text/plain; charset=UTF-8
X-Mailing-List <debian-python@lists.debian.org> archive/latest/13728
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/D8B8C675-2706-42C9-8541-B94C2666126E@kitterman.com
Approved robomod@news.nic.it
Lines 66
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 06 Apr 2016 23:48:36 -0400
X-Original-Message-ID <D8B8C675-2706-42C9-8541-B94C2666126E@kitterman.com>
X-Original-References <CALdTKe8Z0a2qbwApkhaxo0m3Fm34JCHXWJMiHsSjcvxNoj0Stw@mail.gmail.com> <CALdTKe8QTYd5YEN6Rze-2CApq_z_DAhvg-eRGEpWvOSg+RXngg@mail.gmail.com> <20160406202159.GC2199@mitya57.me> <CALdTKe9xRmarrBSh6vnMcyEwY6DVQnYTL7qW+ywie0nN=Tt=Zg@mail.gmail.com>
Xref csiph.com linux.debian.maint.python:8401

Show key headers only | View raw



On April 6, 2016 10:37:24 PM EDT, Tiago Ilieve <tiago.myhro@gmail.com> wrote:
>Hi Dmitry,
>
>On 6 April 2016 at 17:21, Dmitry Shachnev <mitya57@debian.org> wrote:
>> 1. Public (/usr/lib/python*/dist-packages) vs private (/usr/share/)
>location
>> depends on whether the module is intended to be used by third-party
>packages,
>> or only by grip itself.
>>
>> 2. The Style Guide doesn't *require* both Python 2 and 3. The Python
>3
>> package is required, but add the Python 2 one only if you really need
>it.
>>
>> 3. If you decide to ship files in a public location (dist-packages),
>then
>> the package having those files should be named python3-something, not
>> just 'grip'.
>>
>> 4. Setuptools-generated entry points for public modules are fine, but
>for
>> private ones it's better to use your own ones or symlinks.
>>
>> Hope that answers your questions.
>
>Thanks for taking the time to explain me this, but actually I got a
>little bit confused. Because yes, what you said is consistent with
>what I found on articles about Python packaging on wiki.d.o[1][2], but
>at the same time there are well-known packages in the archive that
>contradicts this, specially the item "3".
>
>The package that I used as an example is tox. It used to be called
>"python-tox", which is now a transitional dummy package[3]. Now is
>named "tox"[4], because it is intended to be used as a CLI
>application, but at the same time it ships its files in
>"dist-packages"[5].
>
>I followed the tox example and named the package "grip", not
>"python-grip", because I'm standing on the shoulders of giants here. I
>don't really know its maintainer, Barry Warsaw, but the guy has both
>"@debian.org" and "@python.org" e-mail addresses[6], so he clearly
>knows about Debian packaging and the Python ecosystem itself way more
>than I do.

It's not always clear what to do.  I have done packages that started with python{3}- that also ship scripts in /usr/bin if the module was the primary purpose of the package.  I've also not used python{3}- for packages that have module in dist-packages when the /usr/bin script/application was the main point.

In my opinion either can be correct depending on the primary purpose of the package.

Scott K

>The problem with the item number "4" is that I never got it working as
>intended. So every time I have to create my own "/usr/bin/" scripts or
>symlinks, discarding those auto-generated entry point scripts.
>
>Regards,
>Tiago.
>
>[1]: https://wiki.debian.org/Python/LibraryStyleGuide
>[2]: https://wiki.debian.org/Python/AppStyleGuide
>[3]: https://packages.debian.org/sid/python-tox
>[4]: https://packages.debian.org/sid/tox
>[5]: https://packages.debian.org/sid/all/tox/filelist
>[6]: https://qa.debian.org/developer.php?login=barry

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


Thread

Packaging Grip Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-02 00:10 +0200
  Re: Packaging Grip Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-04 21:50 +0200
    Re: Packaging Grip Dmitry Shachnev <mitya57@debian.org> - 2016-04-06 22:30 +0200
      Re: Packaging Grip Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-07 05:00 +0200
        Re: Packaging Grip Scott Kitterman <debian@kitterman.com> - 2016-04-07 06:00 +0200
          Re: Packaging Grip Barry Warsaw <barry@debian.org> - 2016-04-07 16:40 +0200
        Re: Packaging Grip Dmitry Shachnev <mitya57@debian.org> - 2016-04-07 10:10 +0200

csiph-web