diff options
author | 2021-07-30 19:43:47 +0300 | |
---|---|---|
committer | 2021-08-02 10:16:44 +0200 | |
commit | 95281634bbc18e206f8db438d13e42af8ae00a1d (patch) | |
tree | 46c05efc8e21a352835acca3cca05e8abf76aa7a /dev-python/leather/files/leather-0.3.3-fix-py3.10.patch | |
parent | dev-python/pathtools: add github upstream metadata (diff) | |
download | gentoo-95281634bbc18e206f8db438d13e42af8ae00a1d.tar.gz gentoo-95281634bbc18e206f8db438d13e42af8ae00a1d.tar.bz2 gentoo-95281634bbc18e206f8db438d13e42af8ae00a1d.zip |
dev-python/leather: bump EAPI=8, add python 3.10
Signed-off-by: Arthur Zamarin <arthurzam@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/leather/files/leather-0.3.3-fix-py3.10.patch')
-rw-r--r-- | dev-python/leather/files/leather-0.3.3-fix-py3.10.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/leather/files/leather-0.3.3-fix-py3.10.patch b/dev-python/leather/files/leather-0.3.3-fix-py3.10.patch new file mode 100644 index 000000000000..8ec9e1767a4f --- /dev/null +++ b/dev-python/leather/files/leather-0.3.3-fix-py3.10.patch @@ -0,0 +1,40 @@ +From 5dd1d3cc82d426388c66db8e3761ca2bf99a3991 Mon Sep 17 00:00:00 2001 +From: Brian <brian@quantrocket.com> +Date: Fri, 27 Mar 2020 17:08:50 -0400 +Subject: [PATCH] import from collections.abc to suppress python 3.7 warning + +--- + leather/series/base.py | 5 ++++- + leather/series/category.py | 5 ++++- + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/leather/series/base.py b/leather/series/base.py +index c5790e5..959e827 100644 +--- a/leather/series/base.py ++++ b/leather/series/base.py +@@ -1,6 +1,9 @@ + #!/usr/bin/env python + +-from collections import Iterable, Sequence, Mapping ++try: ++ from collections.abc import Iterable, Sequence, Mapping ++except ImportError: ++ from collections import Iterable, Sequence, Mapping + from functools import partial + + import six +diff --git a/leather/series/category.py b/leather/series/category.py +index c575308..3678377 100644 +--- a/leather/series/category.py ++++ b/leather/series/category.py +@@ -1,6 +1,9 @@ + #!/usr/bin/env python + +-from collections import Iterable, Sequence, Mapping ++try: ++ from collections.abc import Iterable, Sequence, Mapping ++except ImportError: ++ from collections import Iterable, Sequence, Mapping + from functools import partial + + import six |