Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp