From f4e1ab0b918b03357550d91a207c99606321c46a296190cad00ad8bb0994dd75 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 28 Mar 2022 07:52:37 +0000 Subject: [PATCH] Accepting request 964669 from home:pgajdos:python - version update to 2.1.0 * Add ``multistatement=True`` option. You can disable multi statement. (#500). * Remove unnecessary bytes encoder which is remained for Django 1.11 compatibility (#490). * Deprecate ``passwd`` and ``db`` keyword. Use ``password`` and ``database`` instead. (#488). * Windows: Binary wheels are built with MariaDB Connector/C 3.2.4. (#508) * ``set_character_set()`` sends ``SET NAMES`` query always. This means all new connections send it too. This solves compatibility issues when server and client library are different version. (#509) * Remove ``escape()`` and ``escape_string()`` from ``MySQLdb`` package. (#511) * Add Python 3.10 support and drop Python 3.5 support. - deleted patches - liberally-accept-charsets.patch (upstreamed) OBS-URL: https://build.opensuse.org/request/show/964669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=27 --- liberally-accept-charsets.patch | 23 ----------------------- mysqlclient-2.0.3.tar.gz | 3 --- mysqlclient-2.1.0.tar.gz | 3 +++ python-mysqlclient.changes | 19 +++++++++++++++++++ python-mysqlclient.spec | 6 ++---- 5 files changed, 24 insertions(+), 30 deletions(-) delete mode 100644 liberally-accept-charsets.patch delete mode 100644 mysqlclient-2.0.3.tar.gz create mode 100644 mysqlclient-2.1.0.tar.gz diff --git a/liberally-accept-charsets.patch b/liberally-accept-charsets.patch deleted file mode 100644 index 0743cf4..0000000 --- a/liberally-accept-charsets.patch +++ /dev/null @@ -1,23 +0,0 @@ -Index: mysqlclient-2.0.3/tests/test_MySQLdb_capabilities.py -=================================================================== ---- mysqlclient-2.0.3.orig/tests/test_MySQLdb_capabilities.py -+++ mysqlclient-2.0.3/tests/test_MySQLdb_capabilities.py -@@ -189,12 +189,14 @@ VALUES (1, - with closing(connection_factory(**kwargs)) as conn: - with closing(conn.cursor()) as c: - c.execute("SELECT CHARSET(%s)", (MySQLdb.Binary(b"raw bytes"),)) -- self.assertEqual( -- c.fetchall()[0][0], "binary" if binary_prefix else "utf8" -- ) -+ res = ("utf8", "utf8mb3", "utf8mb4") -+ if binary_prefix: -+ self.assertEqual(c.fetchall()[0][0], "binary") -+ else: -+ self.assertIn(c.fetchall()[0][0], res) - # normal strings should not get prefix - c.execute("SELECT CHARSET(%s)", ("str",)) -- self.assertEqual(c.fetchall()[0][0], "utf8") -+ self.assertIn(c.fetchall()[0][0], res) - - - if __name__ == "__main__": diff --git a/mysqlclient-2.0.3.tar.gz b/mysqlclient-2.0.3.tar.gz deleted file mode 100644 index 3d1a798..0000000 --- a/mysqlclient-2.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432 -size 88886 diff --git a/mysqlclient-2.1.0.tar.gz b/mysqlclient-2.1.0.tar.gz new file mode 100644 index 0000000..29c8ad2 --- /dev/null +++ b/mysqlclient-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:973235686f1b720536d417bf0a0d39b4ab3d5086b2b6ad5e6752393428c02b12 +size 87635 diff --git a/python-mysqlclient.changes b/python-mysqlclient.changes index f272707..39f08ad 100644 --- a/python-mysqlclient.changes +++ b/python-mysqlclient.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Thu Mar 24 13:10:53 UTC 2022 - pgajdos@suse.com + +- version update to 2.1.0 + * Add ``multistatement=True`` option. You can disable multi statement. (#500). + * Remove unnecessary bytes encoder which is remained for Django 1.11 + compatibility (#490). + * Deprecate ``passwd`` and ``db`` keyword. Use ``password`` and ``database`` + instead. (#488). + * Windows: Binary wheels are built with MariaDB Connector/C 3.2.4. (#508) + * ``set_character_set()`` sends ``SET NAMES`` query always. This means + all new connections send it too. This solves compatibility issues + when server and client library are different version. (#509) + * Remove ``escape()`` and ``escape_string()`` from ``MySQLdb`` package. + (#511) + * Add Python 3.10 support and drop Python 3.5 support. +- deleted patches + - liberally-accept-charsets.patch (upstreamed) + ------------------------------------------------------------------- Fri Sep 10 07:48:36 UTC 2021 - Steve Kowalik diff --git a/python-mysqlclient.spec b/python-mysqlclient.spec index 7f46e8f..316c69e 100644 --- a/python-mysqlclient.spec +++ b/python-mysqlclient.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,13 +29,12 @@ %bcond_with test %endif Name: python-mysqlclient%{psuffix} -Version: 2.0.3 +Version: 2.1.0 Release: 0 Summary: Python interface to MySQL License: GPL-2.0-or-later URL: https://github.com/PyMySQL/mysqlclient-python Source: https://files.pythonhosted.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz -Patch0: liberally-accept-charsets.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -50,7 +49,6 @@ Obsoletes: python-mysql < %{version} Provides: python-MySQL-python = %{version} Obsoletes: python-MySQL-python < %{version} %if %{with test} -BuildRequires: %{python_module mock} BuildRequires: %{python_module mysqlclient >= %{version}} BuildRequires: %{python_module pytest} BuildRequires: mariadb-rpm-macros