Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. en_1446
    E
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    en_1446

    @en_1446

    0
    Reputation
    1
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    en_1446 Follow

    Best posts made by en_1446

    This user hasn't posted anything yet.

    Latest posts made by en_1446

    • Python PyPI - A hash in the form of a URL fragment should be included

      Hello,

      Is there any way to configure ProGet to specify a file hash in package URLs for PyPI feed?

      PEP 503 says:

      URL SHOULD include a hash in the form of a URL fragment with the following syntax: #<hashname>=<hashvalue>, where <hashname> is the lowercase name of the hash function (such as sha256) and <hashvalue> is the hex encoded digest.

      Repositories SHOULD choose a hash function from one of the ones guaranteed to be available via the hashlib module in the Python standard library (currently md5, sha1, sha224, sha256, sha384, sha512). The current recommendation is to use sha256.

      Having a URL package hash is important for Python package managers to check the hash and write it to a lock file without downloading the entire package and calculating the hash every time.

      Without the ability to include the hash in the package URL, ProGet PyPI feed does not meet the PEP 503 specification.

      posted in Support
      E
      en_1446