public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-ujson] rawhide: Avoid warning about missing `[tool.setuptools_scm]` section
Date: Mon, 15 Jun 2026 09:49:13 GMT	[thread overview]
Message-ID: <178151695388.1.2433533881919272077.rpms-python-ujson-d9905caa5f00@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-06-15  9:49 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=178151695388.1.2433533881919272077.rpms-python-ujson-d9905caa5f00@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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