Accepting request 757222 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/757222
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tblib?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2019-12-23 21:40:00 +00:00 committed by Git OBS Bridge
commit c4fcdfab2d
5 changed files with 51 additions and 11 deletions

3
_multibuild Normal file
View File

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

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Sun Dec 15 16:02:49 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Move the Twisted test out of the main package to avoid the
Twisted dependency chain.
-------------------------------------------------------------------
Sun Dec 15 15:34:21 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- version update to 1.6.0
* When pickling an Exception, also pickle its traceback and the Exception
chain (raise ... from ...). Contributed by Guido Imperiale in #53.
- version update to 1.5.0
* Added support for Python 3.8. Contributed by Victor Stinner in #42.
* Removed support for end of life Python 3.4.
* Few CI improvements and fixes.
-------------------------------------------------------------------
Mon May 6 07:56:48 UTC 2019 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-tblib
# spec file for package python
#
# 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
@ -17,20 +17,34 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tblib
Version: 1.4.0
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%bcond_without test
%bcond_without test_twisted
%define psuffix -test
%else
%bcond_without test
%bcond_with test_twisted
%endif
Name: python-tblib%{?psuffix}
Version: 1.6.0
Release: 0
Summary: Traceback serialization library
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://github.com/ionelmc/python-tblib
URL: https://github.com/ionelmc/python-tblib
Source: https://files.pythonhosted.org/packages/source/t/tblib/tblib-%{version}.tar.gz
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test_twisted}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module tblib == %{version}}
%endif
%if %{with test}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
%endif
Requires: python-six
BuildArch: noarch
@ -62,15 +76,21 @@ the pickle support.
%python_build
%install
%if "%{flavor}" != "test"
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%pytest
%endif
%if "%{flavor}" != "test"
%files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst
%license LICENSE
%{python_sitelib}/*
%endif
%changelog

View File

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

3
tblib-1.6.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:229bee3754cb5d98b4837dd5c4405e80cfab57cb9f93220410ad367f8b352344
size 31450