From 439811d34900ac610c67c771e685bda68dd44509fa927b16dc094e8de495c1f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:12:55 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-tblib revision f049d1a398adca3be13291ee98e3b41f --- .gitattributes | 23 +++++++++++ _multibuild | 3 ++ python-tblib.changes | 58 ++++++++++++++++++++++++++ python-tblib.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++ tblib-1.7.0.tar.gz | 3 ++ 5 files changed, 183 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 python-tblib.changes create mode 100644 python-tblib.spec create mode 100644 tblib-1.7.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-tblib.changes b/python-tblib.changes new file mode 100644 index 0000000..2467d74 --- /dev/null +++ b/python-tblib.changes @@ -0,0 +1,58 @@ +------------------------------------------------------------------- +Wed Sep 16 21:26:47 UTC 2020 - Dirk Mueller + +- update to 1.7.0: +* Add more attributes to ``Frame`` and ``Code`` objects for pytest compatibility. + +------------------------------------------------------------------- +Sun Dec 15 16:02:49 UTC 2019 - Stefan Brüns + +- 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 + +- 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 + +- 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 `_. + * 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) + +------------------------------------------------------------------- +Sun Mar 3 10:29:39 UTC 2019 - John Vandenberg + +- Remove bcond_with test preventing the tests from running, + and fix the %check +- Remove unnecessary dependency on tox, flake8 and 9 other deps +- Add 0001-Patch-tests-against-Python-3.7.patch to workaround + Python 3.7 test failure. + +------------------------------------------------------------------- +Tue Dec 4 12:55:02 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon Mar 19 19:55:11 UTC 2018 - sebix+novell.com@sebix.at + +- Use %license macro for license. + +------------------------------------------------------------------- +Mon Aug 14 00:28:19 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-tblib.spec b/python-tblib.spec new file mode 100644 index 0000000..45eac77 --- /dev/null +++ b/python-tblib.spec @@ -0,0 +1,96 @@ +# +# spec file for package python +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%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.7.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 +BuildRequires: %{python_module setuptools} +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 + +%python_subpackages + +%description +Traceback serialization library. + +It allows you to: + +* Pickle tracebacks and raise exceptions with pickled tracebacks in + different processes. This allows better error handling when running + code over multiple processes (imagine multiprocessing, billiard, + futures, celery etc). +* Create traceback objects from strings (the ``from_string`` method). + *No pickling is used*. +* Serialize tracebacks to/from plain dicts (the ``from_dict`` and + ``to_dict`` methods). *No pickling is used*. +* Raise the tracebacks created from the aforementioned sources. + +Again, note that using the pickle support is completely optional. You +are solely responsible for security problems should you decide to use +the pickle support. + +%prep +%setup -q -n tblib-%{version} + +%build +%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 diff --git a/tblib-1.7.0.tar.gz b/tblib-1.7.0.tar.gz new file mode 100644 index 0000000..27a4c31 --- /dev/null +++ b/tblib-1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:059bd77306ea7b419d4f76016aef6d7027cc8a0785579b5aad198803435f882c +size 33074