Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14746
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Danial Behzadi دانیال بهزادی <dani.behzi@ubuntu.com> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: How do you create entry-points for Python applications? |
| Date | Sun, 18 Dec 2022 23:10:02 +0100 |
| Message-ID | <FEa14-bAw0-9@gated-at.bofh.it> (permalink) |
| References | <FE7mx-byMF-7@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Sun Dec 18 22:03:54 2022 |
| Old-Return-Path | <dani.behzi@ubuntu.com> |
| X-Amavis-Spam-Status | No, score=-4.098 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, FOURLA=0.1, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.6 |
| X-Riseup-User-ID | 55FF76FDFF169BB00FFB649B88652D823441044C51AF7A3D5B9DF52B5BFB79A2 |
| MIME-Version | 1.0 |
| Content-Type | multipart/alternative; boundary=----0IASHK2NLIL0SPI1K4RMCGF3VLHOD2 |
| Content-Transfer-Encoding | 7bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/20613 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/D98B9DF7-DD0F-499E-A16D-CA85A51249B9@ubuntu.com |
| Approved | robomod@news.nic.it |
| Lines | 66 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Sun, 18 Dec 2022 22:03:22 +0000 |
| X-Original-Message-ID | <D98B9DF7-DD0F-499E-A16D-CA85A51249B9@ubuntu.com> |
| X-Original-References | <385ec8ae34ef53f01a86b49c0f15504f@posteo.de> |
| Xref | csiph.com linux.debian.maint.python:14746 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
AFAIK Debian helper for Python handles this در 18 دسامبر 2022 19:18:44 (UTC)، c.buhtz@posteo.jp نوشت: >Hello, >a python application isn't a binary but a script. So to invoke such an application there need to be a shell script somewhere in PATH that invoke that script via python3 interpreter. Imagine an application with a GUI (qt, tikinter, gtk, ...). > >On the upstream site modern python projects using pyproject.toml (only), some use setup.cfg. >There you can define "entry points" and the "pip" installer does generate a shell script based on that information and place it in PATH. >That is a nice mechanism when installing via pip. > >On your site as distro maintainers. How do you take care of then when creating deb files? >When a project do follow modern python packaging standards using pyproject.toml/setup.cfg and doesn't offer any other explict start shell script. Do you use that pip mechanic for the deb package? >Or how do you create your shell scripts? > >I don't have an real world example of a python application for that. > >I only have an example of a project (backintime) that don't use pyproject.toml/setup.cfg and offer its own shell script. I'm part of the new maintainer team and we will evolve the project to current python packaging standards; which means using pyproject.toml. >
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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