public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ali Erdinc Koroglu <aekoroglu@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/pepc] f45: pyproject fixes
Date: Thu, 01 Oct 2026 17:13:26 GMT	[thread overview]
Message-ID: <179087480671.1.8585147698211929009.rpms-pepc-262fcc6ca642@fedoraproject.org> (raw)

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"

                 reply	other threads:[~2026-10-01 17:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179087480671.1.8585147698211929009.rpms-pepc-262fcc6ca642@fedoraproject.org \
    --to=aekoroglu@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox