From d1bc53f91dc270f78ab505c7a73eb46caeda8b52 Mon Sep 17 00:00:00 2001 From: Tom Briden Date: Sun, 13 Mar 2022 11:09:05 +0000 Subject: [PATCH] python-application: Add upstream patch to fix deprecated use of collections.MutableMapping --- ...03bdd1e128118e45fa50be256e27415bbd41.patch | 25 +++++++++++++++++++ .../python-application-3.0.3.exheres-0 | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 packages/dev-python/python-application/files/08c503bdd1e128118e45fa50be256e27415bbd41.patch diff --git a/packages/dev-python/python-application/files/08c503bdd1e128118e45fa50be256e27415bbd41.patch b/packages/dev-python/python-application/files/08c503bdd1e128118e45fa50be256e27415bbd41.patch new file mode 100644 index 0000000..d080bda --- /dev/null +++ b/packages/dev-python/python-application/files/08c503bdd1e128118e45fa50be256e27415bbd41.patch @@ -0,0 +1,25 @@ +Upstream: Yes + +From 08c503bdd1e128118e45fa50be256e27415bbd41 Mon Sep 17 00:00:00 2001 +From: Adrian Georgescu +Date: Sat, 1 Jan 2022 15:19:37 +0000 +Subject: [PATCH] collections.MutableMapping was deprecated since Python 3.3 + +--- + application/python/weakref.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/application/python/weakref.py b/application/python/weakref.py +index a785a7e..38fd664 100644 +--- a/application/python/weakref.py ++++ b/application/python/weakref.py +@@ -1,7 +1,8 @@ + + import weakref + +-from collections import MutableMapping, deque ++from collections.abc import MutableMapping ++from collections import deque + from copy import deepcopy + from threading import local + diff --git a/packages/dev-python/python-application/python-application-3.0.3.exheres-0 b/packages/dev-python/python-application/python-application-3.0.3.exheres-0 index 72ed2be..b422458 100644 --- a/packages/dev-python/python-application/python-application-3.0.3.exheres-0 +++ b/packages/dev-python/python-application/python-application-3.0.3.exheres-0 @@ -15,4 +15,7 @@ MYOPTIONS="" DEPENDENCIES=" dev-python/zopeinterface[python_abis:*(-)?] " +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}"/08c503bdd1e128118e45fa50be256e27415bbd41.patch +)