42 lines
1.6 KiB
Python
42 lines
1.6 KiB
Python
from ez_setup import use_setuptools
|
|
use_setuptools()
|
|
from setuptools import setup, find_packages
|
|
import re
|
|
|
|
verstrline = open('Adafruit_IO/_version.py', "rt").read()
|
|
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
|
|
mo = re.search(VSRE, verstrline, re.M)
|
|
if mo:
|
|
verstr = mo.group(1)
|
|
else:
|
|
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
|
|
print('version: ', verstr)
|
|
|
|
classifiers = ['Development Status :: 5 - Production/Stable',
|
|
'Operating System :: POSIX :: Linux',
|
|
'Operating System :: Microsoft :: Windows',
|
|
'Operating System :: MacOS',
|
|
'License :: OSI Approved :: MIT License',
|
|
'Intended Audience :: Developers',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: 3',
|
|
'Topic :: Software Development',
|
|
'Topic :: Home Automation',
|
|
'Topic :: System :: Hardware']
|
|
|
|
setup(
|
|
name = 'adafruit-io',
|
|
version = verstr,
|
|
author = 'Adafruit Industries',
|
|
author_email = 'adafruitio@adafruit.com',
|
|
packages = ['Adafruit_IO'],
|
|
py_modules = ['ez_setup'],
|
|
url = 'https://github.com/adafruit/io-client-python',
|
|
license = 'MIT',
|
|
keywords = 'Adafruit IO',
|
|
classifiers = classifiers,
|
|
python_requires = ">=3.4.0",
|
|
description = 'Python client library for Adafruit IO (http://io.adafruit.com/).',
|
|
long_description = open('README.rst').read(),
|
|
install_requires = ["requests", "paho-mqtt"]
|
|
)
|