Skip to content

Commit b78fe53

Browse files
authored
Merge pull request #731 from arcivanov/py_ver_bump_20200609
Bump Python test versions 2020-06-09
2 parents 814c2a9 + 72015ef commit b78fe53

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ env:
2020
- PYTHON_VERSION="3.7.7"
2121
- PYTHON_VERSION="3.6.8"
2222
- PYTHON_VERSION="3.5.4"
23-
- PYTHON_VERSION="3.9.0b1"
23+
- PYTHON_VERSION="3.9-dev"
24+
- PYTHON_VERSION="3.10-dev"
2425
- PYTHON_VERSION="pypy3.6-7.3.0"
2526
- PYTHON_VERSION="pypy2.7-7.3.0"
2627
- PYTHON_VERSION="pypy3.5-7.0.0"
@@ -39,6 +40,8 @@ jobs:
3940
env: PYTHON_VERSION="pypy3.5-7.0.0"
4041
- os: windows
4142
env: PYTHON_VERSION="pypy3.6-7.3.0"
43+
- os: windows
44+
if: env(PYTHON_VERSION) =~ /^.+-dev$/
4245
allow_failures:
4346
- if: env(PYTHON_VERSION) =~ /^pypy.+$/ or env(PYTHON_VERSION) =~ /[a-z]+/
4447

src/main/python/pybuilder/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
The PyBuilder utils module.
2121
Provides generic utilities that can be used by plugins.
2222
"""
23-
import collections
2423
import fnmatch
2524
import json
2625
import os
@@ -36,6 +35,11 @@
3635
from pybuilder.python_utils import (is_string, which, makedirs, basestring,
3736
IS_WIN, iglob, escape)
3837

38+
try:
39+
from collections import abc
40+
except ImportError:
41+
import collections as abc
42+
3943

4044
def get_all_dependencies_for_task(task):
4145
"""
@@ -302,7 +306,7 @@ def mkdir(directory):
302306

303307
def is_notstr_iterable(obj):
304308
"""Checks if obj is iterable, but not a string"""
305-
return not isinstance(obj, basestring) and isinstance(obj, collections.Iterable)
309+
return not isinstance(obj, basestring) and isinstance(obj, abc.Iterable)
306310

307311

308312
def get_dist_version_string(project, format=" (%s)"):

0 commit comments

Comments
 (0)