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

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

  /frozendict-1.2.tar.gz

+ /python-frozendict-1.5.1.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
+12 -8
@@ -2,16 +2,13 @@ 

  %global srcname frozendict

  

  Name:           python-%{srcname}

- Version:        1.2

- Release:        23%{?dist}

+ Version:        1.5.1

+ 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

+ Source0:        https://github.com/Marco-Sulla/python-frozendict/archive/v%{version}/%{name}-%{version}.tar.gz

  

  BuildArch:      noarch

  
@@ -27,11 +24,12 @@ 

  %{?python_provide:%python_provide python3-%{srcname}}

  BuildRequires:  python3-devel

  BuildRequires:  python3-setuptools

+ BuildRequires:  python3-pytest

  

  %description -n python3-%{srcname} %{_description}

  

  %prep

- %autosetup -n %{srcname}-%{version} -p1

+ %autosetup -p1

  

  %build

  %py3_build
@@ -39,13 +37,19 @@ 

  %install

  %py3_install

  

+ %check

+ %pytest -v

+ 

  %files -n python3-%{srcname}

  %license LICENSE.txt

- %doc README.rst

+ %doc README.md

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

  %{python3_sitelib}/%{srcname}/

  

  %changelog

+ * Tue Aug 30 2022 Orion Poplawski <orion@nwra.com> - 1.5.1-1

+ - Update to 1.5.1

+ 

  * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-23

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

  

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

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

+ SHA512 (python-frozendict-1.5.1.tar.gz) = 6df95e3a7c47c5f0c94494bf2f26bbfb2a15dcbf7830dbc9e368f8e8886f2a1b43b5d1b33c6f5120c2f9416b77bf45f5e9330544222d6c802bd11bdea193b6b0

Last pure python version - still compatible with Python 3.11 it seems.

rebased onto f6e0f2a

2 years ago

Pull-Request has been closed by orion

a year ago