forked from pool/python-zope.exceptions
Accepting request 691714 from home:mcalabkova:branches:devel:languages:python
- update to version 4.3
* Add support for Python 3.6 and 3.7.
* Drop support for Python 3.3.
* Fix handling of unicode supplemental traceback information on
Python 2.
- drop *-doc subpackage, use multibuild instead
OBS-URL: https://build.opensuse.org/request/show/691714
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.exceptions?expand=0&rev=17
This commit is contained in:
committed by
Git OBS Bridge
parent
cf638e8c63
commit
d851925c9d
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zope.exceptions
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,8 +17,16 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-zope.exceptions
|
||||
Version: 4.1.0
|
||||
%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.exceptions%{psuffix}
|
||||
Version: 4.3
|
||||
Release: 0
|
||||
Summary: Zope Exceptions
|
||||
License: ZPL-2.1
|
||||
@@ -29,7 +37,14 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-zope.interface
|
||||
Obsoletes: %{name}-doc
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module zope.exceptions}
|
||||
BuildRequires: %{python_module zope.interface}
|
||||
BuildRequires: %{python_module zope.testrunner}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -46,6 +61,11 @@ general purpose that they don't belong in Zope application-specific packages.
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_expand %{_bindir}/zope-testrunner-%{$python_bin_suffix} -vvv --test-path src
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
||||
|
||||
Reference in New Issue
Block a user