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


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

Re: How do you create entry-points for Python applications?

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 <debian@kitterman.com>
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 <FEihX-bFhP-1@gated-at.bofh.it> (permalink)
References <FE7mx-byMF-7@gated-at.bofh.it> <FEa14-bAw0-9@gated-at.bofh.it> <FEgJb-bEro-1@gated-at.bofh.it> <FEgSR-bEzJ-5@gated-at.bofh.it> <FEhOV-bF8f-1@gated-at.bofh.it>
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 <debian@kitterman.com>
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 <debian-python@lists.debian.org> archive/latest/20617
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
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 <B2B72495-41E3-43F8-82C7-67449D7EC986@kitterman.com>
X-Original-References <385ec8ae34ef53f01a86b49c0f15504f@posteo.de> <D98B9DF7-DD0F-499E-A16D-CA85A51249B9@ubuntu.com> <e3d36b800a02b1ddd1d38c3f21b982a5@posteo.de> <A3FE81D0-7EE0-4CBC-A12A-B29F98CD1C7C@kitterman.com> <0b3389c79879f9ed7172cd1bac539406@posteo.de>
Xref csiph.com linux.debian.maint.python:14750

Show key headers only | View raw



On December 19, 2022 6:27:55 AM UTC, c.buhtz@posteo.jp wrote:
>Dear Scott,
>
>thanks for the reply.
>
>Am 19.12.2022 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.  The entry point scripts are in the wheel, just like an
>> upstream built wheel.
>
>Do I get that correct?
>The entry scripts (their content and their location) is the same installing a package via pip and apt?
>
>In that case I'm right trying to make the "pip install" process as correct as possible to save resources for the distro maintainers.

There are exceptions, but generally that is correct.

>> Your best bet is to find a package in the archive that's similar and
>> see how it was done.
>
>That is why I'm asking here. ;)

Hopefully someone will chime in with a good example.  The only package I maintain that I can think of at the moment with entrypoints and project.toml is too complicated to be a good example.

Scott K

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


Thread

How do you create entry-points for Python applications? c.buhtz@posteo.jp - 2022-12-18 20:20 +0100
  Re: How do you create entry-points for Python applications? Danial Behzadi دانیال بهزادی <dani.behzi@ubuntu.com> - 2022-12-18 23:10 +0100
    Re: How do you create entry-points for Python  applications? c.buhtz@posteo.jp - 2022-12-19 06:20 +0100
      Re: How do you create entry-points for Python applications? Scott Kitterman <debian@kitterman.com> - 2022-12-19 06:30 +0100
        Re: How do you create entry-points for Python  applications? c.buhtz@posteo.jp - 2022-12-19 07:30 +0100
          Re: How do you create entry-points for Python applications? Scott Kitterman <debian@kitterman.com> - 2022-12-19 08:00 +0100
            Re: How do you create entry-points for Python applications? Danial Behzadi دانیال بهزادی <dani.behzi@ubuntu.com> - 2022-12-19 14:10 +0100
              Re: How do you create entry-points for Python applications? Stuart Prescott <stuart@debian.org> - 2022-12-20 01:10 +0100
  Re: How do you create entry-points for Python applications? Andrey Rahmatullin <wrar@debian.org> - 2022-12-19 14:40 +0100

csiph-web