From 95885b80b724f2c2c7f338f040b921485e62523d4bf37a0a9bff861aaca33562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 7 Jul 2020 07:48:28 +0000 Subject: [PATCH] Accepting request 819015 from home:mslacken:ml - updated to version 2.5.0 and running the internal unit tests now OBS-URL: https://build.opensuse.org/request/show/819015 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=19 --- pybind11-2.4.3.tar.gz | 3 --- pybind11-2.5.0.tar.gz | 3 +++ python-pybind11.changes | 5 +++++ python-pybind11.spec | 16 +++++++++++++--- 4 files changed, 21 insertions(+), 6 deletions(-) delete mode 100644 pybind11-2.4.3.tar.gz create mode 100644 pybind11-2.5.0.tar.gz diff --git a/pybind11-2.4.3.tar.gz b/pybind11-2.4.3.tar.gz deleted file mode 100644 index 403e5b1..0000000 --- a/pybind11-2.4.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1eed57bc6863190e35637290f97a20c81cfe4d9090ac0a24f3bbf08f265eb71d -size 571127 diff --git a/pybind11-2.5.0.tar.gz b/pybind11-2.5.0.tar.gz new file mode 100644 index 0000000..da5b380 --- /dev/null +++ b/pybind11-2.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97504db65640570f32d3fdf701c25a340c8643037c3b69aec469c10c93dc8504 +size 573769 diff --git a/python-pybind11.changes b/python-pybind11.changes index d4eb176..de29951 100644 --- a/python-pybind11.changes +++ b/python-pybind11.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 6 14:56:54 UTC 2020 - Christian Goll + +- updated to version 2.5.0 and running the internal unit tests now + ------------------------------------------------------------------- Thu Apr 23 10:05:00 UTC 2020 - Tomáš Chvátal diff --git a/python-pybind11.spec b/python-pybind11.spec index ca24568..0c15fec 100644 --- a/python-pybind11.spec +++ b/python-pybind11.spec @@ -18,13 +18,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pybind11 -Version: 2.4.3 +Version: 2.5.0 Release: 0 Summary: Module for operability between C++11 and Python License: BSD-3-Clause URL: https://github.com/pybind/pybind11 Source: https://github.com/pybind/pybind11/archive/v%{version}.tar.gz#/pybind11-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: cmake @@ -63,7 +64,10 @@ This package contains files for developing applications using pybind11. %python_build # calling cmake to install header to right location and # generate cmake include files -%cmake +%cmake \ + -DPYBIND11_INSTALL=ON \ + -DPYBIND11_TEST=ON \ + %cmake_build %install @@ -74,10 +78,16 @@ This package contains files for developing applications using pybind11. rm -rfv %{buildroot}%{_includedir}/python2.*/pybind11/ rm -rfv %{buildroot}%{_includedir}/python3.*/pybind11 +#%%check +# test fails as python3-widget is not in distribuion +rm tests/test_embed/test_interpreter.py +%pytest + %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pybind11* +%exclude %{python_sitelib}/pybind11/include %files -n %{name}-common-devel %{_includedir}/pybind11