FS#79142 - [python-hatch] Missing dependencies

Attached to Project: Arch Linux
Opened by Xandaros (Xandaros) - Wednesday, 19 July 2023, 13:04 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 19 July 2023, 21:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Attempting to use `hatch new` failed due to missing dependencies. I had to also install `python-tomli-w` and `python-httpx`


Additional info:
* package version: 1.7.0-2

Steps to reproduce:
1. Remove `python-tomli-w` and `python-httpx` is they are installed
2. Install `python-hatch`
3. Attempt to create a new project with, for example, `hatch new asdf`
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 19 July 2023, 21:45 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#75479 
Comment by KRACKY (KRACKY) - Wednesday, 19 July 2023, 17:41 GMT
Follow-up on this, since I had the same problem; most other subcommands also needed extra packages:
- `hatch build`: to build an already existing project with, I also needed to install the backend framework `python-hatchling`, `python-tomli-w`
- `hatch shell`: `python-shellingham`
Comment by KRACKY (KRACKY) - Wednesday, 19 July 2023, 18:10 GMT
Also, looking at dependencies in https://github.com/pypa/hatch/blob/master/pyproject.toml , seems like there are quite a few dependencies that are left out.

Some appear to be already auto-installed as dependencies of those already included, but probably best to make all dependencies of hatch explicit in case any of the other arch packages remove it from themselves

Not indirectly installed:
- `python-hatchling`
- `python-httpx`
- `python-hyperlink`
- `python-shellingham`
- `python-tomli-w`

indirectly installed, but not yet explicit:
- `python-keyring`
- `python-packaging`
- `python-platformdirs`

Found by installing this package in a clean arch docker container, and comparing dependencies.
Comment by KRACKY (KRACKY) - Wednesday, 19 July 2023, 18:19 GMT
Also, since this does make the package pretty much broken for all users except those who just happen to have the right dependencies installed, perhaps increase the severity of the report to either high or medium? Seems to fit the former definition pretty clearly

> High - The main functionality of the application does not work, less critical security issues, etc.

Also, the fix should hopefully be relatively quick.
Comment by KRACKY (KRACKY) - Wednesday, 19 July 2023, 18:37 GMT
Ok, made a second bug report here, summarizing all of this - https://bugs.archlinux.org/task/79150

Have also referenced the original bug report in there, so if that gets resolved hopefully this will also be resolved as well
Comment by KRACKY (KRACKY) - Wednesday, 19 July 2023, 18:40 GMT
Ok, sorry, since it's improper to make such duplicates, leaving that bug report behind and mentioning this here:

The current upstream URL is listed as https://github.com/ofek/hatch
However, this just redirects to the actual upstream file of https://github.com/pypa/hatch

This is also the repo associated with where this package is being installed from, if I am correctly reading this https://gitlab.archlinux.org/archlinux/packaging/packages/python-hatch/-/blob/1.7.0-2/PKGBUILD

Loading...