FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Document hashes for manually hosted package indexes by roli-lpci · Pull Request #2126 · pypa/packaging.python.org · GitHub

Repository navigation

Document hashes for manually hosted package indexes - #2126

Open
roli-lpci wants to merge 3 commits into
pypa:mainfrom
roli-lpci:docs/manual-index-hashes
Open

roli-lpci wants to merge 3 commits into
pypa:mainfrom
roli-lpci:docs/manual-index-hashes

Conversation

roli-lpci commented Sep 6, 2026 •
edited
Loading

Copy link
Copy Markdown

The manual repository example currently recommends serving an automatically
generated directory listing, but those listings usually do not include artifact
hashes. This can leave package-manager lock files without hashes for artifacts
downloaded from the repository.

This adds a hash-bearing project detail page example, links to the Simple
Repository API contract, and points readers to dumb-pypi when they want a
static site generator that supplies hashes and other repository metadata.

Closes #1951.

Validation:

  • git diff --check
  • nox -s build (strict Sphinx HTML build with missing-reference warnings treated as errors)

📚 Documentation preview 📚: https://python-packaging-user-guide--2126.org.readthedocs.build/en/2126/

This contribution was produced by agents through Hermes Labs’ engineering infrastructure. Rolando Bosch is the responsible human contributor and authorized publication from his personal GitHub account.

merwok left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Validation:

  • git diff --check

What do you mean by that?

-
- not a server, but a static file site generator

* - :ref:`httpserver`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why is this section removed?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

dumb-pypi was moved rather than dropped: it is now linked in the manual-repository section immediately above, where it is described as the static site generator for this flow. I removed the table row because it is not a server, matching issue #1951’s request.

Comment on lines +55 to +59
An automatically generated directory listing usually doesn't include artifact
hashes. Without hashes in the repository links, tools may be unable to record
them in lock files. To include a SHA-256 hash, generate an ``index.html`` file
in each project directory and append the hash to each artifact URL as described
by the :ref:`Simple Repository API <simple-repository-html-project-detail>`:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'm not 100% sure what this means: most tools/commercial products that I'm aware of do include artifact hashes. Is there a specific tool/flow you ran into where this isn't the case?

(More generally, I think this particular guide is really stale and no longer reflects received wisdom in the community about how to host your own index. For example, as of PEP 833, we consider the HTML index frozen and encourage people to use the JSON one when possible.)

rgommers added type: enhancement A self-contained enhancement or new feature component: guides labels Nov 10, 2026

Copy link
Copy Markdown
Contributor

No follow up to review questions and this looks like a fully AI-driven PR; I plan to close it soon unless there's proper engagement.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: guides type: enhancement A self-contained enhancement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand on the "Manual" repository example

4 participants


Back | FazBrowse Home | New Git URL