python-attrdict 2.0.1-2 (aarch64;x86_64;znver1) 2022-15332
9999

Status published
Submitter alexander [@T] mezon.ru
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/235576
Packages
python-attrdict-2.0.1-2.aarch64.binary
python-attrdict-2.0.1-2.aarch64.source
python-attrdict-2.0.1-2.x86_64.binary
python-attrdict-2.0.1-2.x86_64.source
python-attrdict-2.0.1-2.znver1.binary
python-attrdict-2.0.1-2.znver1.source
Build Date 2022-09-28 15:27:58 +0000 UTC
Last Updated 2022-09-30 18:04:57.977721131 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 154ddf2cf18bf62984d646d95a626078924a04b2

commit 154ddf2cf18bf62984d646d95a626078924a04b2
Author:     Bernhard Rosenkränzer <bero@lindev.ch>
AuthorDate: Wed Sep 28 17:11:49 2022 +0200
Commit:     Bernhard Rosenkränzer <bero@lindev.ch>
CommitDate: Wed Sep 28 17:11:49 2022 +0200

    Fix imports for python 3.11
---
 attrdict-2.0.1-python-3.11.patch | 48 ++++++++++++++++++++++++++++++++++++++++
 python-attrdict.spec             |  3 ++-
 2 files changed, 50 insertions(+), 1 deletion(-)
 create mode 100644 attrdict-2.0.1-python-3.11.patch

diff --git a/attrdict-2.0.1-python-3.11.patch b/attrdict-2.0.1-python-3.11.patch
new file mode 100644
index 0000000..f4521ee
--- /dev/null
+++ b/attrdict-2.0.1-python-3.11.patch
@@ -0,0 +1,48 @@
+diff -up attrdict-2.0.1/attrdict/default.py.omv~ attrdict-2.0.1/attrdict/default.py
+--- attrdict-2.0.1/attrdict/default.py.omv~	2022-09-28 17:09:37.953177775 +0200
++++ attrdict-2.0.1/attrdict/default.py	2022-09-28 17:09:42.071200870 +0200
+@@ -1,7 +1,7 @@
+ """
+ A subclass of MutableAttr that has defaultdict support.
+ """
+-from collections import Mapping
++from collections.abc import Mapping
+ 
+ import six
+ 
+diff -up attrdict-2.0.1/attrdict/mapping.py.omv~ attrdict-2.0.1/attrdict/mapping.py
+--- attrdict-2.0.1/attrdict/mapping.py.omv~	2022-09-28 17:09:15.110049633 +0200
++++ attrdict-2.0.1/attrdict/mapping.py	2022-09-28 17:09:25.192106194 +0200
+@@ -1,7 +1,7 @@
+ """
+ An implementation of MutableAttr.
+ """
+-from collections import Mapping
++from collections.abc import Mapping
+ 
+ import six
+ 
+diff -up attrdict-2.0.1/attrdict/merge.py.omv~ attrdict-2.0.1/attrdict/merge.py
+--- attrdict-2.0.1/attrdict/merge.py.omv~	2022-09-28 17:09:29.593130883 +0200
++++ attrdict-2.0.1/attrdict/merge.py	2022-09-28 17:09:33.632153538 +0200
+@@ -1,7 +1,7 @@
+ """
+ A right-favoring Mapping merge.
+ """
+-from collections import Mapping
++from collections.abc import Mapping
+ 
+ 
+ __all__ = ['merge']
+diff -up attrdict-2.0.1/attrdict/mixins.py.omv~ attrdict-2.0.1/attrdict/mixins.py
+--- attrdict-2.0.1/attrdict/mixins.py.omv~	2022-09-28 17:09:03.687985550 +0200
++++ attrdict-2.0.1/attrdict/mixins.py	2022-09-28 17:09:11.703030520 +0200
+@@ -2,7 +2,7 @@
+ Mixin Classes for Attr-support.
+ """
+ from abc import ABCMeta, abstractmethod
+-from collections import Mapping, MutableMapping, Sequence
++from collections.abc import Mapping, MutableMapping, Sequence
+ import re
+ 
+ import six
diff --git a/python-attrdict.spec b/python-attrdict.spec
index 862c004..a814a87 100644
--- a/python-attrdict.spec
+++ b/python-attrdict.spec
@@ -1,7 +1,8 @@
 Name:		python-attrdict
 Version:	2.0.1
-Release:	1
+Release:	2
 Source0:	https://files.pythonhosted.org/packages/source/a/attrdict/attrdict-%{version}.tar.gz
+Patch0:		attrdict-2.0.1-python-3.11.patch
 Summary:	A dict with attribute-style access
 URL:		https://pypi.org/project/attrdict/
 License:	MIT License
Not Available

benbullard79 [@T] cox.netNo Comment.563d 18hrs
benbullard79 [@T] cox.netNo Comment.563d 16hrs