Hello community,
here is the log from the commit of package python-pybind11 for openSUSE:Factory
checked in at 2019-12-29 15:48:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pybind11 (Old)
and /work/SRC/openSUSE:Factory/.python-pybind11.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pybind11"
Sun Dec 29 15:48:26 2019 rev:4 rq:759292 version:2.4.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pybind11/python-pybind11.changes
2019-10-10 11:53:02.335385944 +0200
+++
/work/SRC/openSUSE:Factory/.python-pybind11.new.6675/python-pybind11.changes
2019-12-29 15:48:32.555144631 +0100
@@ -1,0 +2,6 @@
+Sat Dec 21 15:51:16 UTC 2019 - Luigi Baldoni <[email protected]>
+
+- Update to version 2.4.3
+ * Adapt pybind11 to a C API convention change in Python 3.8.
+
+-------------------------------------------------------------------
Old:
----
pybind11-2.4.2.tar.gz
New:
----
pybind11-2.4.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pybind11.spec ++++++
--- /var/tmp/diff_new_pack.2nqy0L/_old 2019-12-29 15:48:33.151144903 +0100
+++ /var/tmp/diff_new_pack.2nqy0L/_new 2019-12-29 15:48:33.155144905 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pybind11
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pybind11
-Version: 2.4.2
+Version: 2.4.3
Release: 0
Summary: Module for operability between C++11 and Python
License: BSD-3-Clause
++++++ pybind11-2.4.2.tar.gz -> pybind11-2.4.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pybind11-2.4.2/.travis.yml
new/pybind11-2.4.3/.travis.yml
--- old/pybind11-2.4.2/.travis.yml 2019-09-21 20:20:26.000000000 +0200
+++ new/pybind11-2.4.3/.travis.yml 2019-10-15 01:57:24.000000000 +0200
@@ -61,7 +61,7 @@
- os: linux
dist: trusty
env: PYTHON=2.7 CPP=14 GCC=6 CMAKE=1
- name: Python 2.7, c++14, gcc 4.8, CMake test
+ name: Python 2.7, c++14, gcc 6, CMake test
addons:
apt:
sources:
@@ -106,6 +106,33 @@
- lld-7
- libc++-7-dev
- libc++abi-7-dev # Why is this necessary???
+ - os: linux
+ dist: xenial
+ env: PYTHON=3.8 CPP=17 GCC=7
+ name: Python 3.8, c++17, gcc 7 (w/o numpy/scipy) # TODO: update build name
when the numpy/scipy wheels become available
+ addons:
+ apt:
+ sources:
+ - deadsnakes
+ - ubuntu-toolchain-r-test
+ packages:
+ - g++-7
+ - python3.8-dev
+ - python3.8-venv
+ # Currently there is no numpy/scipy wheels available for python3.8
+ # TODO: remove next before_install, install and script clause when the
wheels become available
+ before_install:
+ - pyenv global $(pyenv whence 2to3) # activate all python versions
+ - PY_CMD=python3
+ - $PY_CMD -m pip install --user --upgrade pip wheel setuptools
+ install:
+ - $PY_CMD -m pip install --user --upgrade pytest
+ script:
+ - |
+ # Barebones build
+ cmake -DCMAKE_BUILD_TYPE=Debug -DPYBIND11_WERROR=ON
-DDOWNLOAD_CATCH=ON -DPYTHON_EXECUTABLE=$(which $PY_CMD) .
+ make pytest -j 2
+ make cpptest -j 2
- os: osx
name: Python 2.7, c++14, AppleClang 7.3, CMake test
osx_image: xcode7.3
@@ -130,7 +157,7 @@
dist: trusty
services: docker
env: DOCKER=i386/debian:stretch PYTHON=3.5 CPP=14 GCC=6 INSTALL=1
- name: Python 3.4, c++14, gcc 6, 32-bit
+ name: Python 3.5, c++14, gcc 6, 32-bit
script:
- |
# Consolidated 32-bit Docker Build + Install
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pybind11-2.4.2/docs/changelog.rst
new/pybind11-2.4.3/docs/changelog.rst
--- old/pybind11-2.4.2/docs/changelog.rst 2019-09-21 20:20:26.000000000
+0200
+++ new/pybind11-2.4.3/docs/changelog.rst 2019-10-15 01:57:24.000000000
+0200
@@ -6,6 +6,12 @@
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
<http://semver.org>`_ policy.
+v2.4.3 (Oct 15, 2019)
+-----------------------------------------------------
+
+* Adapt pybind11 to a C API convention change in Python 3.8. `#1950
+ <https://github.com/pybind/pybind11/pull/1950>`_.
+
v2.4.2 (Sep 21, 2019)
-----------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pybind11-2.4.2/docs/conf.py
new/pybind11-2.4.3/docs/conf.py
--- old/pybind11-2.4.2/docs/conf.py 2019-09-21 20:20:26.000000000 +0200
+++ new/pybind11-2.4.3/docs/conf.py 2019-10-15 01:57:24.000000000 +0200
@@ -63,7 +63,7 @@
# The short X.Y version.
version = '2.4'
# The full version, including alpha/beta/rc tags.
-release = '2.4.2'
+release = '2.4.3'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pybind11-2.4.2/docs/release.rst
new/pybind11-2.4.3/docs/release.rst
--- old/pybind11-2.4.2/docs/release.rst 2019-09-21 20:20:26.000000000 +0200
+++ new/pybind11-2.4.3/docs/release.rst 2019-10-15 01:57:24.000000000 +0200
@@ -13,10 +13,6 @@
- ``git push --tags``.
- ``python setup.py sdist upload``.
- ``python setup.py bdist_wheel upload``.
-- Update conda-forge (https://github.com/conda-forge/pybind11-feedstock) via PR
- - download release package from Github: ``wget
https://github.com/pybind/pybind11/archive/vX.Y.Z.tar.gz``
- - compute checksum: ``shasum -a 256 vX.Y.Z.tar.gz``
- - change version number and checksum in ``recipe/meta.yml``
- Get back to work
- Update ``_version.py`` (add 'dev' and increment minor).
- Update version in ``docs/conf.py``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pybind11-2.4.2/include/pybind11/detail/class.h
new/pybind11-2.4.3/include/pybind11/detail/class.h
--- old/pybind11-2.4.2/include/pybind11/detail/class.h 2019-09-21
20:20:26.000000000 +0200
+++ new/pybind11-2.4.3/include/pybind11/detail/class.h 2019-10-15
01:57:24.000000000 +0200
@@ -350,6 +350,7 @@
auto type = Py_TYPE(self);
type->tp_free(self);
+#if PY_VERSION_HEX < 0x03080000
// `type->tp_dealloc != pybind11_object_dealloc` means that we're being
called
// as part of a derived type's dealloc, in which case we're not allowed to
decref
// the type here. For cross-module compatibility, we shouldn't compare
directly
@@ -357,6 +358,11 @@
auto pybind11_object_type = (PyTypeObject *) get_internals().instance_base;
if (type->tp_dealloc == pybind11_object_type->tp_dealloc)
Py_DECREF(type);
+#else
+ // This was not needed before Python 3.8 (Python issue 35810)
+ // https://github.com/pybind/pybind11/issues/1946
+ Py_DECREF(type);
+#endif
}
/** Create the type which can be used as a common base for all classes. This
is
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pybind11-2.4.2/include/pybind11/detail/common.h
new/pybind11-2.4.3/include/pybind11/detail/common.h
--- old/pybind11-2.4.2/include/pybind11/detail/common.h 2019-09-21
20:20:26.000000000 +0200
+++ new/pybind11-2.4.3/include/pybind11/detail/common.h 2019-10-15
01:57:24.000000000 +0200
@@ -94,7 +94,7 @@
#define PYBIND11_VERSION_MAJOR 2
#define PYBIND11_VERSION_MINOR 4
-#define PYBIND11_VERSION_PATCH 2
+#define PYBIND11_VERSION_PATCH 3
/// Include Python header, disable linking to pythonX_d.lib on Windows in
debug mode
#if defined(_MSC_VER)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pybind11-2.4.2/pybind11/_version.py
new/pybind11-2.4.3/pybind11/_version.py
--- old/pybind11-2.4.2/pybind11/_version.py 2019-09-21 20:20:26.000000000
+0200
+++ new/pybind11-2.4.3/pybind11/_version.py 2019-10-15 01:57:24.000000000
+0200
@@ -1,2 +1,2 @@
-version_info = (2, 4, 2)
+version_info = (2, 4, 3)
__version__ = '.'.join(map(str, version_info))