From 6970b041b39032c6b3695aa849c664870c17a66eb54a2ab8cc16f1eaa5b91a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 1 Nov 2023 15:51:11 +0000 Subject: [PATCH] Accepting request 1121608 from home:SchoolGuy:branches:devel:languages:python Update to version 8.2.0 OBS-URL: https://build.opensuse.org/request/show/1121608 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysql-connector-python?expand=0&rev=20 --- mysql-connector-python-8.0.19.tar.gz | 3 --- mysql-connector-python-8.2.0-src.tar.gz | 3 +++ python-mysql-connector-python.changes | 7 +++++++ python-mysql-connector-python.spec | 25 ++++++++++++++----------- remove-require-version-constraint.patch | 8 -------- 5 files changed, 24 insertions(+), 22 deletions(-) delete mode 100644 mysql-connector-python-8.0.19.tar.gz create mode 100644 mysql-connector-python-8.2.0-src.tar.gz delete mode 100644 remove-require-version-constraint.patch diff --git a/mysql-connector-python-8.0.19.tar.gz b/mysql-connector-python-8.0.19.tar.gz deleted file mode 100644 index 0fd298d..0000000 --- a/mysql-connector-python-8.0.19.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c90618047b5b32de7fa48fb3694764bc157637582fe8dccb66830b76cccb0382 -size 12051609 diff --git a/mysql-connector-python-8.2.0-src.tar.gz b/mysql-connector-python-8.2.0-src.tar.gz new file mode 100644 index 0000000..3beeb72 --- /dev/null +++ b/mysql-connector-python-8.2.0-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec417cbc777d46c0ba3c1243665a998397e869ed6cde5d051e279bf3624c3d33 +size 15602279 diff --git a/python-mysql-connector-python.changes b/python-mysql-connector-python.changes index 764b7a5..717d281 100644 --- a/python-mysql-connector-python.changes +++ b/python-mysql-connector-python.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 1 12:01:18 UTC 2023 - Enno Gotthold + +- Update to version 8.2.0 +- Remove: + * remove-require-version-constraint.patch + ------------------------------------------------------------------- Thu Jun 11 09:01:23 UTC 2020 - Rolf Krahl diff --git a/python-mysql-connector-python.spec b/python-mysql-connector-python.spec index b87d87d..40c0b16 100644 --- a/python-mysql-connector-python.spec +++ b/python-mysql-connector-python.spec @@ -1,7 +1,7 @@ # # spec file for package python-mysql-connector-python # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,30 +16,31 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mysql-connector-python -Version: 8.0.19 +Version: 8.2.0 Release: 0 Summary: MySQL driver written in Python License: SUSE-GPL-2.0-with-FLOSS-exception Group: Development/Languages/Python URL: http://dev.mysql.com/doc/connector-python/en/index.html -Source: https://cdn.mysql.com//Downloads/Connector-Python/mysql-connector-python-%{version}.tar.gz -Patch0: remove-require-version-constraint.patch +# GitHub: https://github.com/mysql/mysql-connector-python +Source: https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-%{version}-src.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module protobuf} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: gcc-c++ BuildRequires: python-rpm-macros Requires: python-dnspython Requires: python-protobuf -BuildArch: noarch %python_subpackages %description MySQL driver written in Python which does not depend on MySQL C client libraries and implements the DB API v2.0 specification (PEP-249). %prep -%setup -q -n mysql-connector-python-%{version} -%patch0 -p1 +%setup -q -n mysql-connector-python-%{version}-src %build %python_build @@ -47,8 +48,8 @@ MySQL driver written in Python which does not depend on MySQL C client libraries %install # bug in setuptools prevents proper c lib installation # when using python_install so use custom python_exec instead -%python_exec setup.py install --prefix=%{_prefix} --root=%{buildroot} -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} #FIXME(toabctl): Reenable testuite # probably won't work against mariadb 10 @@ -61,6 +62,8 @@ MySQL driver written in Python which does not depend on MySQL C client libraries %files %{python_files} %license LICENSE.txt %doc README.txt CHANGES.txt -%{python_sitelib}/* +%{python_sitearch}/mysql +%{python_sitearch}/mysql*.egg-info +%{python_sitearch}/mysqlx %changelog diff --git a/remove-require-version-constraint.patch b/remove-require-version-constraint.patch deleted file mode 100644 index e62a505..0000000 --- a/remove-require-version-constraint.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- mysql-connector-python-8.0.19/setupinfo.py.orig 2019-12-17 13:31:58.000000000 +0100 -+++ mysql-connector-python-8.0.19/setupinfo.py 2020-06-11 10:42:54.011938623 +0200 -@@ -139,4 +139,4 @@ - 'Topic :: Software Development :: Libraries :: Application Frameworks', - 'Topic :: Software Development :: Libraries :: Python Modules' - ] --install_requires = ["protobuf==3.6.1", "dnspython==1.16.0"] -+install_requires = ["protobuf", "dnspython"]