Universal lockfile contains the wrong dists
See original GitHub issueGenerating this universal lockfile on MacOS:
python3 -m pex.cli lock create $'--output=lock.json' $'--style=universal' --resolver-version pip-2020-resolver $'--indent=2' --manylinux manylinux2014 --interpreter-constraint $'CPython<3.10,>=3.7' $'SecretStorage==3.3.1' $'apache-airflow==2.1.4' $'authlib==0.15.2' $'moto==1.3.14' $'paramiko==2.7.2' $'snowflake-connector-python[secure-local-storage]==2.4.6'
creates a lockfile in which the cryptography
package has only one artifact, which is an arbitrary wheel (pypy 3.7 on windows on amd64):
$ cat lock.json | jq '.locked_resolves[].locked_requirements[] | select(.project_name == "cryptography")'
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "cd65b60cfe004790c795cc35f272e41a3df4631e2fb6b35aa7ac6ef2859d554e",
"url": "https://files.pythonhosted.org/packages/35/23/b7dc7a019e1a34b024498510686a6b6a400caf6ecd1c0ba102e27dd3658f/cryptography-3.4.8-pp37-pypy37_pp73-win_amd64.whl"
}
],
...,
"project_name": "cryptography",
"requires_python": ">=3.6",
"version": "3.4.8"
}
Note that cryptography 3.4.8 has many wheels, and an sdist: https://pypi.org/project/cryptography/3.4.8/#files
Note also that the only valid dist for the specified interpreter constraints (CPython<3.10,>=3.7) is the sdist, so the number of dists is right, just not the one provided. It may or may not be coincidence that the arbitrary wheel is the first wheel listed on PyPI.
Issue Analytics
- State:
- Created a year ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
generatePackageJson on nx 15 generates the the ... - GitHub
Current Behavior npm ci of a a copied apps dist directory breaks after update to nx 15 because the root package-lock.json dependency version ......
Read more >npm WARN old lockfile The package-lock.json file was ...
There are several ways to deal with this: Ignore it. It's just a warning and does not affect the installation of modules.
Read more >npm fails to install - Google Groups
Getting a rather long error when trying to run sudo npm install -g appium ... It contains instructions for checking a lot of...
Read more >Deploying an Angular Universal App to Heroku | Augie Gardner
In this case, we want to make sure that our dist server is built and ready for deployment by Heroku, so what we...
Read more >phpcs - Visual Studio Marketplace
This linter plugin for Visual Studio Code provides an interface to phpcs. It will be used with files that have the “PHP” language...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The pip log used to derive the artifacts does in fact have them listed as the code expects FWICT:
I’ll debug the
Locker
to see why its missing associating these links with the finished resolve.Actually I fubar’d my backtrack simulations, this is easy to get down to ~10s in an IT.