pypa / bandersnatch

A PyPI mirror client according to PEP 381 http://www.python.org/dev/peps/pep-0381/
Academic Free License v3.0
448 stars 141 forks source link

Discuss: Support Core Metadata Mirroring #1124

Open cooperlees opened 2 years ago

cooperlees commented 2 years ago

PEP 658 specifies serving core package metadata from an index. Lets look at best ways to potentially mirror this if there is a sane way.

For more info: https://peps.python.org/pep-0658/

Ideas

Other ideas?

pombredanne commented 2 years ago

@cooperlees Hi :)

Does bandersnatch have a config option to pull down the files to be statically served Should this be left to the mirror service to pull the files out of the downloaded binaries and cached?

I could see a config named metadata similar to the release-files and json and essentially have the same behaviour as json.

An alternative is to deprecate the json config and have a new json-and-metadata config that would pull both or none and could have this documentation:

The mirror json-and-metadata setting is a boolean (true/false) setting that indicates that the json packaging metadata and the core metadata (pep-0658) should be mirrored in addition to the packages.