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?

From Scott Kitterman <debian@kitterman.com>
Newsgroups linux.debian.maint.python
Subject Re: How do you create entry-points for Python applications?
Date 2022-12-19 08:00 +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>
Organization linux.* mail to news gateway

Show all headers | 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