From 9af220529dc56a1b16998d0c5bf9e37c45d31448 Mon Sep 17 00:00:00 2001 From: Gino Lisignoli Date: Sat, 13 Nov 2021 17:26:10 +1300 Subject: [PATCH] Added additional python versions, setup.py requirements, and collections fix --- .travis.yml | 4 ++++ pylinkvalidator/models.py | 3 ++- setup.py | 9 ++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0e06093..88e0e7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,10 @@ python: - "2.7" - "3.4" - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "3.10" install: - "pip install ." script: nosetests diff --git a/pylinkvalidator/models.py b/pylinkvalidator/models.py index a7d8767..57f860d 100644 --- a/pylinkvalidator/models.py +++ b/pylinkvalidator/models.py @@ -8,7 +8,8 @@ """ from __future__ import unicode_literals, absolute_import -from collections import namedtuple, Mapping, defaultdict +from collections import namedtuple, defaultdict +from collections.abc import Mapping from optparse import OptionParser, OptionGroup import re diff --git a/setup.py b/setup.py index 60b3539..ddae0cb 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,10 @@ version = __import__('pylinkvalidator').__version__ if sys.version_info[0] >= 3: - requires = ['beautifulsoup4>=4.2.0'] + requires = [ + 'beautifulsoup4>=4.2.0', + 'junit-xml>=1.8' + ] else: requires = [] @@ -45,6 +48,10 @@ 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Topic :: Internet :: WWW/HTTP :: Site Management :: Link Checking', 'Topic :: Utilities', ],