From fbfd3434f6e16f829b6ffd5928f8c0438ed0ad00b0a65d65a3c60a60d59752e5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 7 Sep 2023 11:10:42 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=202.9.7:=20=20=20*=20Fix=20prop?= =?UTF-8?q?agation=20of=20exceptions=20raised=20during=20module=20=20=20?= =?UTF-8?q?=20=20initialization=20=20=20*=20Fix=20building=20when=20pg=5Fc?= =?UTF-8?q?onfig=20returns=20an=20empty=20string=20-=20Update=20to=202.9.5?= =?UTF-8?q?=20=20=20*=20Alpine=20(musl)=20wheels=20now=20available=20-=20u?= =?UTF-8?q?pdate=20to=202.8.5=20=20=20*=20Added=20interval=5Fstatus=20para?= =?UTF-8?q?meter=20to=20start=5Freplication()=20method=20=20=20=20=20and?= =?UTF-8?q?=20other=20facilities=20to=20send=20automatic=20replication=20k?= =?UTF-8?q?eepalives=20=20=20*=20Fixed=20=E2=80=9Cthere=E2=80=99s=20no=20a?= =?UTF-8?q?sync=20cursor=E2=80=9D=20error=20polling=20a=20connection=20wit?= =?UTF-8?q?h=20=20=20*=20Added=20errors=20module.=20Every=20PostgreSQL=20e?= =?UTF-8?q?rror=20is=20converted=20into=20=20=20*=20Added=20BYTES=20adapte?= =?UTF-8?q?r=20to=20manage=20databases=20with=20mixed=20encodings=20on=20?= =?UTF-8?q?=20=20*=20Added=20table=5Foid=20and=20table=5Fcolumn=20attribut?= =?UTF-8?q?es=20on=20cursor.description=20=20=20*=20Added=20connection.inf?= =?UTF-8?q?o=20object=20to=20retrieve=20various=20PostgreSQL=20=20=20*=20F?= =?UTF-8?q?ixed=20async=20communication=20blocking=20if=20results=20are=20?= =?UTF-8?q?returned=20in=20=20=20*=20Dropped=20deprecated=20PersistentConn?= =?UTF-8?q?ectionPool.=20Use=20=20=20*=20Binary=20packages=20no=20longer?= =?UTF-8?q?=20installed=20by=20default.=20The=20=20=20*=20Added=20Replicat?= =?UTF-8?q?ion=20protocol=20support=20(ticket=20#322).=20Main=20authors=20?= =?UTF-8?q?are=20=20=20*=20Added=20parse=5Fdsn()=20and=20make=5Fdsn()=20fu?= =?UTF-8?q?nctions=20(tickets=20#321,=20#363).=20connect()=20=20=20*=20Add?= =?UTF-8?q?ed=20=5F=5Flibpq=5Fversion=5F=5F=20and=20libpq=5Fversion()=20to?= =?UTF-8?q?=20inspect=20the=20version=20of=20the=20=20=20*=20The=20attribu?= =?UTF-8?q?tes=20notices=20and=20notifies=20can=20be=20customized=20replac?= =?UTF-8?q?ing=20them=20with=20=20=20*=20Adapt=20network=20types=20to=20ip?= =?UTF-8?q?address=20objects=20when=20available.=20When=20not=20enabled,?= =?UTF-8?q?=20=20=20=20=20convert=20arrays=20of=20network=20types=20to=20l?= =?UTF-8?q?ists=20by=20default.=20The=20old=20Inet=20adapter=20is=20=20=20?= =?UTF-8?q?*=20Give=20precedence=20to=20=5F=5Fconform=5F=5F()=20over=20sup?= =?UTF-8?q?erclasses=20to=20choose=20an=20object=20=20=20*=20Using=20Pytho?= =?UTF-8?q?n=20C=20API=20decoding=20functions=20and=20codecs=20caching=20f?= =?UTF-8?q?or=20faster=20=20=20*=20executemany()=20slowness=20addressed=20?= =?UTF-8?q?by=20execute=5Fbatch()=20and=20execute=5Fvalues()=20=20=20*=20A?= =?UTF-8?q?dded=20async=5F=20as=20an=20alias=20for=20async=20to=20support?= =?UTF-8?q?=20Python=203.7=20where=20async=20will=20=20=20*=20Unless=20in?= =?UTF-8?q?=20autocommit,=20do=20not=20use=20default=5Ftransaction=5F*=20s?= =?UTF-8?q?ettings=20to=20control=20=20=20=20=20the=20session=20characteri?= =?UTF-8?q?stics=20as=20it=20may=20create=20problems=20with=20external=20?= =?UTF-8?q?=20=20*=20isolation=5Flevel=20is=20now=20writable=20and=20entir?= =?UTF-8?q?ely=20separated=20from=20autocommit;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=91 --- psycopg2-2.9.6.tar.gz | 3 -- psycopg2-2.9.7.tar.gz | 3 ++ python-psycopg2.changes | 70 +++++++++++++++++++++++------------------ python-psycopg2.spec | 15 +++++---- 4 files changed, 49 insertions(+), 42 deletions(-) delete mode 100644 psycopg2-2.9.6.tar.gz create mode 100644 psycopg2-2.9.7.tar.gz diff --git a/psycopg2-2.9.6.tar.gz b/psycopg2-2.9.6.tar.gz deleted file mode 100644 index 4b79674..0000000 --- a/psycopg2-2.9.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f15158418fd826831b28585e2ab48ed8df2d0d98f502a2b4fe619e7d5ca29011 -size 383979 diff --git a/psycopg2-2.9.7.tar.gz b/psycopg2-2.9.7.tar.gz new file mode 100644 index 0000000..4c98d31 --- /dev/null +++ b/psycopg2-2.9.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f00cc35bd7119f1fed17b85bd1007855194dde2cbd8de01ab8ebb17487440ad8 +size 383496 diff --git a/python-psycopg2.changes b/python-psycopg2.changes index b6e78ec..aab6df4 100644 --- a/python-psycopg2.changes +++ b/python-psycopg2.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Sep 7 11:08:36 UTC 2023 - Dirk Müller + +- update to 2.9.7: + * Fix propagation of exceptions raised during module + initialization + * Fix building when pg_config returns an empty string + ------------------------------------------------------------------- Fri Apr 21 12:30:00 UTC 2023 - Dirk Müller @@ -19,7 +27,7 @@ Mon Apr 3 19:55:26 UTC 2023 - Dirk Müller ------------------------------------------------------------------- Fri Oct 28 19:56:31 UTC 2022 - Yogalakshmi Arunachalam -- Update to 2.9.5 +- Update to 2.9.5 * Add support for Python 3.11. * Add support for rowcount in MERGE statements in binary packages (ticket`#1497`). @@ -40,7 +48,7 @@ Fri Oct 28 19:56:31 UTC 2022 - Yogalakshmi Arunachalam Thu Dec 30 09:54:04 UTC 2021 - Dirk Müller - update to 2.9.3: - * Alpine (musl) wheels now available + * Alpine (musl) wheels now available ------------------------------------------------------------------- Mon Nov 29 10:57:15 UTC 2021 - Dirk Müller @@ -101,7 +109,7 @@ Tue May 19 06:16:56 UTC 2020 - Tomáš Chvátal ------------------------------------------------------------------- Thu Apr 23 16:13:29 UTC 2020 - Marcus Rueckert -- update to 2.8.5 +- update to 2.8.5 - Fixed use of connection_factory and cursor_factory together (ticket #1019). - Added support for logging.LoggerAdapter in LoggingConnection @@ -150,32 +158,32 @@ Thu Jul 4 15:02:11 UTC 2019 - Daniel Molkentin Tue Jun 4 15:36:23 UTC 2019 - Marketa Calabkova - Update to 2.8.3 - * Added interval_status parameter to start_replication() method - and other facilities to send automatic replication keepalives + * Added interval_status parameter to start_replication() method + and other facilities to send automatic replication keepalives at periodic intervals * Fixed RealDictCursor when there are repeated columns * Fixed RealDictRow modifiability - * Fixed “there’s no async cursor” error polling a connection with + * Fixed “there’s no async cursor” error polling a connection with no cursor 2.8.0 - * Added errors module. Every PostgreSQL error is converted into + * Added errors module. Every PostgreSQL error is converted into a specific exception class * Added encrypt_password() function - * Added BYTES adapter to manage databases with mixed encodings on + * Added BYTES adapter to manage databases with mixed encodings on Python 3 - * Added table_oid and table_column attributes on cursor.description + * Added table_oid and table_column attributes on cursor.description items - * Added connection.info object to retrieve various PostgreSQL + * Added connection.info object to retrieve various PostgreSQL connection information * str() on Range produces a human-readable representation - * Fixed async communication blocking if results are returned in + * Fixed async communication blocking if results are returned in different chunks * Fixed adaptation of numeric subclasses such as IntEnum * Dropped support for Python 2.6, 3.2, 3.3. * Dropped deprecated register_tstz_w_secs() - * Dropped deprecated PersistentConnectionPool. Use + * Dropped deprecated PersistentConnectionPool. Use ZPsycopgDA.pool instead. - * Binary packages no longer installed by default. The + * Binary packages no longer installed by default. The ‘psycopg2-binary’ package must be used explicitly. * Dropped PSYCOPG_DISPLAY_SIZE build parameter. @@ -286,32 +294,32 @@ Fri Jun 23 16:26:18 UTC 2017 - jmatejek@suse.com - convert to singlespec - update to 2.7.1 * Added sql module to generate SQL dynamically (ticket #308). - * Added Replication protocol support (ticket #322). Main authors are + * Added Replication protocol support (ticket #322). Main authors are Oleksandr Shulgin and Craig Ringer, who deserve a huge thank you. - * Added parse_dsn() and make_dsn() functions (tickets #321, #363). connect() + * Added parse_dsn() and make_dsn() functions (tickets #321, #363). connect() now can take both dsn and keyword arguments, merging them together. - * Added __libpq_version__ and libpq_version() to inspect the version of the + * Added __libpq_version__ and libpq_version() to inspect the version of the libpq library the module was compiled/loaded with (tickets #35, #323). - * The attributes notices and notifies can be customized replacing them with + * The attributes notices and notifies can be customized replacing them with any object exposing an append() method (ticket #326). - * Adapt network types to ipaddress objects when available. When not enabled, - convert arrays of network types to lists by default. The old Inet adapter is + * Adapt network types to ipaddress objects when available. When not enabled, + convert arrays of network types to lists by default. The old Inet adapter is deprecated (tickets #317, #343, #387). * Added quote_ident() function (ticket #359). * Added get_dsn_parameters() connection method (ticket #364). * callproc() now accepts a dictionary of parameters (ticket #381). - * Give precedence to __conform__() over superclasses to choose an object + * Give precedence to __conform__() over superclasses to choose an object adapter (ticket #456). - * Using Python C API decoding functions and codecs caching for faster + * Using Python C API decoding functions and codecs caching for faster unicode encoding/decoding (ticket #473). - * executemany() slowness addressed by execute_batch() and execute_values() + * executemany() slowness addressed by execute_batch() and execute_values() (ticket #491). - * Added async_ as an alias for async to support Python 3.7 where async will + * Added async_ as an alias for async to support Python 3.7 where async will become a keyword (ticket #495). - * Unless in autocommit, do not use default_transaction_* settings to control - the session characteristics as it may create problems with external + * Unless in autocommit, do not use default_transaction_* settings to control + the session characteristics as it may create problems with external connection pools such as pgbouncer; use BEGIN options instead (ticket #503). - * isolation_level is now writable and entirely separated from autocommit; + * isolation_level is now writable and entirely separated from autocommit; added readonly, deferrable writable attributes. * dropped support for python 2.5 and postgres client library < 9.1 * many bugs fixed @@ -479,7 +487,7 @@ Tue Apr 16 18:05:47 UTC 2013 - jfunk@funktronics.ca ------------------------------------------------------------------- Fri May 25 14:07:21 UTC 2012 - cfarrell@suse.com -- license update: LGPL-3.0+ and (LGPL-3.0+ or ZPL-2.0) and +- license update: LGPL-3.0+ and (LGPL-3.0+ or ZPL-2.0) and SUSE-GPL-2.0-with-openssl-exception See the COPYING file. There are GPL-2.0+ (with openssl linking exceptions for pgsql) in the package. Also, the ZPL option is only available for one @@ -489,7 +497,7 @@ Fri May 25 14:07:21 UTC 2012 - cfarrell@suse.com Fri May 25 05:32:01 UTC 2012 - highwaystar.ru@gmail.com - python3 package added -- minor spec improvement +- minor spec improvement ------------------------------------------------------------------- Fri Apr 6 19:05:14 UTC 2012 - jfunk@funktronics.ca @@ -615,8 +623,8 @@ Wed Oct 27 02:43:22 UTC 2010 - termim@gmail.com * the call to logging.basicConfig() in pool.py has been dropped: it was messing with some projects using logging (and a library should not initialize the logging system anyway.) - * psycopg now correctly handles time zones with seconds in the - UTC offset. The old register_tstz_w_secs() function is deprecated + * psycopg now correctly handles time zones with seconds in the + UTC offset. The old register_tstz_w_secs() function is deprecated and will raise a warning if called. * Exceptions raised by the column iterator are propagated. * Exceptions raised by executemany() interators are propagated. @@ -674,7 +682,7 @@ Wed Nov 5 11:57:40 CET 2008 - poeml@suse.de Wed Jun 13 07:56:02 UTC 2007 - judas_iscariote@shorewall.net - Update to version 2.0.6 see http://initd.org/pub/software/psycopg/ChangeLog - for details. + for details. ------------------------------------------------------------------- Wed Oct 19 00:00:00 UTC 2005 - jfunk@funktronics.ca diff --git a/python-psycopg2.spec b/python-psycopg2.spec index 8f26b3f..536c358 100644 --- a/python-psycopg2.spec +++ b/python-psycopg2.spec @@ -16,18 +16,17 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-psycopg2 -Version: 2.9.6 +Version: 2.9.7 Release: 0 Summary: Python-PostgreSQL Database Adapter License: LGPL-3.0-or-later AND (LGPL-3.0-or-later OR ZPL-2.0) AND SUSE-GPL-2.0-with-openssl-exception -URL: http://initd.org/psycopg/ +URL: https://www.psycopg.org/ Source: https://files.pythonhosted.org/packages/source/p/psycopg2/psycopg2-%{version}.tar.gz BuildRequires: %{python_module devel >= 3.6} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros # newer postgresql packages pg_config in -server-devel @@ -56,10 +55,10 @@ for coroutine libraries. %build export CFLAGS="%{optflags} -fno-strict-aliasing" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand rm -rf %{buildroot}%{$python_sitearch}/psycopg2/tests # Don't package testsuite %fdupes %{buildroot}/%{_mandir} # Create symlinks for man pages %python_expand %fdupes %{buildroot}%{$python_sitearch} @@ -72,6 +71,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %license LICENSE %doc AUTHORS NEWS README.rst %{python_sitearch}/psycopg2/ -%{python_sitearch}/psycopg2-%{version}-py%{python_version}.egg-info +%{python_sitearch}/psycopg2-%{version}*-info %changelog