Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-xgrammar for openSUSE:Factory 
checked in at 2026-09-08 16:54:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xgrammar (Old)
 and      /work/SRC/openSUSE:Factory/.python-xgrammar.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xgrammar"

Tue Sep  8 16:54:14 2026 rev:4 rq:1376104 version:0.2.5.post1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xgrammar/python-xgrammar.changes  
2026-09-04 12:41:37.549146135 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-xgrammar.new.1265/python-xgrammar.changes    
    2026-09-08 16:55:17.338903897 +0200
@@ -1,0 +2,10 @@
+Mon Sep  7 06:44:20 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 0.2.5.post1:
+  * Release-plumbing only: upstream re-tagged to finish a partial
+    PyPI upload, no change to the shipped code
+- Drop the transformers/tokenizers ImportError guard from %check:
+  Factory transformers 5.16.1 requires tokenizers >= 0.23.1 and
+  Factory ships 0.23.1, so the full import works again
+
+-------------------------------------------------------------------

Old:
----
  xgrammar-0.2.5.tar.gz

New:
----
  xgrammar-0.2.5.post1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-xgrammar.spec ++++++
--- /var/tmp/diff_new_pack.QGcNWh/_old  2026-09-08 16:55:18.251941549 +0200
+++ /var/tmp/diff_new_pack.QGcNWh/_new  2026-09-08 16:55:18.254941672 +0200
@@ -17,13 +17,14 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-xgrammar
-Version:        0.2.5
+Version:        0.2.5.post1
 Release:        0
 Summary:        Efficient, Flexible and Portable Structured Generation
 License:        Apache-2.0
 URL:            https://xgrammar.mlc.ai/
-# Upstream stopped publishing an sdist on PyPI; the tarball is generated from
-# the git tag via _service because the C++ build needs the 3rdparty submodules.
+# Upstream's PyPI sdist is unreliable (absent for 0.2.4 and 0.2.5), so the
+# tarball is generated from the git tag via _service, with the 3rdparty
+# submodules the C++ build needs.
 # https://github.com/mlc-ai/xgrammar
 Source:         xgrammar-%{version}.tar.gz
 BuildRequires:  %{python_module apache-tvm-ffi >= 0.1.9}
@@ -81,41 +82,7 @@
 # is not runnable in the build root. Importing xgrammar loads the compiled
 # tvm_ffi binding first (exercising that the C++ extension builds, loads and
 # links against apache-tvm-ffi correctly) before importing the public API.
-#
-# TEMPORARY: Factory ships python-transformers 5.14.1 (which caps
-# tokenizers<=0.23.0) alongside python-tokenizers 0.23.1, so `import
-# transformers` -- reached via xgrammar's tokenizer_info -- raises ImportError
-# distro-wide. That import happens *after* the native binding is loaded, so we
-# tolerate only that specific ImportError and still assert the C++ extension
-# loaded. Drop this guard once the transformers/tokenizers skew is fixed in
-# Factory.
-cat > smoketest.py <<'PYEOF'
-import sys
-
-try:
-    import xgrammar
-    from xgrammar import Grammar, GrammarCompiler, CompiledGrammar
-
-    assert Grammar is not None
-    assert GrammarCompiler is not None
-    assert CompiledGrammar is not None
-    print("xgrammar smoke test: full import OK")
-except ImportError as exc:
-    if "tokenizers" not in str(exc) and "transformers" not in str(exc):
-        raise
-    # xgrammar/__init__ imports load_binding (native xgrammar_bindings) before
-    # the transformers-dependent tokenizer_info, so the compiled extension is
-    # already loaded even though the top-level import aborted.
-    lb = sys.modules.get("xgrammar.load_binding")
-    assert lb is not None and getattr(lb, "LIB", None) is not None, (
-        "native xgrammar_bindings failed to load"
-    )
-    print(
-        "xgrammar native C++ binding loaded OK; transformers-dependent import "
-        "skipped due to Factory transformers<=0.23.0 / tokenizers 0.23.1 skew"
-    )
-PYEOF
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -B 
smoketest.py
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -B -c 
"import xgrammar; from xgrammar import Grammar, GrammarCompiler, 
CompiledGrammar"
 
 %files %{python_files}
 %license LICENSE NOTICE

++++++ _service ++++++
--- /var/tmp/diff_new_pack.QGcNWh/_old  2026-09-08 16:55:18.306943817 +0200
+++ /var/tmp/diff_new_pack.QGcNWh/_new  2026-09-08 16:55:18.309943940 +0200
@@ -2,9 +2,9 @@
   <service name="obs_scm" mode="manual">
     <param name="url">https://github.com/mlc-ai/xgrammar.git</param>
     <param name="scm">git</param>
-    <param name="revision">v0.2.5</param>
-    <param name="version">0.2.5</param>
-    <param name="versionformat">0.2.5</param>
+    <param name="revision">v0.2.5.post1</param>
+    <param name="version">0.2.5.post1</param>
+    <param name="versionformat">0.2.5.post1</param>
     <param name="submodules">enable</param>
     <param name="filename">xgrammar</param>
   </service>

Reply via email to