Accepting request 965319 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/965319
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mysqlclient?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2022-03-31 15:18:13 +00:00 committed by Git OBS Bridge
commit 9e8869d21b
5 changed files with 24 additions and 30 deletions

View File

@ -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__":

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432
size 88886

3
mysqlclient-2.1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:973235686f1b720536d417bf0a0d39b4ab3d5086b2b6ad5e6752393428c02b12
size 87635

View File

@ -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 <steven.kowalik@suse.com>

View File

@ -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