diff --git a/.gitignore b/.gitignore index 3a9872a..27465f4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /ofxparse-0.16.tar.gz /ofxparse-0.17.tar.gz /ofxparse-0.18.tar.gz +/ofxparse-0.21.tar.gz diff --git a/85e00b9911c20f9eafb9dbfbf1a18c2c83233ad7.patch b/85e00b9911c20f9eafb9dbfbf1a18c2c83233ad7.patch deleted file mode 100644 index a2243e7..0000000 --- a/85e00b9911c20f9eafb9dbfbf1a18c2c83233ad7.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 85e00b9911c20f9eafb9dbfbf1a18c2c83233ad7 Mon Sep 17 00:00:00 2001 -From: Karthikeyan Singaravelan -Date: Wed, 22 Jan 2020 19:46:22 +0530 -Subject: [PATCH] Import ABC from collections.abc instead of collections for - Python 3.9 compatibility. - ---- - ofxparse/ofxparse.py | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/ofxparse/ofxparse.py b/ofxparse/ofxparse.py -index 3398858..52947c6 100644 ---- a/ofxparse/ofxparse.py -+++ b/ofxparse/ofxparse.py -@@ -13,6 +13,11 @@ - except ImportError: - from io import StringIO - -+try: -+ from collections.abc import Iterable -+except ImportError: -+ from collections import Iterable -+ - import six - from . import mcc - -@@ -37,7 +42,7 @@ def try_decode(string, encoding): - def is_iterable(candidate): - if sys.version_info < (2, 6): - return hasattr(candidate, 'next') -- return isinstance(candidate, collections.Iterable) -+ return isinstance(candidate, Iterable) - - - @contextlib.contextmanager diff --git a/python-ofxparse.spec b/python-ofxparse.spec index b45f217..2f0944d 100644 --- a/python-ofxparse.spec +++ b/python-ofxparse.spec @@ -2,15 +2,12 @@ Name: python-%{upstream_name} -Version: 0.18 -Release: 14%{?dist} +Version: 0.21 +Release: 1%{?dist} Summary: Python library for working with the OFX (Open Financial Exchange) file format License: MIT URL: http://sites.google.com/site/ofxparse Source0: https://files.pythonhosted.org/packages/source/o/%{upstream_name}/%{upstream_name}-%{version}.tar.gz -# Python 3.9 compatibility, merged but not released yet: -# https://github.com/jseutter/ofxparse/pull/156 -Patch1: 85e00b9911c20f9eafb9dbfbf1a18c2c83233ad7.patch BuildArch: noarch %description @@ -57,6 +54,9 @@ accounts also provide account statements in OFX files. %{python3_sitelib}/%{upstream_name}*.egg-info %changelog +* Sun Aug 15 2021 Dan Callaghan - 0.21-1 +- new upstream release 0.21 + * Fri Jul 23 2021 Fedora Release Engineering - 0.18-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 390f875..d0edb84 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ofxparse-0.18.tar.gz) = f2bcafd73392cc4f5cdcfa67766c0a8ef9c72428bf1a10258ac3d5f7fe51742cb932809b7b1894e862e084262da737d9739f8f158e6dc5fb4d81d4fc6ac569e6 +SHA512 (ofxparse-0.21.tar.gz) = 0654709413a05754799bbb289d1d43aeec91313b5d12010e5bf26a31da03e8b332f85266c924a8d4c9a614bf068de2311459a808890f0206b126e9ad0cf944b9