Conversation
|
@pypa/pip-committers is everyone on board with |
ef28c69 to
5ba7b8e
Compare
|
Makes sense to me. Will the decision as to whether it's a requirements file or a lock file be based on the filename, or the content? Either is a plausible choice. My preference would be to base it on the filename, as per the lockfile spec. This is technically backward incompatible, but I doubt anyone is naming their requirements files Edit: I see the current implementation works off the filename. That fits with my preference. |
|
Initial try... I can have screwed-up...:
It gives me two strange issues:
then, realizing it's not the .toml, redoing with pylock file:
output (same issue): (it's text file output, branded as .csv )
|
|
@stonebig maybe try with |
Yes, I realised I should do that after... maybe the error message could suggest that obvious error ? |
Maybe? I don't think I'll address that in this PR, which "simply" reads requirements from a pylock file but otherwise leaves all other pip behaviors intact. |
|
Strange test:
==> this downloads wheels from pypi .... and I get again cython-3.2.4-cp314-cp314-win_amd64.whl at arrival can't I make a fully isolated source directory of wheels with -no-deps --pre --no-index --trusted-host=None --find-links=.\packages.srcreq --no-cache-dir ? Besides that, result matches the wheel requested... only the source of wheels seems not-constrainable to a directory |
|
If the lock file includes PyPI URLs as the location of the wheels, then of course it will download files from PyPI. If you want to only use local files, you'll need to modify the lockfile to reflect that. The lockfile you linked to only uses URLs, so that's what pip will use. |
3e5f0a6 to
08b0baa
Compare
08b0baa to
b0d4b3f
Compare
Will this work where all Will this work with all the options users expect to work with requirements files? Constraints? Dry run? |
Yes absolutely.
Yes everything works because the lock file is simply another source of requirements. Constraints of course must be compatible with the requirements in the lock file which already provides strong constraints, but that works. So far the only limitations I see are support for selecting extras and dependency groups from the lock file. So my current thinking is to do
Two more notes:
|
Pylock.select()But this works.
Closes #13334