Sync from SUSE:SLFO:Main python-outcome revision 5c23d3bea36e27851cf801251e8aa8ab

This commit is contained in:
Adrian Schröter 2024-12-13 11:52:34 +01:00
parent 021a5e2374
commit cf5b4bb815
4 changed files with 20 additions and 9 deletions

BIN
outcome-1.2.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
outcome-1.3.0.post0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Dec 12 13:41:15 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.3.0.post0:
* Added type hints to the package. :py:class:`Value` and
:py:class:`Outcome` are now generic. A type alias was also added
(:py:data:`Maybe`) for the union of :py:class:`Value` and
:py:class:`Error`. (#36)
-------------------------------------------------------------------
Wed Sep 6 19:50:20 UTC 2023 - Dirk Müller <dmueller@suse.com>
- drop outdated depndendy on async_generator
(see https://github.com/python-trio/outcome/issues/12)
-------------------------------------------------------------------
Fri Apr 21 12:28:51 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -16,11 +16,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-outcome
Version: 1.2.0
Version: 1.3.0.post0
Release: 0
Summary: Function for capturing the outcome of Python function calls
License: Apache-2.0 OR MIT
@ -35,12 +33,10 @@ BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module attrs >= 19.2.0}
BuildRequires: %{python_module pytest}
%if 0%{suse_version} >= 1550 || (0%{suse_version} == 1500 && 0%{?sle_version} >= 150400)
%if 0%{?suse_version} >= 1550 || (0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400)
# for more than one python 3 flavor, but no python2 flavor
BuildRequires: %{python_module async_generator}
BuildRequires: %{python_module pytest-asyncio}
%else
BuildRequires: python3-async_generator
BuildRequires: python3-pytest-asyncio
%endif
# /SECTION