Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-sql for openSUSE:Factory checked in at 2025-11-27 15:21:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-sql (Old) and /work/SRC/openSUSE:Factory/.python-python-sql.new.14147 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-sql" Thu Nov 27 15:21:21 2025 rev:15 rq:1320287 version:1.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-sql/python-python-sql.changes 2025-05-05 22:59:37.980635134 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-sql.new.14147/python-python-sql.changes 2025-11-27 15:22:56.840487234 +0100 @@ -1,0 +2,7 @@ +Wed Nov 26 21:11:24 UTC 2025 - Axel Braun <[email protected]> + +- Version 1.7.0 + * Add support for Python 3.14 + * Do not use parameters for COUNT(*) + +------------------------------------------------------------------- Old: ---- python_sql-1.6.0.tar.gz New: ---- python_sql-1.7.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-sql.spec ++++++ --- /var/tmp/diff_new_pack.AtZWbW/_old 2025-11-27 15:22:57.824528732 +0100 +++ /var/tmp/diff_new_pack.AtZWbW/_new 2025-11-27 15:22:57.824528732 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-python-sql # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 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 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-python-sql -Version: 1.6.0 +Version: 1.7.0 Release: 0 Summary: Library to write SQL queries License: BSD-3-Clause ++++++ python_sql-1.6.0.tar.gz -> python_sql-1.7.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/.gitlab-ci.yml new/python_sql-1.7.0/.gitlab-ci.yml --- old/python_sql-1.6.0/.gitlab-ci.yml 2025-05-01 14:27:06.000000000 +0200 +++ new/python_sql-1.7.0/.gitlab-ci.yml 2025-11-24 13:36:04.000000000 +0100 @@ -57,7 +57,7 @@ - tox -e "py${PYTHON_VERSION/./}" -- -v --output-file junit.xml parallel: matrix: - - PYTHON_VERSION: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + - PYTHON_VERSION: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] test-tox-pypy: extends: .test-tox diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/.hgtags new/python_sql-1.7.0/.hgtags --- old/python_sql-1.6.0/.hgtags 2025-05-02 21:54:17.000000000 +0200 +++ new/python_sql-1.7.0/.hgtags 2025-11-24 13:51:10.000000000 +0100 @@ -21,3 +21,4 @@ 79a69b0bbbd35a8d95e1b754ed3feb03df23fb70 1.5.1 41b0aaa68f5e5bab3889fa1ef57ef44c6c21cacf 1.5.2 475502ba46eba3b7e141e8fbceaf495b545bcddb 1.6.0 +231ce10b975e41027c6121f9bb9033d786553b90 1.7.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/CHANGELOG new/python_sql-1.7.0/CHANGELOG --- old/python_sql-1.6.0/CHANGELOG 2025-05-02 21:52:18.000000000 +0200 +++ new/python_sql-1.7.0/CHANGELOG 2025-11-24 13:50:07.000000000 +0100 @@ -1,3 +1,7 @@ +Version 1.7.0 - 2025-11-24 +* Add support for Python 3.14 +* Do not use parameters for COUNT(*) + Version 1.6.0 - 2025-05-02 * Fix position of order_by parameters in Select query * Add support for weak reference on SQL objects diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/PKG-INFO new/python_sql-1.7.0/PKG-INFO --- old/python_sql-1.6.0/PKG-INFO 2025-05-02 21:54:47.894437800 +0200 +++ new/python_sql-1.7.0/PKG-INFO 2025-11-24 13:52:05.512239200 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: python-sql -Version: 1.6.0 +Version: 1.7.0 Summary: Library to write SQL queries Home-page: https://pypi.org/project/python-sql/ Download-URL: https://downloads.tryton.org/python-sql/ @@ -25,6 +25,7 @@ Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 +Classifier: Programming Language :: Python :: 3.14 Classifier: Topic :: Database Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/python_sql.egg-info/PKG-INFO new/python_sql-1.7.0/python_sql.egg-info/PKG-INFO --- old/python_sql-1.6.0/python_sql.egg-info/PKG-INFO 2025-05-02 21:54:47.000000000 +0200 +++ new/python_sql-1.7.0/python_sql.egg-info/PKG-INFO 2025-11-24 13:52:05.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: python-sql -Version: 1.6.0 +Version: 1.7.0 Summary: Library to write SQL queries Home-page: https://pypi.org/project/python-sql/ Download-URL: https://downloads.tryton.org/python-sql/ @@ -25,6 +25,7 @@ Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 +Classifier: Programming Language :: Python :: 3.14 Classifier: Topic :: Database Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/setup.py new/python_sql-1.7.0/setup.py --- old/python_sql-1.6.0/setup.py 2025-05-01 14:27:06.000000000 +0200 +++ new/python_sql-1.7.0/setup.py 2025-11-24 13:36:25.000000000 +0100 @@ -49,6 +49,7 @@ 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', 'Topic :: Database', 'Topic :: Software Development :: Libraries :: Python Modules', ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/sql/__init__.py new/python_sql-1.7.0/sql/__init__.py --- old/python_sql-1.6.0/sql/__init__.py 2025-05-02 21:52:46.000000000 +0200 +++ new/python_sql-1.7.0/sql/__init__.py 2025-11-24 13:50:23.000000000 +0100 @@ -7,7 +7,7 @@ from itertools import chain from threading import current_thread, local -__version__ = '1.6.0' +__version__ = '1.7.0' __all__ = [ 'Flavor', 'Table', 'Values', 'Literal', 'Column', 'Grouping', 'Conflict', 'Matched', 'MatchedUpdate', 'MatchedDelete', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/sql/aggregate.py new/python_sql-1.7.0/sql/aggregate.py --- old/python_sql-1.6.0/sql/aggregate.py 2024-09-21 19:36:01.000000000 +0200 +++ new/python_sql-1.7.0/sql/aggregate.py 2025-06-18 15:36:22.000000000 +0200 @@ -4,7 +4,6 @@ __all__ = ['Avg', 'BitAnd', 'BitOr', 'BoolAnd', 'BoolOr', 'Count', 'Every', 'Max', 'Min', 'Stddev', 'Sum', 'Variance'] -_sentinel = object() class Aggregate(Expression): @@ -169,20 +168,31 @@ _sql = 'BOOL_OR' +class _Star(Expression): + __slots__ = () + + def __str__(self): + return '*' + + @property + def params(self): + return () + + class Count(Aggregate): __slots__ = () _sql = 'COUNT' - def __init__(self, expression=_sentinel, **kwargs): - if expression is _sentinel: - expression = Literal('*') + def __init__(self, expression=_Star(), **kwargs): super().__init__(expression, **kwargs) @property def _case_expression(self): expression = super(Count, self)._case_expression - if (isinstance(self.expression, Literal) - and expression.value == '*'): + if (isinstance(self.expression, _Star) + # Keep testing Literal('*') for backward compatibility + or (isinstance(self.expression, Literal) + and expression.value == '*')): expression = Literal(1) return expression diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/sql/tests/test_aggregate.py new/python_sql-1.7.0/sql/tests/test_aggregate.py --- old/python_sql-1.6.0/sql/tests/test_aggregate.py 2024-09-21 19:36:21.000000000 +0200 +++ new/python_sql-1.7.0/sql/tests/test_aggregate.py 2025-06-18 15:34:36.000000000 +0200 @@ -42,8 +42,8 @@ def test_count_without_expression(self): count = Count() - self.assertEqual(str(count), 'COUNT(%s)') - self.assertEqual(count.params, ('*',)) + self.assertEqual(str(count), 'COUNT(*)') + self.assertEqual(count.params, ()) def test_order_by_one_column(self): avg = Avg(self.table.a, order_by=self.table.b) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python_sql-1.6.0/tox.ini new/python_sql-1.7.0/tox.ini --- old/python_sql-1.6.0/tox.ini 2025-05-01 14:27:06.000000000 +0200 +++ new/python_sql-1.7.0/tox.ini 2025-11-24 13:35:52.000000000 +0100 @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py35, py36, py37, py38, py39, py310, py311, py312, py313, pypy3 +envlist = py35, py36, py37, py38, py39, py310, py311, py312, py313, py314, pypy3 [testenv] usedevelop = true
