15
0

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
This commit is contained in:
2023-11-01 15:51:11 +00:00
committed by Git OBS Bridge
parent cf97cdccc0
commit 6970b041b3
5 changed files with 24 additions and 22 deletions

View File

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

View File

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

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Nov 1 12:01:18 UTC 2023 - Enno Gotthold <egotthold@suse.com>
- Update to version 8.2.0
- Remove:
* remove-require-version-constraint.patch
-------------------------------------------------------------------
Thu Jun 11 09:01:23 UTC 2020 - Rolf Krahl <rolf@rotkraut.de>

View File

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

View File

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