Skip to content

Commit 8714a0a

Browse files
author
brentru
committed
enforce python version =>3.6
1 parent b5776e1 commit 8714a0a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
1313
print('version: ', verstr)
1414

15-
classifiers = ['Development Status :: 4 - Beta',
15+
classifiers = ['Development Status :: 5 - Production/Stable',
1616
'Operating System :: POSIX :: Linux',
1717
'Operating System :: Microsoft :: Windows',
1818
'Operating System :: MacOS',
1919
'License :: OSI Approved :: MIT License',
2020
'Intended Audience :: Developers',
21-
'Programming Language :: Python :: 3',
21+
'Programming Language :: Python :: 3.6',
2222
'Topic :: Software Development',
2323
'Topic :: Home Automation',
2424
'Topic :: System :: Hardware']
@@ -34,6 +34,7 @@
3434
license = 'MIT',
3535
keywords = 'Adafruit IO',
3636
classifiers = classifiers,
37+
python_requires = ">=3.6",
3738
description = 'Client library for Adafruit IO (http://io.adafruit.com/).',
3839
long_description = open('README.rst').read(),
3940
install_requires = ["requests", "paho-mqtt"]

tests/test_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010

1111
# Default config for tests to run against real Adafruit IO service with no proxy.
12-
#BASE_URL = 'https://io.adafruit.com/'
12+
BASE_URL = 'https://io.adafruit.com/'
1313
PROXIES = None
1414

1515
# Config to run tests against real Adafruit IO service over non-SSL and with a
1616
# a proxy running on localhost 8888 (good for getting traces with fiddler).
17-
BASE_URL = 'http://io.adafruit.vm/'
17+
#BASE_URL = 'http://io.adafruit.vm/'
1818
#PROXIES = {'http': 'http://localhost:8888/'}
1919

2020

@@ -116,13 +116,13 @@ def test_data_on_feed_and_data_id_returns_data(self):
116116
self.assertEqual(int(data.value), int(result.value))
117117

118118
def test_create_data(self):
119-
io = self.get_client()
120-
self.ensure_feed_deleted(io, 'TestFeed')
119+
aio = self.get_client()
120+
self.ensure_feed_deleted(aio, 'TestFeed')
121121
feed = Feed(name="TestFeed")
122122
test_feed = aio.create_feed(feed)
123-
io.send_data('TestFeed', 1) # Make sure TestFeed exists.
123+
aio.send_data('TestFeed', 1) # Make sure TestFeed exists.
124124
data = Data(value=42)
125-
result = io.create_data('TestFeed', data)
125+
result = aio.create_data('TestFeed', data)
126126
self.assertEqual(int(result.value), 42)
127127

128128
def test_append_by_feed_name(self):

0 commit comments

Comments
 (0)