-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi!
When trying to install the jwst package, I generated a requirements.txt from its pyproject.toml with a tiny script I wrote.
The resulting requirements.txt (pasted in full below, click to unfold) includes git dependencies such as gwcs @ git+https://github.com/spacetelescope/gwcs.git@master. These dependencies cause avail_wheels to error out, both when using avail_wheels -r requirements.txt or avail_wheels "gwcs @ git+https://github.com/spacetelescope/gwcs.git@master". The error is below. It would be great if these cases could be handled, either by showing the available wheel versions or by showing them in --not-available.
Thanks!
The full error:
Traceback (most recent call last):
File "/cvmfs/soft.computecanada.ca/custom/bin/avail_wheels", line 393, in make_requirement
return requirements.Requirement(r.partition('+')[0])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/soft.computecanada.ca/custom/python/envs/avail_wheels/wild_requirements.py", line 119, in __init__
raise InvalidRequirement(f"Invalid URL: {req.url}")
wild_requirements.InvalidRequirement: Invalid URL: git
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/cvmfs/soft.computecanada.ca/custom/bin/avail_wheels", line 509, in <module>
main()
File "/cvmfs/soft.computecanada.ca/custom/bin/avail_wheels", line 479, in main
reqs = get_requirements_set(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/soft.computecanada.ca/custom/bin/avail_wheels", line 362, in get_requirements_set
r = make_requirement(freq.requirement)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/soft.computecanada.ca/custom/bin/avail_wheels", line 395, in make_requirement
raise argparse.ArgumentTypeError(f"Invalid requirement: {r!r}.")
argparse.ArgumentTypeError: Invalid requirement: 'gwcs @ git+https://github.com/spacetelescope/gwcs.git@master'.Full requirements.txt
asdf>=4.2,<6
astropy>=6.1
BayesicFitting>=3.2.2
crds>=12.0.3
drizzle>=2.1.1,<2.2.0
gwcs @ git+https://github.com/spacetelescope/gwcs.git@master
numpy>=1.25
photutils>=2.1.0
pyparsing>=2.2.1
requests>=2.31
scikit-image>=0.20.0
scipy>=1.14.1
spherical-geometry>=1.3
stdatamodels @ git+https://github.com/spacetelescope/stdatamodels.git@main
stcal @ git+https://github.com/spacetelescope/stcal.git@main
stpipe @ git+https://github.com/spacetelescope/stpipe.git@main
synphot>=1.3
tweakwcs>=0.8.8
packaging>20.0
importlib-metadata>=4.11.4
jsonschema>=4.8%
Details
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels