pipreqs takes the newst version, even if not supported by current python
Open
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
I run `pipreqs --print` on my package, where I have a `jsonschema` import.
`pipreqs` gave me the `jsonschema==4.2.1` requirement, even though it requires `python>=3.7` and I ran `pipreqs` from a `python3.6` environment
Contributor guide
Research direction
Start by reproducing `pipreqs --print` in a Python 3.6 environment with a `jsonschema` import, then trace the dependency-version selection used by the pipreqs command. Done means the generated requirement selects a jsonschema release compatible with the running Python version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100