+import sys
+
from setuptools import setup, find_packages
+if sys.version_info >= (3,0):
+ mypy = ['mypy', 'pytest-mypy']
+ pytest = 'pytest >=2.1.3'
+else:
+ mypy = []
+ pytest = 'pytest >=2.1.3,<5'
+
+
with open("README.rst", "r") as fh:
long_description = fh.read()
install_requires=(
'six',
),
+ setup_requires=['pytest-runner'],
tests_require=[
- 'pytest >=2.1.3',
+ pytest,
'tox',
- ],
+ ] + mypy,
classifiers = [
'Intended Audience :: Developer',
'Operating System :: POSIX :: Linux',
skip_missing_interpreters = true
[testenv]
-deps=
- pytest
-commands=py.test -v {posargs:ceph/tests}
+deps=-rrequirements.txt
+
+[testenv:py3]
+commands=python setup.py test --addopts="--mypy --mypy-ignore-missing-imports" {posargs}
+
+[testenv:py27]
+commands=python setup.py test {posargs}
[tool:pytest]
norecursedirs = .* _* virtualenv