- Notifications
You must be signed in to change notification settings - Fork 341
Open
Description
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-authversion: 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
Labels
No labels