Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-psycopg2 for openSUSE:Factory
checked in at 2021-12-30 15:55:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-psycopg2 (Old)
and /work/SRC/openSUSE:Factory/.python-psycopg2.new.1896 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-psycopg2"
Thu Dec 30 15:55:40 2021 rev:40 rq:943182 version:2.9.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-psycopg2/python-psycopg2.changes
2021-12-02 02:24:02.012863120 +0100
+++
/work/SRC/openSUSE:Factory/.python-psycopg2.new.1896/python-psycopg2.changes
2021-12-30 15:56:07.036686774 +0100
@@ -1,0 +2,6 @@
+Thu Dec 30 09:54:04 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 2.9.3:
+ * Alpine (musl) wheels now available
+
+-------------------------------------------------------------------
Old:
----
psycopg2-2.9.2.tar.gz
New:
----
psycopg2-2.9.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-psycopg2.spec ++++++
--- /var/tmp/diff_new_pack.ZQtReE/_old 2021-12-30 15:56:07.680687271 +0100
+++ /var/tmp/diff_new_pack.ZQtReE/_new 2021-12-30 15:56:07.684687274 +0100
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-psycopg2
-Version: 2.9.2
+Version: 2.9.3
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
++++++ psycopg2-2.9.2.tar.gz -> psycopg2-2.9.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/NEWS new/psycopg2-2.9.3/NEWS
--- old/psycopg2-2.9.2/NEWS 2021-11-12 01:02:18.000000000 +0100
+++ new/psycopg2-2.9.3/NEWS 2021-12-29 13:51:56.000000000 +0100
@@ -1,6 +1,12 @@
Current release
---------------
+What's new in psycopg 2.9.3
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Alpine (musl) wheels now available (:ticket:`#1148`).
+
+
What's new in psycopg 2.9.2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/PKG-INFO new/psycopg2-2.9.3/PKG-INFO
--- old/psycopg2-2.9.2/PKG-INFO 2021-11-12 01:02:18.751813400 +0100
+++ new/psycopg2-2.9.3/PKG-INFO 2021-12-29 13:51:57.495733500 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: psycopg2
-Version: 2.9.2
+Version: 2.9.3
Summary: psycopg2 - Python-PostgreSQL Database Adapter
Home-page: https://psycopg.org/
Author: Federico Di Gregorio
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/doc/src/usage.rst
new/psycopg2-2.9.3/doc/src/usage.rst
--- old/psycopg2-2.9.2/doc/src/usage.rst 2021-11-12 01:02:18.000000000
+0100
+++ new/psycopg2-2.9.3/doc/src/usage.rst 2021-12-29 13:51:56.000000000
+0100
@@ -1052,7 +1052,7 @@
(`~connection.server_version` must be >= ``90300``).
If Psycopg was built with 64 bits large objects support (i.e. the first
- two contidions above are verified), the `psycopg2.__version__` constant
+ two conditions above are verified), the `psycopg2.__version__` constant
will contain the ``lo64`` flag. If any of the contition is not met
several `!lobject` methods will fail if the arguments exceed 2GB.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/psycopg/libpq_support.c
new/psycopg2-2.9.3/psycopg/libpq_support.c
--- old/psycopg2-2.9.2/psycopg/libpq_support.c 2021-11-12 01:02:18.000000000
+0100
+++ new/psycopg2-2.9.3/psycopg/libpq_support.c 2021-12-29 13:51:56.000000000
+0100
@@ -38,6 +38,7 @@
#include "psycopg/win32_support.h"
#else
#include <arpa/inet.h>
+#include <sys/time.h>
#endif
/* support routines taken from pg_basebackup/streamutil.c */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/psycopg/replication_cursor_type.c
new/psycopg2-2.9.3/psycopg/replication_cursor_type.c
--- old/psycopg2-2.9.2/psycopg/replication_cursor_type.c 2021-11-12
01:02:18.000000000 +0100
+++ new/psycopg2-2.9.3/psycopg/replication_cursor_type.c 2021-12-29
13:51:56.000000000 +0100
@@ -34,6 +34,9 @@
#include <string.h>
#include <stdlib.h>
+#ifndef _WIN32
+#include <sys/time.h>
+#endif
/* python */
#include "datetime.h"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/psycopg/typecast_datetime.c
new/psycopg2-2.9.3/psycopg/typecast_datetime.c
--- old/psycopg2-2.9.2/psycopg/typecast_datetime.c 2021-11-12
01:02:18.000000000 +0100
+++ new/psycopg2-2.9.3/psycopg/typecast_datetime.c 2021-12-29
13:51:56.000000000 +0100
@@ -103,7 +103,7 @@
goto exit;
}
-#if PY_VERSION_HEX < 0x03070000
+#if defined(PYPY_VERSION) || PY_VERSION_HEX < 0x03070000
{
PyObject *tzoff;
if (!(tzoff = PyDelta_FromDSU(0, 0, 0))) { goto exit; }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/psycopg2.egg-info/PKG-INFO
new/psycopg2-2.9.3/psycopg2.egg-info/PKG-INFO
--- old/psycopg2-2.9.2/psycopg2.egg-info/PKG-INFO 2021-11-12
01:02:18.000000000 +0100
+++ new/psycopg2-2.9.3/psycopg2.egg-info/PKG-INFO 2021-12-29
13:51:57.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: psycopg2
-Version: 2.9.2
+Version: 2.9.3
Summary: psycopg2 - Python-PostgreSQL Database Adapter
Home-page: https://psycopg.org/
Author: Federico Di Gregorio
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/psycopg2.egg-info/SOURCES.txt
new/psycopg2-2.9.3/psycopg2.egg-info/SOURCES.txt
--- old/psycopg2-2.9.2/psycopg2.egg-info/SOURCES.txt 2021-11-12
01:02:18.000000000 +0100
+++ new/psycopg2-2.9.3/psycopg2.egg-info/SOURCES.txt 2021-12-29
13:51:57.000000000 +0100
@@ -140,6 +140,7 @@
scripts/build/build_macos.sh
scripts/build/build_manylinux2014.sh
scripts/build/build_manylinux_2_24.sh
+scripts/build/build_musllinux_1_1.sh
scripts/build/build_sdist.sh
scripts/build/download_packages_appveyor.py
scripts/build/download_packages_github.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/scripts/build/build_musllinux_1_1.sh
new/psycopg2-2.9.3/scripts/build/build_musllinux_1_1.sh
--- old/psycopg2-2.9.2/scripts/build/build_musllinux_1_1.sh 1970-01-01
01:00:00.000000000 +0100
+++ new/psycopg2-2.9.3/scripts/build/build_musllinux_1_1.sh 2021-12-29
13:51:56.000000000 +0100
@@ -0,0 +1,68 @@
+#!/bin/bash
+
+# Create musllinux_1_1 wheels for psycopg2
+#
+# Look at the .github/workflows/packages.yml file for hints about how to use
it.
+
+set -euo pipefail
+set -x
+
+dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+prjdir="$( cd "${dir}/../.." && pwd )"
+
+# Build all the available versions, or just the ones specified in PYVERS
+if [ ! "${PYVERS:-}" ]; then
+ PYVERS="$(ls /opt/python/)"
+fi
+
+# Find psycopg version
+version=$(grep -e ^PSYCOPG_VERSION "${prjdir}/setup.py" | sed
"s/.*'\(.*\)'/\1/")
+# A gratuitous comment to fix broken vim syntax file: '")
+distdir="${prjdir}/dist/psycopg2-$version"
+
+# Replace the package name
+if [[ "${PACKAGE_NAME:-}" ]]; then
+ sed -i "s/^setup(name=\"psycopg2\"/setup(name=\"${PACKAGE_NAME}\"/" \
+ "${prjdir}/setup.py"
+fi
+
+# Install prerequisite libraries
+apk update
+apk add postgresql-dev
+# Add findutils because the Busybox version lacks the `-ls` flag, used by the
+# `strip_wheel.sh` script.
+apk add findutils
+
+# Create the wheel packages
+for pyver in $PYVERS; do
+ pybin="/opt/python/${pyver}/bin"
+ "${pybin}/python" -m build -w -o "${prjdir}/dist/" "${prjdir}"
+done
+
+# Bundle external shared libraries into the wheels
+for whl in "${prjdir}"/dist/*.whl; do
+ "${dir}/strip_wheel.sh" "$whl"
+ auditwheel repair "$whl" -w "$distdir"
+done
+
+# Make sure the postgresql-dev is not in the system
+apk del postgresql-dev
+
+# Install packages and test
+cd "${prjdir}"
+for pyver in $PYVERS; do
+ pybin="/opt/python/${pyver}/bin"
+ "${pybin}/pip" install ${PACKAGE_NAME:-psycopg2} --no-index -f "$distdir"
+
+ # Print psycopg and libpq versions
+ "${pybin}/python" -c "import psycopg2; print(psycopg2.__version__)"
+ "${pybin}/python" -c "import psycopg2; print(psycopg2.__libpq_version__)"
+ "${pybin}/python" -c "import psycopg2;
print(psycopg2.extensions.libpq_version())"
+
+ # Fail if we are not using the expected libpq library
+ if [[ "${WANT_LIBPQ:-}" ]]; then
+ "${pybin}/python" -c "import psycopg2, sys; sys.exit(${WANT_LIBPQ} !=
psycopg2.extensions.libpq_version())"
+ fi
+
+ "${pybin}/python" -c "import tests;
tests.unittest.main(defaultTest='tests.test_suite')"
+done
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/psycopg2-2.9.2/scripts/build/download_packages_appveyor.py
new/psycopg2-2.9.3/scripts/build/download_packages_appveyor.py
--- old/psycopg2-2.9.2/scripts/build/download_packages_appveyor.py
2021-11-12 01:02:18.000000000 +0100
+++ new/psycopg2-2.9.3/scripts/build/download_packages_appveyor.py
2021-12-29 13:51:56.000000000 +0100
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-"""Download packages from github actions artifacts
+"""Download packages from appveyor artifacts
"""
import os
@@ -76,7 +76,7 @@
)
resp.raise_for_status()
if not dest.parent.exists():
- dest.parent.mkdir()
+ dest.parent.mkdir(parents=True)
with dest.open("wb") as f:
f.write(resp.content)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/psycopg2-2.9.2/scripts/build/download_packages_github.py
new/psycopg2-2.9.3/scripts/build/download_packages_github.py
--- old/psycopg2-2.9.2/scripts/build/download_packages_github.py
2021-11-12 01:02:18.000000000 +0100
+++ new/psycopg2-2.9.3/scripts/build/download_packages_github.py
2021-12-29 13:51:56.000000000 +0100
@@ -60,7 +60,7 @@
dest = Path("packages")
if not dest.exists():
logger.info(f"creating dir {dest}")
- dest.mkdir()
+ dest.mkdir(parents=True)
for artifact in artifacts:
logger.info(f"downloading {artifact['name']} archive")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/psycopg2-2.9.2/setup.py new/psycopg2-2.9.3/setup.py
--- old/psycopg2-2.9.2/setup.py 2021-11-12 01:02:18.000000000 +0100
+++ new/psycopg2-2.9.3/setup.py 2021-12-29 13:51:57.000000000 +0100
@@ -44,7 +44,7 @@
# Take a look at https://www.python.org/dev/peps/pep-0440/
# for a consistent versioning pattern.
-PSYCOPG_VERSION = '2.9.2'
+PSYCOPG_VERSION = '2.9.3'
# note: if you are changing the list of supported Python version please fix