FS#70564 - [python-flit] missing the flit script

Attached to Project: Community Packages
Opened by ansemjo (ansemjo) - Saturday, 24 April 2021, 10:03 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 09 May 2023, 06:58 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Filipe Laíns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

I'm not sure if this is intentionally left out but I'm missing the 'flit' script itself
that I can just use as a commandline application?

Running `pacman -Ql python-flit` lists lots of files in ../site-packages and the license in /usr/share
but nothing in /usr/bin. Therefore I can only use flit as `python -m flit ...`.


Additional info:
* package version(s): 3.2.0-1
* config and/or log files etc.: attached pacman -Ql output

Steps to reproduce:
* Install python-flit
* Try to run `flit`
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 09 May 2023, 06:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  It's there these days.
Comment by loqs (loqs) - Saturday, 24 April 2021, 21:32 GMT
Reverting [1] and /usr/bin/flit is created.
An issue with python-dephell 0.8.3-3 ?
Edit:
Building with python-build instead avoids the issue. Attached POC diff [2].

[1] https://github.com/takluyver/flit/commit/f8e318e2dce1289adaf452633f75805c01778d3a
[2] PKGBUILd.diff
Comment by loqs (loqs) - Monday, 26 April 2021, 21:08 GMT
Simpler diff, build using python-build install using python-install.
Comment by Phil Schaf (flying-sheep) - Tuesday, 27 April 2021, 11:38 GMT
The package should also probably be called `flit`, as that script is the sole purpose of its existence.

The `python-flit-core` package contains the library.
Comment by Phil Schaf (flying-sheep) - Tuesday, 01 June 2021, 11:40 GMT
Hi, can you please take a look? I use flit daily and typing `pipx run --pip-args='keyring' flit` gets unwieldy.
Comment by ansemjo (ansemjo) - Tuesday, 01 June 2021, 11:44 GMT
As a workaround I have simply created a file /usr/local/bin/flit with the following script:

#!/usr/bin/env python3
from flit import main
main()

This works for commandline usage of flit but I still thought the script should be contained in the package, thus this issue.

Loading...