Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop outdated python 3.6, add support for python 3.10 #107

Merged
merged 2 commits into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ sudo: false
language: python
python:
- '2.7'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
install:
- pip install tox-travis Sphinx
script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface for managing zones, records, data feeds, and more.
It supports synchronous and asynchronous transports.

Both python 2.7 and 3.3+ are supported. Automated tests are currently run
against 2.7 and 3.6.
against 2.7, 3.7, 3.8, 3.9 and 3.10.

Installation
============
Expand Down
7 changes: 5 additions & 2 deletions ns1/rest/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# Copyright (c) 2014 NSONE, Inc.
#
# License under The MIT License (MIT). See LICENSE in project root.
import collections
try:
from collections.abc import Iterable
except:
from collections import Iterable
import sys

from . import resource
Expand Down Expand Up @@ -40,7 +43,7 @@ def _getAnswersForBody(self, answers):
if isinstance(answers, py_str):
answers = [answers]
# otherwise, we need an iterable
elif not isinstance(answers, collections.Iterable):
elif not isinstance(answers, Iterable):
raise Exception("invalid answers format (must be str or iterable)")
# at this point we have a list. loop through and build out the answer
# entries depending on contents
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py33
envlist = py27,py37,py38,py39,py310
skip_missing_interpreters = True

[testenv]
Expand Down