From b7639fbbabe3b6f5ce3c0273d95973f5927ade50 Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Wed, 17 Jul 2024 17:34:46 +0200 Subject: [PATCH] Upgrade code and deps to python 3.11 --- inspire_json_merger/postprocess.py | 6 +++++- setup.py | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/inspire_json_merger/postprocess.py b/inspire_json_merger/postprocess.py index 7bdf9a2..79b1d68 100644 --- a/inspire_json_merger/postprocess.py +++ b/inspire_json_merger/postprocess.py @@ -23,7 +23,11 @@ import itertools import json -from collections import Iterable + +try: + from collections.abc import Iterable +except ImportError: + from collections import Iterable from json_merger.conflict import Conflict from pyrsistent import thaw diff --git a/setup.py b/setup.py index 4f48cca..1e51bc0 100644 --- a/setup.py +++ b/setup.py @@ -50,8 +50,9 @@ 'decorator~=4.0,>=4.1.2', 'flake8-future-import~=0.0,>=0.4.3', 'mock~=2.0,>=2.0.0', - 'pytest-cov~=2.0,>=2.6.1', - 'pytest~=3.0,>=3.6.0', + 'pytest-cov~=2.0,>=2.5.1', + 'pytest~=4.0,>=4.6.0;python_version <= "2.7"', + 'pytest~=8.0,>=8.0.2;python_version >= "3.6"', ] extras_require = {