Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mysqlclient for openSUSE:Factory checked in at 2025-02-11 21:20:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mysqlclient (Old) and /work/SRC/openSUSE:Factory/.python-mysqlclient.new.19470 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mysqlclient" Tue Feb 11 21:20:15 2025 rev:24 rq:1245100 version:2.2.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mysqlclient/python-mysqlclient.changes 2025-01-23 18:01:27.098323829 +0100 +++ /work/SRC/openSUSE:Factory/.python-mysqlclient.new.19470/python-mysqlclient.changes 2025-02-11 21:20:23.747769605 +0100 @@ -1,0 +2,7 @@ +Tue Feb 11 09:43:57 UTC 2025 - pgaj...@suse.com + +- version update to 2.2.7 + * MariaDB include paths for Win by @CristiFati in #749 + * support opentelemetry-instrumentation by @methane in #753 + +------------------------------------------------------------------- Old: ---- mysqlclient-2.2.6.tar.gz New: ---- mysqlclient-2.2.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mysqlclient.spec ++++++ --- /var/tmp/diff_new_pack.82jEml/_old 2025-02-11 21:20:24.435797987 +0100 +++ /var/tmp/diff_new_pack.82jEml/_new 2025-02-11 21:20:24.439798152 +0100 @@ -27,7 +27,7 @@ %bcond_with test %endif Name: python-mysqlclient%{psuffix} -Version: 2.2.6 +Version: 2.2.7 Release: 0 Summary: Python interface to MySQL License: GPL-2.0-or-later ++++++ mysqlclient-2.2.6.tar.gz -> mysqlclient-2.2.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mysqlclient-2.2.6/HISTORY.rst new/mysqlclient-2.2.7/HISTORY.rst --- old/mysqlclient-2.2.6/HISTORY.rst 2024-11-12 14:44:20.000000000 +0100 +++ new/mysqlclient-2.2.7/HISTORY.rst 2025-01-10 12:26:10.000000000 +0100 @@ -1,4 +1,13 @@ ====================== + What's new in 2.2.7 +====================== + +Release: 2025-01-10 + +* Add ``user``, ``host``, ``database``, and ``db`` attributes to ``Connection``. + opentelemetry-instrumentation-(dbapi|mysqlclient) use them. (#753) + +====================== What's new in 2.2.6 ====================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mysqlclient-2.2.6/PKG-INFO new/mysqlclient-2.2.7/PKG-INFO --- old/mysqlclient-2.2.6/PKG-INFO 2024-11-12 14:47:57.563669700 +0100 +++ new/mysqlclient-2.2.7/PKG-INFO 2025-01-10 12:29:56.780702000 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 2.1 +Metadata-Version: 2.2 Name: mysqlclient -Version: 2.2.6 +Version: 2.2.7 Summary: Python interface to MySQL Author-email: Inada Naoki <songofaca...@gmail.com> License: GNU General Public License v2 or later (GPLv2+) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mysqlclient-2.2.6/setup.py new/mysqlclient-2.2.7/setup.py --- old/mysqlclient-2.2.6/setup.py 2024-11-12 14:44:20.000000000 +0100 +++ new/mysqlclient-2.2.7/setup.py 2025-01-10 12:26:10.000000000 +0100 @@ -109,6 +109,7 @@ ] include_dirs = [ os.path.join(connector, "include", "mariadb"), + os.path.join(connector, "include", "mysql"), os.path.join(connector, "include"), ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mysqlclient-2.2.6/src/MySQLdb/connections.py new/mysqlclient-2.2.7/src/MySQLdb/connections.py --- old/mysqlclient-2.2.6/src/MySQLdb/connections.py 2024-11-12 14:44:20.000000000 +0100 +++ new/mysqlclient-2.2.7/src/MySQLdb/connections.py 2025-01-10 12:26:10.000000000 +0100 @@ -196,18 +196,18 @@ # PEP-249 requires autocommit to be initially off autocommit = kwargs2.pop("autocommit", False) + self._set_attributes(*args, **kwargs2) super().__init__(*args, **kwargs2) + self.cursorclass = cursorclass self.encoders = { k: v for k, v in conv.items() if type(k) is not int # noqa: E721 } - self._server_version = tuple( [numeric_part(n) for n in self.get_server_info().split(".")[:2]] ) - self.encoding = "ascii" # overridden in set_character_set() if not charset: @@ -238,6 +238,21 @@ self.autocommit(autocommit) self.messages = [] + def _set_attributes(self, host=None, user=None, password=None, database="", port=3306, + unix_socket=None, **kwargs): + """set some attributes for otel""" + if unix_socket and not host: + host = "localhost" + # support opentelemetry-instrumentation-dbapi + self.host = host + # _mysql.Connection provides self.port + self.user = user + self.database = database + # otel-inst-mysqlclient uses db instead of database. + self.db = database + # NOTE: We have not supported semantic conventions yet. + # https://opentelemetry.io/docs/specs/semconv/database/sql/ + def __enter__(self): return self diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mysqlclient-2.2.6/src/MySQLdb/release.py new/mysqlclient-2.2.7/src/MySQLdb/release.py --- old/mysqlclient-2.2.6/src/MySQLdb/release.py 2024-11-12 14:44:20.000000000 +0100 +++ new/mysqlclient-2.2.7/src/MySQLdb/release.py 2025-01-10 12:26:10.000000000 +0100 @@ -1,3 +1,3 @@ __author__ = "Inada Naoki <songofaca...@gmail.com>" -__version__ = "2.2.6" -version_info = (2, 2, 6, "final", 0) +__version__ = "2.2.7" +version_info = (2, 2, 7, "final", 0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mysqlclient-2.2.6/src/mysqlclient.egg-info/PKG-INFO new/mysqlclient-2.2.7/src/mysqlclient.egg-info/PKG-INFO --- old/mysqlclient-2.2.6/src/mysqlclient.egg-info/PKG-INFO 2024-11-12 14:47:57.000000000 +0100 +++ new/mysqlclient-2.2.7/src/mysqlclient.egg-info/PKG-INFO 2025-01-10 12:29:56.000000000 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 2.1 +Metadata-Version: 2.2 Name: mysqlclient -Version: 2.2.6 +Version: 2.2.7 Summary: Python interface to MySQL Author-email: Inada Naoki <songofaca...@gmail.com> License: GNU General Public License v2 or later (GPLv2+)