rye
rye copied to clipboard
`rye add` fails silently for package incompatible with local python version
Steps to Reproduce
rye add
a package that has higher python required version than what is defined in local pyproject.toml
Here I'm using a project withrequires-python = ">= 3.8"
but trying to add a project with "requires_python": ">=3.10",
.
It might be becuase rye's PACKAGE_FINDER_SCRIPT
is a bit too simple.
Expected Result
Show version incompatibility error.
For contrast, this is what pdm
outputs in this situation
Unable to find a resolution because the following dependencies don't work on all Python versions in the range of the project's `requires-python`: >=3.8.
python>=3.10 (from <Candidate [email protected] from https://pypi.org/simple/defradb/>)
python>=3.10 (from <Candidate [email protected] from https://pypi.org/simple/defradb/>)
python>=3.10 (from <Candidate [email protected] from https://pypi.org/simple/defradb/>)
python>=3.10 (from <Candidate [email protected] from https://pypi.org/simple/defradb/>)
A possible solution is to change the value of `requires-python` in pyproject.toml to >=3.10.
Actual Result
Error: did not find package defradb
Version Info
rye 0.1.0
commit: unknown (d31b4853a 2023-05-01)
platform: linux (x86_64)
self-python: [email protected]
Stacktrace
No response