Skip to content

Commit 7f4805a

Browse files
committed
Prepare for typing.py
1 parent 079a37f commit 7f4805a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ coverage
55
flake8
66
pytest
77
pytest-cov
8+
mypy-lang

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
from setuptools.command.test import test as TestCommand
88

9+
PY_35 = sys.version_info >= (3, 5)
10+
911

1012
class PyTest(TestCommand):
1113
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
@@ -43,6 +45,10 @@ def read(f):
4345
extras_require = {}
4446

4547

48+
if not PY_35:
49+
install_requires.append('typing')
50+
51+
4652
setup(
4753
name='janus',
4854
version=version,

0 commit comments

Comments
 (0)