diff --git a/python-jira-add-python38-support.patch b/python-jira-add-python38-support.patch new file mode 100644 index 0000000..b94a9fc --- /dev/null +++ b/python-jira-add-python38-support.patch @@ -0,0 +1,26 @@ +From dd0bae63e713561853820146520a954aa89ad0b6 Mon Sep 17 00:00:00 2001 +From: Jasper Capel +Date: Fri, 24 Jan 2020 09:16:59 +0100 +Subject: [PATCH] Add support for Python 3.8 + +Python 3.8 will thrown an exception if a dict changes while iterating over it, +copy it first. + +Fix #890 +--- + jira/utils/__init__.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/jira/utils/__init__.py b/jira/utils/__init__.py +index 0de4b91b..9f4be682 100644 +--- a/jira/utils/__init__.py ++++ b/jira/utils/__init__.py +@@ -37,7 +37,7 @@ def __init__(self, *args, **kw): + super(CaseInsensitiveDict, self).__init__(*args, **kw) + + self.itemlist = {} +- for key, value in super(CaseInsensitiveDict, self).items(): ++ for key, value in super(CaseInsensitiveDict, self).copy().items(): + if key != key.lower(): + self[key.lower()] = value + self.pop(key, None) diff --git a/python-jira.spec b/python-jira.spec index 6eccca9..6f84d5b 100644 --- a/python-jira.spec +++ b/python-jira.spec @@ -4,13 +4,14 @@ Name: python-%{distname} Version: 2.0.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: A library to ease use of the JIRA 5 REST APIs License: BSD URL: https://pypi.io/project/%{distname} Source0: https://files.pythonhosted.org/packages/source/j/%{distname}/%{distname}-%{version}.tar.gz Patch0: python-jira-no-mime-detection.patch +Patch1: python-jira-add-python38-support.patch BuildArch: noarch @@ -47,6 +48,7 @@ A library to ease use of the JIRA 5 REST APIs. %prep %setup -q -n %{distname}-%{version} %patch0 -p1 +%patch1 -p1 # Remove bundled egg-info in case it exists rm -rf %{distname}.egg-info @@ -75,6 +77,9 @@ sed -i -e '/^#!\//, 1d' %{modname}/{client,config,jirashell}.py %changelog +* Fri Nov 13 2020 Matt Prahl - 2.0.0-10 +- Add support for Python 3.8 + * Wed Jul 29 2020 Fedora Release Engineering - 2.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild