Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-05-20 01:43:54 +0300
committerBernhard Posselt <dev@bernhard-posselt.com>2016-06-03 02:30:29 +0300
commita1203c98756c02b0ce81ff5af766a4a4a7e7d073 (patch)
tree52df6852764143fd4c965df2dd2c214efee51c8f
parent4325023d34c9a92722f6e041834395d458f241c8 (diff)
test typings
-rw-r--r--.travis.yml1
-rw-r--r--setup.py7
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',