forked from pool/python-aioitertools
Accepting request 914749 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/914749 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aioitertools?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:54a56c7cf3b5290d1cb5e8974353c9f52c677612b5d69a859369a020c53414a3
|
||||
size 27838
|
||||
3
aioitertools-0.8.0.tar.gz
Normal file
3
aioitertools-0.8.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8b02facfbc9b0f1867739949a223f3d3267ed8663691cc95abd94e2c1d8c2b46
|
||||
size 30284
|
||||
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 17 10:11:54 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 0.8.0:
|
||||
- Added `builtins.any()` and `builtins.all()` (#44)
|
||||
- `builtins.next()` takes an optional `default` parameter (#40, #41)
|
||||
- `asyncio.gather()` now handles cancellation (#64)
|
||||
- Better exception handling in `itertools.tee()` (#47)
|
||||
- Removed dependency on typing_extensions for Python 3.8 and newer (#49)
|
||||
- Improved documentation and formatting
|
||||
- Drop patches for issues fixed upstream
|
||||
- stdlib-typing_extensions.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 13 17:58:59 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -19,16 +19,13 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-aioitertools
|
||||
Version: 0.7.1
|
||||
Version: 0.8.0
|
||||
Release: 0
|
||||
Summary: itertools and builtins for AsyncIO and mixed iterables
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://aioitertools.omnilib.dev
|
||||
Source: https://files.pythonhosted.org/packages/source/a/aioitertools/aioitertools-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM stdlib-typing_extensions.patch gh#omnilib/aioitertools#49 mcepl@suse.com
|
||||
# Improve dependencies for Python 3.8+
|
||||
Patch0: stdlib-typing_extensions.patch
|
||||
BuildRequires: %{python_module asyncio}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module typing_extensions if %python-base < 3.8}
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
From b8a14c2bee11a954b01288669f4b35a5e4d4c493 Mon Sep 17 00:00:00 2001
|
||||
From: Bryan Forbes <bryan@reigndropsfall.net>
|
||||
Date: Mon, 4 Jan 2021 19:26:31 -0600
|
||||
Subject: [PATCH] Improve dependencies for Python 3.8+
|
||||
|
||||
---
|
||||
aioitertools/helpers.py | 8 ++++++--
|
||||
pyproject.toml | 2 +-
|
||||
requirements.txt | 2 +-
|
||||
3 files changed, 8 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/aioitertools/helpers.py
|
||||
+++ b/aioitertools/helpers.py
|
||||
@@ -2,12 +2,16 @@
|
||||
# Licensed under the MIT license
|
||||
|
||||
import inspect
|
||||
+import sys
|
||||
from typing import Awaitable, Union
|
||||
|
||||
-from typing_extensions import Protocol
|
||||
-
|
||||
from .types import T
|
||||
|
||||
+if sys.version_info < (3, 8):
|
||||
+ from typing_extensions import Protocol
|
||||
+else:
|
||||
+ from typing import Protocol # pylint: disable=no-name-in-module
|
||||
+
|
||||
|
||||
class Orderable(Protocol): # pragma: no cover
|
||||
def __lt__(self, other):
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -8,7 +8,7 @@ author = "John Reese"
|
||||
author-email = "john@noswap.com"
|
||||
description-file = "README.md"
|
||||
home-page = "https://aioitertools.omnilib.dev"
|
||||
-requires = ["typing_extensions>=3.7"]
|
||||
+requires = ["typing_extensions>=3.7; python_version < '3.8'"]
|
||||
requires-python = ">=3.6"
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
--- a/requirements.txt
|
||||
+++ b/requirements.txt
|
||||
@@ -1 +1 @@
|
||||
-typing_extensions>=3.7
|
||||
\ No newline at end of file
|
||||
+typing_extensions>=3.7;python_version<"3.8"
|
||||
Reference in New Issue
Block a user