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/fonttools] rawhide: Avoid removed `glob.glob1` API; fixes RHBZ#2488354
Date: Thu, 16 Jul 2026 13:28:12 GMT	[thread overview]
Message-ID: <178420849251.1.13737632682314622324.rpms-fonttools-d08b4ec8a33d@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/fonttools
Branch : rawhide
Commit : d08b4ec8a33db011baa04809d348231099d57b95
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-07-16T10:33:55+01:00
Stats  : +49/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/fonttools/c/d08b4ec8a33db011baa04809d348231099d57b95?branch=rawhide

Log:
Avoid removed `glob.glob1` API; fixes RHBZ#2488354

---
diff --git a/4133.patch b/4133.patch
new file mode 100644
index 0000000..6c27a8e
--- /dev/null
+++ b/4133.patch
@@ -0,0 +1,41 @@
+From 3ad2c9564898d3cb4152482492a6d548b7b434ee Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Thu, 16 Jul 2026 10:27:17 +0100
+Subject: [PATCH] Avoid the undocumented `glob.glob1` API, removed in Python
+ 3.15
+
+See https://docs.python.org/3.15/whatsnew/3.15.html#glob.
+
+See also https://docs.python.org/3.15/library/glob.html#glob.glob, which
+notes that the `root_dir` keyword was added in Python 3.10.
+---
+ MetaTools/buildTableList.py       | 2 +-
+ MetaTools/check_table_coverage.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/MetaTools/buildTableList.py b/MetaTools/buildTableList.py
+index b344f330f7..9bdd95642b 100755
+--- a/MetaTools/buildTableList.py
++++ b/MetaTools/buildTableList.py
+@@ -12,7 +12,7 @@
+ tablesDir = os.path.join(fontToolsDir, "Lib", "fontTools", "ttLib", "tables")
+ docFile = os.path.join(fontToolsDir, "Doc/source/ttx.rst")
+ 
+-names = glob.glob1(tablesDir, "*.py")
++names = glob.glob("*.py", root_dir=tablesDir)
+ 
+ modules = []
+ tables = []
+diff --git a/MetaTools/check_table_coverage.py b/MetaTools/check_table_coverage.py
+index 5764daddb4..19ec986eb2 100644
+--- a/MetaTools/check_table_coverage.py
++++ b/MetaTools/check_table_coverage.py
+@@ -141,7 +141,7 @@
+ def get_table_modules() -> list[tuple[str, str]]:
+     """Return sorted list of (module_name, tag_raw) for all table .py files."""
+     modules = []
+-    for filename in glob.glob1(TABLES_DIR, "*.py"):
++    for filename in glob.glob("*.py", root_dir=TABLES_DIR):
+         name = filename[:-3]
+         try:
+             tag = identifierToTag(name)  # may contain trailing spaces, e.g. "cvt "

diff --git a/fonttools.spec b/fonttools.spec
index 3036acf..be69cae 100644
--- a/fonttools.spec
+++ b/fonttools.spec
@@ -31,7 +31,7 @@ AFM and to an extent Type 1 and some Mac-specific formats.}
 
 Name:           fonttools
 Version:        4.63.0
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Tools to manipulate font files
 
 # https://spdx.org/licenses/MIT.html
@@ -39,6 +39,10 @@ License:        MIT
 URL:            https://github.com/fonttools/fonttools/
 Source:         %{url}/archive/%{version}/fonttools-%{version}.tar.gz
 
+# Avoid the undocumented `glob.glob1` API, removed in Python 3.15
+# https://github.com/fonttools/fonttools/pull/4133
+Patch:          %{url}/pull/4133.patch
+
 Requires:       python3-fonttools = %{version}-%{release}
 Provides:       ttx = %{version}-%{release}
 
@@ -201,6 +205,9 @@ k="${k-}${k+ and }not (test_ttcompile_timestamp_calcs)"
 %doc NEWS.rst README.rst
 
 %changelog
+* Thu Jul 16 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 4.63.0-6
+- Avoid removed `glob.glob1` API; fixes RHBZ#2488354
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.63.0-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-07-16 13:28 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=178420849251.1.13737632682314622324.rpms-fonttools-d08b4ec8a33d@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