test typings
This commit is contained in:
Родитель
4325023d34
Коммит
a1203c9875
|
@ -6,7 +6,6 @@ python:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- pip install pep8 mypy-lang
|
- pip install pep8 mypy-lang
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]]; then pip3 install typing; fi
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
7
setup.py
7
setup.py
|
@ -6,6 +6,11 @@ if version_info < (3, 4):
|
||||||
print('Error: Python 3.4 required but found %s' % python_version())
|
print('Error: Python 3.4 required but found %s' % python_version())
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
if version_info < (3, 5):
|
||||||
|
install_requires = ['typing']
|
||||||
|
else:
|
||||||
|
install_requires = []
|
||||||
|
|
||||||
with open('README.rst', 'r') as infile:
|
with open('README.rst', 'r') as infile:
|
||||||
long_description = infile.read()
|
long_description = infile.read()
|
||||||
|
|
||||||
|
@ -24,8 +29,8 @@ setup(
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
license='GPL',
|
license='GPL',
|
||||||
install_requires=[],
|
|
||||||
keywords=['nextcloud', 'news', 'updater', 'RSS', 'Atom', 'feed', 'reader'],
|
keywords=['nextcloud', 'news', 'updater', 'RSS', 'Atom', 'feed', 'reader'],
|
||||||
|
install_requires=install_requires,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Intended Audience :: System Administrators',
|
'Intended Audience :: System Administrators',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
|
|
Загрузка…
Ссылка в новой задаче