public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-tiktoken] f43: Update to 0.13.0 (close RHBZ#2477785)
@ 2026-07-07  4:23 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-07  4:23 UTC (permalink / raw)
  To: git-commits

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"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-07  4:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07  4:23 [rpms/python-tiktoken] f43: Update to 0.13.0 (close RHBZ#2477785) 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