Giter Site home page Giter Site logo

Comments (3)

uranusjr avatar uranusjr commented on August 11, 2024

I hand-downloaded and checked, the artifact on PyPI matches the hash. This may be a network issue in the CI environment that corrupts the download.

from parse.

wimglenn avatar wimglenn commented on August 11, 2024

There must be some bug in pip, pip-tools, or pipenv.
9ff82852bcb65d139813e2a5197627a94966245c897796760a3a2a8eb66f020b is the correct sha256 for parse-1.19.0.tar.gz
6ce007645384a91150cb7cd7c8a9db2559e273c2e2542b508cd1e342508c2601 is the correct sha256 for parse-1.19.0-py2.py3-none-any.whl
The tooling should not be comparing the hash of an sdist with the hash of a wheel.

@uranusjr I doubt it is a network issue - someone else saw the same thing in #156
Are you familiar with the code in https://github.com/pypa/pip/blob/main/src/pip/_internal/utils/hashes.py ? How would it handle this case:

  1. A project creates/uploads a release with only an sdist
  2. Then, someone creates their requirements.txt file with hashes
  3. Sometime later the project from 1. puts a whl to PyPI with the same version number as the sdist (which will be preferred by pip)

When it's doing hash checking, does pip understand that there are two files for parse==1.19.0 and it's normal for them to have different hashes? How does it distinguish between parse==1.19.0 being satisfied by wheel vs by sdist in a requirements file? Could it check all files satisfying the requirement and then just choose the one with matching hash, rather than always try to grab the wheel?

Related: pypa/pipenv#3893

from parse.

wimglenn avatar wimglenn commented on August 11, 2024

Closing because there's nothing actionable for parse here.

from parse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.