Path: csiph.com!1.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: How do you create entry-points for Python applications? Date: Mon, 19 Dec 2022 08:00:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Dec 19 06:53:34 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/20617 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/B2B72495-41E3-43F8-82C7-67449D7EC986@kitterman.com Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 19 Dec 2022 06:52:38 +0000 X-Original-Message-ID: X-Original-References: <385ec8ae34ef53f01a86b49c0f15504f@posteo.de> <0b3389c79879f9ed7172cd1bac539406@posteo.de> Xref: csiph.com linux.debian.maint.python:14750 On December 19, 2022 6:27:55 AM UTC, c=2Ebuhtz@posteo=2Ejp wrote: >Dear Scott, > >thanks for the reply=2E > >Am 19=2E12=2E2022 06:25 schrieb Scott Kitterman: >> Pybuild using the pyproject plugin will build a wheel and >> then install the necessary files in the package using the installer >> module=2E The entry point scripts are in the wheel, just like an >> upstream built wheel=2E > >Do I get that correct? >The entry scripts (their content and their location) is the same installi= ng a package via pip and apt? > >In that case I'm right trying to make the "pip install" process as correc= t as possible to save resources for the distro maintainers=2E There are exceptions, but generally that is correct=2E >> Your best bet is to find a package in the archive that's similar and >> see how it was done=2E > >That is why I'm asking here=2E ;) Hopefully someone will chime in with a good example=2E The only package I= maintain that I can think of at the moment with entrypoints and project=2E= toml is too complicated to be a good example=2E Scott K