public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-tomlkit] rawhide: Switch build backend to flit-core
Date: Wed, 30 Sep 2026 11:55:15 GMT [thread overview]
Message-ID: <179076931529.1.5751853330764967852.rpms-python-tomlkit-f92c0df1aa80@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-tomlkit
Branch : rawhide
Commit : f92c0df1aa80b6a0bc757908ecd43bbdc750f1f4
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-09-18T12:52:02+02:00
Stats : +118/-2 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-tomlkit/c/f92c0df1aa80b6a0bc757908ecd43bbdc750f1f4?branch=rawhide
Log:
Switch build backend to flit-core
See https://github.com/fedora-eln/eln/issues/618
---
diff --git a/PEP621.patch b/PEP621.patch
new file mode 100644
index 0000000..8f179db
--- /dev/null
+++ b/PEP621.patch
@@ -0,0 +1,90 @@
+From 31d9e3316f484eee3802a3aecda205b8f5bf8690 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
+Date: Fri, 18 Sep 2026 12:01:16 +0200
+Subject: [PATCH] chore: Define project metadata via [project] table (PEP 621)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This leads to a small METADATA diff:
+
+ Name: tomlkit
+ Version: 0.15.1
+ Summary: Style preserving TOML library
+ -License: MIT
+ +License-Expression: MIT
+ License-File: LICENSE
+ Author: Sébastien Eustace
+ Author-email: sebastien@eustace.io
+ Requires-Python: >=3.9
+ -Classifier: License :: OSI Approved :: MIT License
+ Classifier: Programming Language :: Python :: 3
+ Classifier: Programming Language :: Python :: 3.9
+
+The difference is only wrt. license, PEP 639.
+
+The required poetry-core version was bumped to support this.
+
+There is no immediate need for this change,
+it's pure modernization.
+My personal motivation is for me to make it easier
+to experiment with different build backends.
+
+I used LLM to draft this change, then I reviewed it line by line.
+
+Assisted-By: Claude Opus 5
+---
+ pyproject.toml | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index f578226..7ab27ce 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,18 +1,21 @@
+-[tool.poetry]
++[project]
+ name = "tomlkit"
+ version = "0.13.2"
+ description = "Style preserving TOML library"
+ authors = [
+- "Sébastien Eustace <sebastien@eustace.io>",
+- "Frost Ming <me@frostming.com>"
++ { name = "Sébastien Eustace", email = "sebastien@eustace.io" },
++ { name = "Frost Ming", email = "me@frostming.com" }
+ ]
+ license = "MIT"
+
+ readme = "README.md"
++requires-python = ">=3.8"
+
+-homepage = "https://github.com/sdispater/tomlkit"
+-repository = "https://github.com/sdispater/tomlkit"
++[project.urls]
++Homepage = "https://github.com/sdispater/tomlkit"
++Repository = "https://github.com/sdispater/tomlkit"
+
++[tool.poetry]
+ include = [
+ { path = "tomlkit/py.typed" },
+ { path = "tests", format = "sdist" },
+@@ -20,9 +23,6 @@ include = [
+ { path = "CHANGELOG.md", format = "sdist" },
+ ]
+
+-[tool.poetry.dependencies]
+-python = ">=3.8"
+-
+ [tool.poetry.dev-dependencies]
+ pytest = "^7.2.0"
+ pytest-cov = "^4.0.0"
+@@ -55,5 +55,5 @@ lines-after-imports = 2
+ lines-between-types = 1
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0a9"]
++requires = ["poetry-core>=2.0.0"]
+ build-backend = "poetry.core.masonry.api"
+--
+2.55.0
+
diff --git a/flit-core.patch b/flit-core.patch
new file mode 100644
index 0000000..05a3100
--- /dev/null
+++ b/flit-core.patch
@@ -0,0 +1,12 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 7ab27ce..1ac8097 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -55,5 +55,5 @@ lines-after-imports = 2
+ lines-between-types = 1
+
+ [build-system]
+-requires = ["poetry-core>=2.0.0"]
+-build-backend = "poetry.core.masonry.api"
++requires = ["flit-core>=3.4"]
++build-backend = "flit_core.buildapi"
diff --git a/python-tomlkit.spec b/python-tomlkit.spec
index 7395fc0..12a6dac 100644
--- a/python-tomlkit.spec
+++ b/python-tomlkit.spec
@@ -20,6 +20,21 @@ License: MIT
URL: https://github.com/sdispater/tomlkit
Source: %{pypi_source %{pypi_name}}
+# Define project metadata via [project] table (PEP 621)
+# This is an upstreamable change that allows us to change build backends more easily
+# Merged upstream at https://github.com/python-poetry/tomlkit/pull/607
+Patch: PEP621.patch
+
+# Change build backend to flit-core
+# This is downstream only, built on PEP621.patch
+# It is motivated purely by ELN/RHEL content set, where poetry-core is undesired.
+# We apply this unconditionally, so it's more battle-tested.
+# Notes:
+# - This does not migrate tool.poetry.include at all,
+# we do not care about sdist files and py.typed is included automatically.
+# - METADATA differs slightly wrt. missing automatic Python version classifiers etc
+Patch: flit-core.patch
+
BuildArch: noarch
BuildRequires: python3-devel
@@ -51,7 +66,7 @@ Summary: %{summary}
%install
%pyproject_install
-%pyproject_save_files %{pypi_name}
+%pyproject_save_files --assert-license %{pypi_name}
%check
@@ -59,7 +74,6 @@ Summary: %{summary}
%files -n python3-%{pypi_name} -f %{pyproject_files}
-%license LICENSE
%doc README.md
reply other threads:[~2026-09-30 11:55 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=179076931529.1.5751853330764967852.rpms-python-tomlkit-f92c0df1aa80@fedoraproject.org \
--to=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