forked from pool/python-tblib
Accepting request 1177690 from home:mcalabkova:branches:devel:languages:python
- Update to 3.0.0 * Removed support for legacy Pythons (2.7 up to 3.7) and added Pythons 3.11 and 3.12 in the test grid. * Added support for __context__, __suppress_context__ and __notes__. * Added the get_locals argument to tblib.pickling_support.install(), tblib.Traceback and tblib.Frame. - Add vendore-reraise-from-six.patch to get rid of six - Add more-aggressive-location-stripping.patch to fix test failure - Standardize multibuild OBS-URL: https://build.opensuse.org/request/show/1177690 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tblib?expand=0&rev=16
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python
|
||||
# spec file for package python-tblib
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,34 +18,33 @@
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -%{flavor}
|
||||
%bcond_without test
|
||||
%bcond_without test_twisted
|
||||
%define psuffix -test
|
||||
%else
|
||||
%bcond_without test
|
||||
%bcond_with test_twisted
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-tblib%{?psuffix}
|
||||
Version: 1.7.0
|
||||
Version: 3.0.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
|
||||
# PATCH-FIX-UPSTREAM https://github.com/ionelmc/python-tblib/pull/77 vendore reraise() from six
|
||||
Patch: vendore-reraise-from-six.patch
|
||||
# PATCH-FIX-UPSTREAM https://github.com/ionelmc/python-tblib/issues/74 More aggressive location stripping. Ref #74.
|
||||
Patch: more-aggressive-location-stripping.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test_twisted}
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Twisted}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module tblib == %{version}}
|
||||
%endif
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module six}
|
||||
%endif
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@@ -70,13 +69,13 @@ are solely responsible for security problems should you decide to use
|
||||
the pickle support.
|
||||
|
||||
%prep
|
||||
%setup -q -n tblib-%{version}
|
||||
%autosetup -p1 -n tblib-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if "%{flavor}" != "test"
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
@@ -86,11 +85,12 @@ the pickle support.
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" != "test"
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/tblib
|
||||
%{python_sitelib}/tblib-%{version}*-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user