fedora-python / pyp2rpm

Tool to convert a package from PyPI to RPM SPECFILE or to generate SRPM.
MIT License
123 stars 39 forks source link

BuildRequires might get python_version-specific deps wrong #271

Open gordonmessmer opened 2 years ago

gordonmessmer commented 2 years ago

pyp2rpm generates a fedora spec for itself that includes "packaging < 21" as one of its buildrequirements, but that should only be true when python_version < 3.5.

$ pyp2rpm pyp2rpm
# Created by pyp2rpm-3.3.7
...
BuildRequires:  python3dist(packaging) < 21