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
This commit is contained in:
Dirk Mueller 2021-10-16 09:41:50 +00:00 committed by Git OBS Bridge
parent 6803fd908c
commit 578974d99d
5 changed files with 47 additions and 8 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -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 <tchvatal@suse.com>

View File

@ -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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29d07681a78042cdd15b268ae9decffed9ace68a53eebeb61d65ae931d158841
size 24401

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8fc3e6cd0486c6af48e3317c299def719b57538332a194e0b3bc6a772f4faa0e
size 21922