Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-mysql-connector-python for 
openSUSE:Factory checked in at 2026-04-25 21:36:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mysql-connector-python (Old)
 and      /work/SRC/openSUSE:Factory/.python-mysql-connector-python.new.11940 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mysql-connector-python"

Sat Apr 25 21:36:52 2026 rev:11 rq:1349080 version:9.6.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-mysql-connector-python/python-mysql-connector-python.changes
      2026-02-23 16:15:37.076924917 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mysql-connector-python.new.11940/python-mysql-connector-python.changes
   2026-04-25 21:37:39.466473347 +0200
@@ -1,0 +2,8 @@
+Fri Apr 24 07:03:39 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Switch to using pyproject macros to build and install.
+- Since we don't build the C extensions, move the dist-info metadata too.
+- Add patch no-cpydist-bdist_wheel.patch:
+  * Do not import the NIH bdist_wheel function in setup.py.
+
+-------------------------------------------------------------------

New:
----
  no-cpydist-bdist_wheel.patch

----------(New B)----------
  New:- Since we don't build the C extensions, move the dist-info metadata too.
- Add patch no-cpydist-bdist_wheel.patch:
  * Do not import the NIH bdist_wheel function in setup.py.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-mysql-connector-python.spec ++++++
--- /var/tmp/diff_new_pack.qnnEt8/_old  2026-04-25 21:37:40.046497008 +0200
+++ /var/tmp/diff_new_pack.qnnEt8/_new  2026-04-25 21:37:40.046497008 +0200
@@ -21,10 +21,12 @@
 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
+# PATCH-FIX-OPENSUSE Do not import the NIH bdist_wheel command in setup.py,
+# because it will write the resultant wheel to wheel-dir as a *file*.
+Patch0:         no-cpydist-bdist_wheel.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module protobuf}
 BuildRequires:  %{python_module pytest}
@@ -46,20 +48,24 @@
 
 %build
 pushd mysql-connector-python
-%python_build
+%pyproject_wheel
 popd
 pushd mysqlx-connector-python
-%python_build
+%pyproject_wheel
 popd
 
 %install
 pushd mysql-connector-python
-%python_install
+%pyproject_install
 popd
 pushd mysqlx-connector-python
-%python_install
+%pyproject_install
 popd
-%python_expand %fdupes %{buildroot}%{$python_sitearch}
+%{python_expand # move the dist-info to sitelib
+mv %{buildroot}%{$python_sitearch}/mysql*dist-info 
%{buildroot}%{$python_sitelib}
+rm -r %{buildroot}%{$python_sitearch}
+%fdupes %{buildroot}%{$python_sitelib}
+}
 
 #FIXME(toabctl): Reenable testuite
 # probably won't work against mariadb 10
@@ -72,7 +78,8 @@
 %files %{python_files}
 %license LICENSE.txt
 %doc README.txt CHANGES.txt
-%{python_sitearch}/mysql
-%{python_sitearch}/mysql*.egg-info
-%{python_sitearch}/mysqlx
+%{python_sitelib}/mysql
+%{python_sitelib}/mysqlx
+%{python_sitelib}/mysql_connector_python-%{version}.dist-info
+%{python_sitelib}/mysqlx_connector_python-%{version}.dist-info
 

++++++ no-cpydist-bdist_wheel.patch ++++++
Index: mysql-connector-python-9.3.0-src/mysql-connector-python/setup.py
===================================================================
--- mysql-connector-python-9.3.0-src.orig/mysql-connector-python/setup.py
+++ mysql-connector-python-9.3.0-src/mysql-connector-python/setup.py
@@ -43,10 +43,7 @@ from cpydist.bdist_solaris import DistSo
 from cpydist.sdist import DistSource
 from setuptools import Extension, find_packages, setup
 
-try:
-    from cpydist.bdist_wheel import DistWheel
-except ImportError:
-    DistWheel = None
+DistWheel = None
 
 GITHUB_URL = "https://github.com/mysql/mysql-connector-python";
 METADATA_FILES = (
Index: mysql-connector-python-9.3.0-src/mysqlx-connector-python/setup.py
===================================================================
--- mysql-connector-python-9.3.0-src.orig/mysqlx-connector-python/setup.py
+++ mysql-connector-python-9.3.0-src/mysqlx-connector-python/setup.py
@@ -43,10 +43,7 @@ from cpydist.bdist_solaris import DistSo
 from cpydist.sdist import DistSource
 from setuptools import Extension, find_packages, setup
 
-try:
-    from cpydist.bdist_wheel import DistWheel
-except ImportError:
-    DistWheel = None
+DistWheel = None
 
 
 GITHUB_URL = "https://github.com/mysql/mysql-connector-python";

Reply via email to