rust-pip icon indicating copy to clipboard operation
rust-pip copied to clipboard

Investigate how `pip` translates `requirements.txt` and gets packages from the PyPi Index

Open Kiwifuit opened this issue 3 years ago • 6 comments
trafficstars

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

Problems

  • [x] Version Operators (e.g. ==, >=, etc.)
  • [ ] Python version verification
  • [ ] A robust way to parse requirements.txt
    • Very doubtful that this actually works, so half a tick

See Also

  • #18

Kiwifuit avatar Aug 08 '22 10:08 Kiwifuit

seems great, surely will consider it:)

DevChaudhary78 avatar Aug 08 '22 11:08 DevChaudhary78

btw, if you are interested in solving this issues, you can assign yourself

DevChaudhary78 avatar Aug 08 '22 11:08 DevChaudhary78

@DevChaudhary78 How do I do that?

Kiwifuit avatar Aug 08 '22 12:08 Kiwifuit

@Allstreamer's pull about the JSON API could handle the grabbing the URL to the wheel part

Kiwifuit avatar Aug 08 '22 13:08 Kiwifuit

There's no ratelimiting on the API so it would be an easy way to get information for packages / the wheel_url

More info on Ratelimits For Pipy

Allstreamer avatar Aug 08 '22 14:08 Allstreamer

Look into pip freeze or https://github.com/bndr/pipreqs.

FerrisWasTaken avatar Aug 14 '22 04:08 FerrisWasTaken