rust-pip
rust-pip copied to clipboard
Investigate how `pip` translates `requirements.txt` and gets packages from the PyPi Index
Related to #7 and #8, just that we need to translate the requirements,txt file (and maybe give it a easier usage in the CLI, something like pip.rs install-requirements or something like that) so that we can get the package the requirements.txt file requires from the PyPi index
Notes
https://pypi.org/pypi/PACKAGE/VERSION/jsonaccording to the official docs on this API
Problems
- [x] Version Operators (e.g.
==,>=, etc.)- The JSON API does not support this
- Probably not a big issue here, as there's no rate-limiting
- I also don't know if
pipsupports the other operators besides==
- [ ] Python version verification
- [ ] A robust way to parse
requirements.txt- Very doubtful that this actually works, so half a tick
See Also
- #18
seems great, surely will consider it:)
btw, if you are interested in solving this issues, you can assign yourself
@DevChaudhary78 How do I do that?
@Allstreamer's pull about the JSON API could handle the grabbing the URL to the wheel part
There's no ratelimiting on the API so it would be an easy way to get information for packages / the wheel_url
Look into pip freeze or https://github.com/bndr/pipreqs.