public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pepc] f45: pyproject fixes
@ 2026-10-01 17:13 Ali Erdinc Koroglu
0 siblings, 0 replies; only message in thread
From: Ali Erdinc Koroglu @ 2026-10-01 17:13 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/pepc
Branch : f45
Commit : 262fcc6ca642e6a5ae0091d3a9f2a3b6fb872e75
Author : Ali Erdinc Koroglu <aekoroglu@fedoraproject.org>
Date : 2026-10-01T20:11:30+03:00
Stats : +32/-13 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/pepc/c/262fcc6ca642e6a5ae0091d3a9f2a3b6fb872e75?branch=f45
Log:
pyproject fixes
---
diff --git a/pepc.spec b/pepc.spec
index 526af02..09e183c 100644
--- a/pepc.spec
+++ b/pepc.spec
@@ -7,8 +7,6 @@ License: BSD-3-Clause
Url: https://github.com/intel/pepc
Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz
-Patch0: pyproject.patch
-
BuildArch: noarch
BuildRequires: python3-devel
@@ -28,7 +26,38 @@ Summary: Pepc Python libraries
Pepc Python libraries
%prep
-%autosetup -p1 -n %{name}-%{version}
+%autosetup
+
+%if 0%{?rhel} == 9
+# build with hatchling
+sed -i '/license-files/d' pyproject.toml
+cat >> pyproject.toml << 'EOF'
+
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
+
+[tool.hatch.build.targets.wheel]
+packages = ["pepclibs", "pepctools", "pepcdata"]
+EOF
+%elif 0%{?rhel} > 9
+# PEP 639 fix
+sed -e 's|license = "BSD-3-Clause"|license = {text = "BSD-3-Clause"}|g' -i pyproject.toml
+sed -i '/license-files/d' pyproject.toml
+cat >> pyproject.toml << 'EOF'
+
+[build-system]
+requires = ["setuptools>=61"]
+build-backend = "setuptools.build_meta"
+EOF
+%else
+cat >> pyproject.toml << 'EOF'
+
+[build-system]
+build-backend = "setuptools.build_meta"
+requires = ["setuptools>=61"]
+EOF
+%endif
%generate_buildrequires
%pyproject_buildrequires
diff --git a/pyproject.patch b/pyproject.patch
deleted file mode 100644
index e023524..0000000
--- a/pyproject.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -1,3 +1,7 @@
-+[build-system]
-+build-backend = "setuptools.build_meta"
-+requires = ["setuptools>=68"]
-+
- [project]
- name = "pepc"
- version = "2.0.7"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-01 17:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01 17:13 [rpms/pepc] f45: pyproject fixes Ali Erdinc Koroglu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox