Skip to content

Commit

Permalink
improve setup.py, add python 3.7 for supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Feb 1, 2018
1 parent 4c43f51 commit a365e17
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
18 changes: 17 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
import re
from setuptools import setup

with open('miio/version.py') as f: exec(f.read())
with open('miio/version.py') as f:
exec(f.read())


def readme():
# we have intersphinx link in our readme, so let's replace them
# for the long_description to make pypi happy
reg = re.compile(r':.+?:`(.+?)\s?(<.+?>)?`')
with open('README.rst') as f:
return re.sub(reg, r'\1', f.read())


setup(
name='python-miio',

version=__version__,
description='Python library for interfacing with Xiaomi smart appliances',
long_description=readme(),
url='https://github.com/rytilahti/python-miio',

author='Teemu Rytilahti',
Expand All @@ -18,6 +30,10 @@
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3.4'
'Programming Language :: Python :: 3.5'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
'Programming Language :: Python :: 3 :: Only',
],

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[tox]
envlist=py34,py35,py36,flake8,typing
envlist=py34,py35,py36,py37,flake8,typing

[tox:travis]
3.4 = py34
3.5 = py35
3.6 = py36
3.7 = py37

[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
Expand Down

0 comments on commit a365e17

Please sign in to comment.