public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ansible-core] f44: Don't use the deprecated setuptools80 compatibility package
@ 2026-06-11 21:30
0 siblings, 0 replies; only message in thread
From: @ 2026-06-11 21:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ansible-core
Branch : f44
Commit : 7e7d8ef4d53df5e105eb5aa6c835fcfe47a3c5cc
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-05-21T11:34:52+02:00
Stats : +3/-12 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/ansible-core/c/7e7d8ef4d53df5e105eb5aa6c835fcfe47a3c5cc?branch=f44
Log:
Don't use the deprecated setuptools80 compatibility package
- Relax all setuptools version constraints
Note that %pyproject_patch_dependency is still *provisional*.
If that is undesired, I can replace it with a sed call.
However, using tomcli is not an option,
as we want to avoid the compat package even in ELN/future RHEL.
See also https://github.com/fedora-eln/eln/issues/529
---
diff --git a/ansible-core.spec b/ansible-core.spec
index 835a097..2d2c93a 100644
--- a/ansible-core.spec
+++ b/ansible-core.spec
@@ -55,12 +55,6 @@ Provides: bundled(python3dist(six)) = 1.17.0
Provides: bundled(python3dist(wrapt)) = 1.17.2
BuildRequires: python%{python3_pkgversion}-devel
-# This is only used in %%prep to relax the required setuptools version,
-# which is not necessary in RHEL 10+.
-# Not using it in RHEL avoids unwanted dependencies.
-%if %{undefined rhel}
-BuildRequires: tomcli >= 0.3.0
-%endif
# Needed to build manpages from source.
BuildRequires: python%{python3_pkgversion}-docutils
@@ -102,12 +96,9 @@ This package installs extensive documentation for ansible-core
%prep
%autosetup -p1 -n ansible-%{uversion} -a1
-# Relax setuptools constraint on Fedora
-# Future RHELs have new enough setuptools
-%if %{undefined rhel}
-tomcli-set pyproject.toml lists replace \
- 'build-system.requires' 'setuptools >=.*' 'setuptools'
-%endif
+# Drop setuptools constraints
+# (rawhide might have newer setuptools, older releases might have older)
+%pyproject_patch_dependency setuptools:drop_constraints
sed -i -s 's|/usr/bin/env python|%{python3}|' \
bin/ansible-test \
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-11 21:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-11 21:30 [rpms/ansible-core] f44: Don't use the deprecated setuptools80 compatibility package
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox