Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Add mypy dependencies
  • Loading branch information
vellis-eb committed Sep 20, 2021
1 parent 432ae88 commit 74de274
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,30 @@ def readme():
return f.read()


install_requires = [
'attrs>=17.4,<20',
'conformity>=1.26.9,!=1.27.0,<2.0',
'enum34;python_version<"3.4"',
'six',
'typing~=3.7.4;python_version<"3.5"',
'typing-extensions~=3.7.4;python_version<"3.8"',
]

mypy_require = [
'mypy~=0.740;python_version>"3.4"',
'types-six~=0.1.7;python_version>"3.4"',
'types-mock~=0.1.3;python_version>"3.4"',
]

tests_require = [
'freezegun',
'pytest',
'pytest-cov',
'pytest-runner',
'mock',
'more-itertools~=5.0', # We must pin this, because 6.0 requires Python 3.
'mypy~=0.740;python_version>"3.4"',
]
] + mypy_require


setup(
name='pymetrics',
Expand All @@ -43,14 +58,7 @@ def readme():
package_data={str('pymetrics'): [str('py.typed')]}, # PEP 561
zip_safe=False, # PEP 561
include_package_data=True,
install_requires=[
'attrs>=17.4,<20',
'conformity>=1.26.9,!=1.27.0,<2.0',
'enum34;python_version<"3.4"',
'six',
'typing~=3.7.4;python_version<"3.5"',
'typing-extensions~=3.7.4;python_version<"3.8"',
],
install_requires=install_requires,
tests_require=tests_require,
setup_requires=['pytest-runner'] if {'pytest', 'test', 'ptr'}.intersection(sys.argv) else [],
test_suite='tests',
Expand Down

0 comments on commit 74de274

Please sign in to comment.