forked from pool/python-mysql-connector-python
* WL#16754: The host wildcard no longer applies to localhost
* WL#16752: Deprecate class methods to access instance data or
to know instance internal state
* WL#16327: Remove Cursors Prepared Raw and Named Tuple
* BUG#37541353: (Contribution) Fix typing annotation of
MySQLConnectionAbstract's close function
* BUG#37453587: Github links in PyPI project's pages do not
work
* BUG#37447394: Unable to escape a parameter marker (`%s`) used
in a query that should not be treated as a parameter marker
* BUG#37418436: Arbitrary File Read in MySQL Python Client
library
* BUG#37410052: Bad formatting of exceptions when connecting
with Unix sockets
* BUG#37399636: The C-extension has a memory leak when working
with prepared statements
* BUG#37275524: Exception is not interpreted properly on
prepared statements when C extension is in use
* BUG#36098290: mysql-connector-python is distributed without
setup.py or pyproject.toml
* WL#16381: Add support for read and write timeouts
* WL#16285: Remake Multi Statement Execution
* BUG#37145655: MySQL Connector/Python Configuration Files RCE
* BUG#36702939: connection_cext has a memory leak in the python
mysql-connector
* BUG#36922645: Option `connection_timeout` is overwritten and
works as "query" timeout instead
* BUG#36126909: "Unread result found" exception/bad
MySQLCursor.statement when query text contains code comments
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysql-connector-python?expand=0&rev=25
80 lines
2.4 KiB
RPMSpec
80 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-mysql-connector-python
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-mysql-connector-python
|
|
Version: 9.3.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
|
|
# 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 pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: mariadb
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-dnspython
|
|
Requires: python-protobuf
|
|
%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
|
|
%autosetup -p1 -n mysql-connector-python-%{version}-src
|
|
|
|
%build
|
|
pushd mysql-connector-python
|
|
%python_build
|
|
popd
|
|
pushd mysqlx-connector-python
|
|
%python_build
|
|
popd
|
|
|
|
%install
|
|
pushd mysql-connector-python
|
|
%python_install
|
|
popd
|
|
pushd mysqlx-connector-python
|
|
%python_install
|
|
popd
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
#FIXME(toabctl): Reenable testuite
|
|
# probably won't work against mariadb 10
|
|
# the test script is using rather deep details
|
|
# of `mysql` table structure
|
|
# --matejcik
|
|
#check
|
|
#python unittests.py --with-mysql=/usr
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc README.txt CHANGES.txt
|
|
%{python_sitearch}/mysql
|
|
%{python_sitearch}/mysql*.egg-info
|
|
%{python_sitearch}/mysqlx
|
|
|
|
%changelog
|