On 29. 07. 25 14:51, Tomasz Torcz wrote:
On Wed, Jul 09, 2025 at 12:09:58PM +0200, Miro Hrončok wrote:
Hello Python packagers,
as many are currently migrating from the old Python RPM macros to the new due to https://fedoraproject.org/wiki/Changes/DeprecateSetuppyMacros I'd like to reiterate:
%generate_buildrequires %pyproject_buildrequires [options...]
Hi,
I've tried to use above macros in python-pyownet packages, and the build fails:
No match for argument: python3dist(setuptools) < 58~~
Full logs are at https://koji.fedoraproject.org/koji/taskinfo?taskID=135428399
Can you assist me in finding what's wrong?
In this patch:
https://src.fedoraproject.org/rpms/python-pyownet/blob/rawhide/f/python-pyow...
I see:
[build-system] requires = ["setuptools<58.0", "wheel>=0.37.1"]
This exists upstream as well:
https://github.com/miccoli/pyownet/blob/dev/pyproject.toml#L2
I guess upstream pins setuptools to a version released years ago because of https://github.com/miccoli/pyownet/issues/12
But considering https://src.fedoraproject.org/rpms/python-pyownet/blob/rawhide/f/python-pyow... you don't need to do that a you can replace that with:
[build-system] requires = ["setuptools"]
By another downstream patch.
python-devel@lists.fedoraproject.org