Skip to content

requires-python field missing in simple index #1262

Description

@maciej-markowski

Version
3.30.2

Describe the bug
requires-python field in simple index is not populated when using includes on remote

To Reproduce

  1. create repo
  2. create remote that limits the packages with include field
  3. sync repo
  4. simple index is missing the requires-python field
  <body>
    <h1>Links for wheel</h1>
      <a href="../../wheel-0.47.0-py3-none-any.whl#sha256=212281cab4dff978f6cedd499cd893e1f620791ca6ff7107cf270781e587eced" rel="internal" >wheel-0.47.0-py3-none-any.whl</a><br/>
      <a href="../../wheel-0.47.0.tar.gz#sha256=cc72bd1009ba0cf63922e28f94d9d83b920aa2bb28f798a31d0691b02fa3c9b3" rel="internal" >wheel-0.47.0.tar.gz</a><br/>
  </body>

Expected behavior
requires-python field is present as on pypi"

<a href="https://files.pythonhosted.org/packages/39/62/75f18a0f03b4219c456652c7780e4d749b929eb605c098ce3a5b6b6bc081/wheel-0.47.0.tar.gz#sha256=cc72bd1009ba0cf63922e28f94d9d83b920aa2bb28f798a31d0691b02fa3c9b3" data-requires-python="&gt;=3.9"  data-provenance="https://pypi.org/integrity/wheel/0.47.0/wheel-0.47.0.tar.gz/provenance">wheel-0.47.0.tar.gz</a><br />

Additional context
Tested with immediate and on demand sync policy, tried to repair python metadata as well, but none of it seems to resolve the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions