From a1203c98756c02b0ce81ff5af766a4a4a7e7d073 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 20 May 2016 00:43:54 +0200 Subject: test typings --- .travis.yml | 1 - setup.py | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e64d664..fa7de71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,6 @@ python: before_install: - pip install pep8 mypy-lang - - if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]]; then pip3 install typing; fi script: - make test \ No newline at end of file diff --git a/setup.py b/setup.py index b30f94c..1e0e086 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,11 @@ if version_info < (3, 4): print('Error: Python 3.4 required but found %s' % python_version()) exit(1) +if version_info < (3, 5): + install_requires = ['typing'] +else: + install_requires = [] + with open('README.rst', 'r') as infile: long_description = infile.read() @@ -24,8 +29,8 @@ setup( packages=find_packages(), include_package_data=True, license='GPL', - install_requires=[], keywords=['nextcloud', 'news', 'updater', 'RSS', 'Atom', 'feed', 'reader'], + install_requires=install_requires, classifiers=[ 'Intended Audience :: System Administrators', 'Environment :: Console', -- cgit v1.2.3