From 578974d99dfc48951bc8f2babfab0c345f8d85c6e59a5d10d84665f742f84545 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 16 Oct 2021 09:41:50 +0000 Subject: [PATCH] Accepting request 925055 from home:pgajdos:python - update to version 5.1.0 - Add support for Python 3.9. - Create Linux aarch64 wheels. - %check: use %pyunittest rpm macro - added sources + _multibuild OBS-URL: https://build.opensuse.org/request/show/925055 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.hookable?expand=0&rev=17 --- _multibuild | 3 +++ python-zope.hookable.changes | 14 ++++++++++++++ python-zope.hookable.spec | 32 +++++++++++++++++++++++++++----- zope.hookable-5.0.1.tar.gz | 3 --- zope.hookable-5.1.0.tar.gz | 3 +++ 5 files changed, 47 insertions(+), 8 deletions(-) create mode 100644 _multibuild delete mode 100644 zope.hookable-5.0.1.tar.gz create mode 100644 zope.hookable-5.1.0.tar.gz diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-zope.hookable.changes b/python-zope.hookable.changes index 160431a..4803b7f 100644 --- a/python-zope.hookable.changes +++ b/python-zope.hookable.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Wed Oct 13 09:21:27 UTC 2021 - pgajdos@suse.com + +- update to version 5.1.0 + - Add support for Python 3.9. + - Create Linux aarch64 wheels. + +------------------------------------------------------------------- +Wed Oct 13 08:29:25 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro +- added sources + + _multibuild + ------------------------------------------------------------------- Wed Apr 8 12:14:59 UTC 2020 - Tomáš Chvátal diff --git a/python-zope.hookable.spec b/python-zope.hookable.spec index 6047b1d..5418a15 100644 --- a/python-zope.hookable.spec +++ b/python-zope.hookable.spec @@ -1,7 +1,7 @@ # -# spec file for package python-zope.hookable +# spec file # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -18,8 +18,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-zope.hookable -Version: 5.0.1 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-zope.hookable%{psuffix} +Version: 5.1.0 Release: 0 Summary: Zope hookable License: ZPL-2.1 @@ -33,7 +41,10 @@ BuildRequires: python-rpm-macros BuildRequires: %{python_module Sphinx} # /SECTION # SECTION testing requirements +%if %{with test} +BuildRequires: %{python_module zope.hookable} BuildRequires: %{python_module zope.testing} +%endif # /SECTION %python_subpackages @@ -60,24 +71,35 @@ This package contains documentation files for %{name}. rm -rf zope.hookable.egg-info %build +%if !%{with test} %python_build python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo build/sphinx/html/objects.inv +%endif %install +%if !%{with test} %python_install %{python_expand rm -f %{buildroot}%{$python_sitearch}/zope/hookable/_zope_hookable.c %fdupes %{buildroot}%{$python_sitearch} } +%endif %check -%python_exec setup.py test +%if %{with test} +pushd src +%pyunittest 'zope.hookable.tests.test_hookable.test_suite' +%endif +%if !%{with test} %files %{python_files} %license LICENSE.txt %doc CHANGES.rst COPYRIGHT.txt README.rst %{python_sitearch}/* +%endif +%if !%{with test} %files -n %{name}-doc %doc build/sphinx/html/ +%endif %changelog diff --git a/zope.hookable-5.0.1.tar.gz b/zope.hookable-5.0.1.tar.gz deleted file mode 100644 index 043056f..0000000 --- a/zope.hookable-5.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:29d07681a78042cdd15b268ae9decffed9ace68a53eebeb61d65ae931d158841 -size 24401 diff --git a/zope.hookable-5.1.0.tar.gz b/zope.hookable-5.1.0.tar.gz new file mode 100644 index 0000000..57bff7d --- /dev/null +++ b/zope.hookable-5.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8fc3e6cd0486c6af48e3317c299def719b57538332a194e0b3bc6a772f4faa0e +size 21922