Skip to content

google_auth-2.40.3.dist-info file on PyPI contains erroneous requirement #15140

@erempel

Description

@erempel

When building an RPM for RHEL from the PyPI package the requirements in the dist-info file result in and incorrect version requirement in the RPM.

Environment details

  • OS: RHEL7/8/9
  • Python version: 3.9, 3.11, 3.12
  • pip version: 3.9, 3.11, 3.12
  • google-auth version: 2.40.3

Steps to reproduce

I'm not going to reproduce the whole rpm build process

%install
%{__python} -m pip install --no-deps %{name}==%{version} --prefix %{_prefix} --root %{buildroot}

%files
%defattr(-,root,root)
/usr/lib*/python%{python_abi}/site-packages/*

Results in a package with a dependency of

python3.12dist(cachetools) < 6.0

The dist-info fileline

METADATA:Requires-Dist: cachetools<6.0,>=2.0.0

should reflect the version from the setup.py file

METADATA:Requires-Dist: cachetools<7.0,>=2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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