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-pyownet-001-declarative-build.patch

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-pyownet-003-2to3.patch you don't need to do that a you can replace that with:

  [build-system]
  requires = ["setuptools"]

By another downstream patch.

--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok

--
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to