Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-sqlglot for openSUSE:Factory checked in at 2026-04-09 16:08:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sqlglot (Old) and /work/SRC/openSUSE:Factory/.python-sqlglot.new.21863 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sqlglot" Thu Apr 9 16:08:38 2026 rev:3 rq:1345085 version:30.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sqlglot/python-sqlglot.changes 2024-01-03 12:33:23.249894125 +0100 +++ /work/SRC/openSUSE:Factory/.python-sqlglot.new.21863/python-sqlglot.changes 2026-04-09 16:11:07.940947017 +0200 @@ -1,0 +2,9 @@ +Tue Apr 7 22:38:38 UTC 2026 - Dirk Müller <[email protected]> + +- update to 30.3.0: + * skipped 24 major versions, changes in + https://github.com/tobymao/sqlglot/blob/v30.3.0/CHANGELOG.md +- add use-sys-executable.patch +- missing-duckdb.patch: refresh + +------------------------------------------------------------------- Old: ---- sqlglot-7.0.0.tar.gz New: ---- sqlglot-30.3.0.tar.gz use-sys-executable.patch ----------(New B)---------- New: https://github.com/tobymao/sqlglot/blob/v30.3.0/CHANGELOG.md - add use-sys-executable.patch - missing-duckdb.patch: refresh ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sqlglot.spec ++++++ --- /var/tmp/diff_new_pack.L21ekz/_old 2026-04-09 16:11:28.601799420 +0200 +++ /var/tmp/diff_new_pack.L21ekz/_new 2026-04-09 16:11:28.601799420 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-sqlglot # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,18 +19,19 @@ %define modname sqlglot %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-sqlglot -Version: 7.0.0 +Version: 30.3.0 Release: 0 Summary: An easily customizable SQL parser and transpiler License: MIT URL: https://github.com/tobymao/sqlglot -# gh#tobymao/sqlglot#585 -Source: https://github.com/tobymao/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/s/sqlglot/sqlglot-30.3.0.tar.gz # PATCH-FIX-OPENSUSE missing-duckdb.patch [email protected] # Skip over duckdb requiring tests until it is packaged Patch0: missing-duckdb.patch +Patch1: use-sys-executable.patch BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 61.0} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros ++++++ missing-duckdb.patch ++++++ --- /var/tmp/diff_new_pack.L21ekz/_old 2026-04-09 16:11:28.677802556 +0200 +++ /var/tmp/diff_new_pack.L21ekz/_new 2026-04-09 16:11:28.681802721 +0200 @@ -3,10 +3,13 @@ tests/test_optimizer.py | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) ---- a/tests/test_executor.py -+++ b/tests/test_executor.py -@@ -1,6 +1,10 @@ - import unittest +Index: build/tests/test_executor.py +=================================================================== +--- build.orig/tests/test_executor.py ++++ build/tests/test_executor.py +@@ -5,7 +5,11 @@ import unittest + from datetime import date, time + from concurrent.futures import ProcessPoolExecutor -import duckdb +try: @@ -14,22 +17,24 @@ + DUCKDB_AVAILABLE = True +except ImportError: + DUCKDB_AVAILABLE = False + import numpy as np import pandas as pd from pandas.testing import assert_frame_equal +@@ -70,6 +74,7 @@ def mp_execute(expression, meta): -@@ -12,6 +16,7 @@ from tests.helpers import FIXTURES_DIR, - DIR = FIXTURES_DIR + "/optimizer/tpc-h/" - - + @unittest.skipIf(SKIP_INTEGRATION, "Skipping Integration Tests since `SKIP_INTEGRATION` is set") + @unittest.skipIf(_GENERATOR_IS_COMPILED, "executor requires interpreted Generator subclass") [email protected](DUCKDB_AVAILABLE, "Cannot work without duckdb.") class TestExecutor(unittest.TestCase): @classmethod def setUpClass(cls): ---- a/tests/test_optimizer.py -+++ b/tests/test_optimizer.py -@@ -1,7 +1,11 @@ - import unittest +Index: build/tests/test_optimizer.py +=================================================================== +--- build.orig/tests/test_optimizer.py ++++ build/tests/test_optimizer.py +@@ -3,7 +3,11 @@ from concurrent.futures import ProcessPo from functools import partial + from unittest.mock import patch -import duckdb +try: @@ -40,8 +45,8 @@ from pandas.testing import assert_frame_equal import sqlglot -@@ -18,6 +22,7 @@ from tests.helpers import ( - ) +@@ -77,6 +81,7 @@ def annotate_functions(expression, **kwa + return annotated.expressions[0] [email protected](DUCKDB_AVAILABLE, "Cannot work without duckdb.") ++++++ sqlglot-7.0.0.tar.gz -> sqlglot-30.3.0.tar.gz ++++++ ++++ 188987 lines of diff (skipped) ++++++ use-sys-executable.patch ++++++ Index: sqlglot-30.3.0/tests/dialects/test_dialect.py =================================================================== --- sqlglot-30.3.0.orig/tests/dialects/test_dialect.py +++ sqlglot-30.3.0/tests/dialects/test_dialect.py @@ -1,3 +1,4 @@ +import sys import typing as t import unittest @@ -125,7 +126,7 @@ class TestDialect(Validator): import subprocess code = "import sqlglot; assert len(sqlglot.Dialect._classes) == 1; print('Success')" - result = subprocess.run(["python", "-c", code], capture_output=True, text=True) + result = subprocess.run([sys.executable, "-c", code], capture_output=True, text=True) assert "Success" in result.stdout def test_get_or_raise(self):
