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-tiktoken] f43: Update to 0.13.0 (close RHBZ#2477785)
Date: Tue, 07 Jul 2026 04:23:48 GMT	[thread overview]
Message-ID: <178339822884.1.15406924811902232653.rpms-python-tiktoken-3e1cb0ec5b16@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-tiktoken
Branch : f43
Commit : 3e1cb0ec5b162f27807887d54f54bfed5e7234f8
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-07-06T11:51:35+01:00
Stats  : +20/-2 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-tiktoken/c/3e1cb0ec5b162f27807887d54f54bfed5e7234f8?branch=f43

Log:
Update to 0.13.0 (close RHBZ#2477785)

---
diff --git a/python-tiktoken.spec b/python-tiktoken.spec
index b6a6dfd..887721f 100644
--- a/python-tiktoken.spec
+++ b/python-tiktoken.spec
@@ -1,5 +1,5 @@
 Name:           python-tiktoken
-Version:        0.12.0
+Version:        0.13.0
 Release:        %autorelease
 Summary:        tiktoken is a fast BPE tokeniser for use with OpenAI's models
 # tiktoken is MIT
@@ -23,6 +23,12 @@ License:        %{shrink:
 URL:            https://pypi.org/project/tiktoken/
 Source:         %{pypi_source tiktoken}
 
+# Manually created patch for downstream crate metadata changes
+# * Allow fancy-regex 0.16 for now; upstream wants 0.17, updated from 0.13 “for
+#   significantly increased performance.” See:
+#   https://bugzilla.redhat.com/show_bug.cgi?id=2321464
+Patch:          tiktoken-fix-metadata.diff
+
 BuildRequires:  python3-devel
 BuildRequires:  cargo-rpm-macros >= 24
 

diff --git a/sources b/sources
index ddf61d6..2900bb8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tiktoken-0.12.0.tar.gz) = 5439d8a109446303255bb3c4cfb51fb77a3137b9ea96b467665de11d48e26ef6eb774c9e3a2307dc870f332a67a8eb88966320cfff3ec0f6754081ff2e22831d
+SHA512 (tiktoken-0.13.0.tar.gz) = 172f3b325da80f075d99ef9245bc9c7f22521eeb2c4703aace72302ff557e66bea03110420e823f55d506c53bc7c79bc8ccec98816c6fc248b88c4fc978636f1

diff --git a/tiktoken-fix-metadata.diff b/tiktoken-fix-metadata.diff
new file mode 100644
index 0000000..36e16c0
--- /dev/null
+++ b/tiktoken-fix-metadata.diff
@@ -0,0 +1,12 @@
+diff -Naur tiktoken-0.13.0-original/Cargo.toml tiktoken-0.13.0/Cargo.toml
+--- tiktoken-0.13.0-original/Cargo.toml	2026-05-15 05:44:55.000000000 +0100
++++ tiktoken-0.13.0/Cargo.toml	2026-07-06 11:49:01.822644820 +0100
+@@ -20,7 +20,7 @@
+ ], optional = true }
+ 
+ # tiktoken dependencies
+-fancy-regex = "0.17.0"
++fancy-regex = ">=0.16.0, <0.18.0"
+ regex = "1.10.3"
+ rustc-hash = "2"
+ bstr = "1.5.0"

                 reply	other threads:[~2026-07-07  4:23 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=178339822884.1.15406924811902232653.rpms-python-tiktoken-3e1cb0ec5b16@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