14
0
forked from pool/python-tblib

Accepting request 700983 from home:pgajdos

- version update to 1.4.0
  * Remove support for end of life Python 3.3.
  * Fixed tests for Python 3.7. Contributed by Elliott Sales de Andrade in
    `#36 <https://github.com/ionelmc/python-tblib/issues/36>`_.
  * Fixed compatibility issue with Twised (``twisted.python.failure.Failure``
    expected a ``co_code`` attribute).
- deleted patches
  - 0001-Patch-tests-against-Python-3.7.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/700983
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tblib?expand=0&rev=8
This commit is contained in:
Tomáš Chvátal
2019-05-06 08:11:34 +00:00
committed by Git OBS Bridge
parent 6022fcd26c
commit 2e64fc9c76
5 changed files with 18 additions and 44 deletions

View File

@@ -18,15 +18,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tblib
Version: 1.3.2
Version: 1.4.0
Release: 0
Summary: Traceback serialization library
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://github.com/ionelmc/python-tblib
Source: https://files.pythonhosted.org/packages/source/t/tblib/tblib-%{version}.tar.gz
# https://github.com/ionelmc/python-tblib/issues/36
Patch0: https://src.fedoraproject.org/rpms/python-tblib/raw/master/f/0001-Patch-tests-against-Python-3.7.patch
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
@@ -58,7 +57,6 @@ the pickle support.
%prep
%setup -q -n tblib-%{version}
%patch0 -p1
%build
%python_build
@@ -68,9 +66,7 @@ the pickle support.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%{python_expand export PYTHONPATH=tests:%{buildroot}%{$python_sitelib}
$python -m pytest README.rst
}
%pytest
%files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst