public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-ujson] rawhide: Avoid warning about missing `[tool.setuptools_scm]` section
@ 2026-06-15 9:49 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-15 9:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-ujson
Branch : rawhide
Commit : d9905caa5f008c62b4f0f16e941287f243c0ba9e
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-06-15T10:48:11+01:00
Stats : +64/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-ujson/c/d9905caa5f008c62b4f0f16e941287f243c0ba9e?branch=rawhide
Log:
Avoid warning about missing `[tool.setuptools_scm]` section
---
diff --git a/746.patch b/746.patch
new file mode 100644
index 0000000..3b42eb5
--- /dev/null
+++ b/746.patch
@@ -0,0 +1,59 @@
+From f0c723fcfb386782845b062163e7e89ae2bae9ea Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Mon, 15 Jun 2026 06:45:11 +0100
+Subject: [PATCH 1/2] Add an empty [tool.setuptools_scm] section to
+ pyproject.toml
+
+---
+ pyproject.toml | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 3a6cc4d6..0e0e872c 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -38,6 +38,8 @@ urls.Source = "https://github.com/ultrajson/ultrajson"
+ [tool.setuptools]
+ packages = [ "ujson-stubs" ]
+
++[tool.setuptools_scm]
++
+ [tool.isort]
+ profile = "black"
+ known_first_party = [ "ujson" ]
+
+From f02933ed8454cc5e0c6ddc096f03815250be720a Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Mon, 15 Jun 2026 10:30:40 +0100
+Subject: [PATCH 2/2] Update setuptools/setuptols-scm dependencies
+
+Avoid the need for an empty `[tool.setuptools_scm]` section.
+
+https://setuptools-scm.readthedocs.io/en/latest/usage/
+---
+ pyproject.toml | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 0e0e872c..ce528363 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,7 +1,7 @@
+ [build-system]
+ requires = [
+- "setuptools>=77",
+- "setuptools-scm[toml]>=3.4",
++ "setuptools>=80",
++ "setuptools-scm[simple]>=9.2",
+ ]
+
+ [project]
+@@ -38,8 +38,6 @@ urls.Source = "https://github.com/ultrajson/ultrajson"
+ [tool.setuptools]
+ packages = [ "ujson-stubs" ]
+
+-[tool.setuptools_scm]
+-
+ [tool.isort]
+ profile = "black"
+ known_first_party = [ "ujson" ]
diff --git a/python-ujson.spec b/python-ujson.spec
index 1c91413..0301568 100644
--- a/python-ujson.spec
+++ b/python-ujson.spec
@@ -23,6 +23,11 @@ License: BSD-3-Clause AND TCL
URL: https://github.com/ultrajson/ultrajson
Source: %{pypi_source ujson}
+# Update build dependencies to avoid warning about missing
+# [tool.setuptools_scm] section
+# https://github.com/ultrajson/ultrajson/pull/746
+Patch: %{url}/pull/746.patch
+
BuildSystem: pyproject
BuildOption(install): --assert-license ujson
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-15 9:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15 9:49 [rpms/python-ujson] rawhide: Avoid warning about missing `[tool.setuptools_scm]` section Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox