#1 Update to 2.3.0
Closed a year ago by orion. Opened 2 years ago by orion.
rpms/ orion/python-frozendict 2.3.0  into  rawhide

file modified
+1
@@ -1,1 +1,2 @@ 

  /frozendict-1.2.tar.gz

+ /frozendict-2.3.0.tar.gz

@@ -1,25 +0,0 @@ 

- From 24e65b1f197a8c0dcca82a6ada53a8a29445c21c Mon Sep 17 00:00:00 2001

- From: Hugo van Kemenade <hugovk@users.noreply.github.com>

- Date: Thu, 23 Jan 2020 07:52:06 +0200

- Subject: [PATCH] Try .abc first

- 

- ---

-  frozendict/__init__.py | 4 ++--

-  1 file changed, 2 insertions(+), 2 deletions(-)

- 

- diff --git a/frozendict/__init__.py b/frozendict/__init__.py

- index e5b0368..4d76bc7 100644

- --- a/frozendict/__init__.py

- +++ b/frozendict/__init__.py

- @@ -4,9 +4,9 @@

-  

-  try:

-      # Python 3.3+

- -    from collections import Mapping

- -except ImportError:

-      from collections.abc import Mapping

- +except ImportError:

- +    from collections import Mapping

-  

-  try:

-      from collections import OrderedDict

@@ -1,39 +0,0 @@ 

- From 6ad44b54139e9b298a9281d85abf4f940f5d852a Mon Sep 17 00:00:00 2001

- From: Hugo <hugovk@users.noreply.github.com>

- Date: Mon, 20 Jan 2020 18:46:57 +0200

- Subject: [PATCH] Fix imports for Python 3.9

- 

- ---

-  frozendict/__init__.py | 10 +++++++---

-  1 file changed, 7 insertions(+), 3 deletions(-)

- 

- diff --git a/frozendict/__init__.py b/frozendict/__init__.py

- index 399948a..e5b0368 100644

- --- a/frozendict/__init__.py

- +++ b/frozendict/__init__.py

- @@ -1,8 +1,12 @@

- -import collections

-  import operator

-  import functools

-  import sys

-  

- +try:

- +    # Python 3.3+

- +    from collections import Mapping

- +except ImportError:

- +    from collections.abc import Mapping

-  

-  try:

-      from collections import OrderedDict

- @@ -13,9 +17,9 @@

-  iteritems = getattr(dict, 'iteritems', dict.items) # py2-3 compatibility

-  

-  

- -class frozendict(collections.Mapping):

- +class frozendict(Mapping):

-      """

- -    An immutable wrapper around dictionaries that implements the complete :py:class:`collections.Mapping`

- +    An immutable wrapper around dictionaries that implements the complete :py:class:`collections.abc.Mapping`

-      interface. It can be used as a drop-in replacement for dictionaries where immutability is desired.

-      """

-  

file modified
+10 -10
@@ -2,18 +2,14 @@ 

  %global srcname frozendict

  

  Name:           python-%{srcname}

- Version:        1.2

- Release:        22%{?dist}

+ Version:        2.3.0

+ Release:        1%{?dist}

  Summary:        An immutable dictionary

  

  License:        MIT

  URL:            https://pypi.python.org/pypi/frozendict

  Source0:        %{pypi_source}

- 

- Patch0: https://github.com/slezica/python-frozendict/pull/30/commits/6ad44b54139e9b298a9281d85abf4f940f5d852a.patch

- Patch1: https://github.com/slezica/python-frozendict/pull/30/commits/24e65b1f197a8c0dcca82a6ada53a8a29445c21c.patch

- 

- BuildArch:      noarch

+ BuildRequires:  gcc

  

  %global _description %{expand:

  frozendict is an immutable wrapper around dictionaries that implements
@@ -41,11 +37,15 @@ 

  

  %files -n python3-%{srcname}

  %license LICENSE.txt

- %doc README.rst

- %{python3_sitelib}/%{srcname}-*.egg-info/

- %{python3_sitelib}/%{srcname}/

+ %doc README.md

+ %{python3_sitearch}/%{srcname}-*.egg-info/

+ %{python3_sitearch}/%{srcname}/

  

  %changelog

+ * Tue Jul 05 2022 Orion Poplawski <orion@nwra.com> - 2.3.0-1

+ - Update to 2.3.0

+ - Add BR gcc

+ 

  * Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.2-22

  - Rebuilt for Python 3.11

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (frozendict-1.2.tar.gz) = 095cf5f6f8b02bf5666e04200431992bf4b3160aae3464d528bc256b1ab643e29dda78fe94d9e8c983dbfe66cd2459e0559122e17b6b8660c0552adc5318b3da

+ SHA512 (frozendict-2.3.0.tar.gz) = 1901c2c536bef401b61ab87bc104a94d2f21e7c42843036e8d721c3974efe84a1554ac54c8d10ae8925e07a0129a421fe8bc804ec1cf67a57cb56f01993ba162