From 1ae306ae8f0d07cd34b5c29d5537ff9d397652cc Mon Sep 17 00:00:00 2001 From: mhchia Date: Wed, 24 Jul 2019 16:34:55 +0800 Subject: [PATCH] Fix mypy command - Remove requirements_dev.txt - Add detailed versions --- requirements_dev.txt | 7 ------- setup.py | 14 +++++++------- tox.ini | 2 +- 3 files changed, 8 insertions(+), 15 deletions(-) delete mode 100644 requirements_dev.txt diff --git a/requirements_dev.txt b/requirements_dev.txt deleted file mode 100644 index e3d8c0e..0000000 --- a/requirements_dev.txt +++ /dev/null @@ -1,7 +0,0 @@ -pytest>=3.7 -codecov -pytest-cov -pytest-asyncio -pylint -grpcio -grpcio-tools diff --git a/setup.py b/setup.py index a2b0aa2..bc8cefb 100644 --- a/setup.py +++ b/setup.py @@ -10,17 +10,17 @@ classifiers = [ # pylint: disable=invalid-name extras_require = { "test": [ - "codecov", - "pytest", - "pytest-cov", - "pytest-asyncio", + "codecov>=2.0.15,<3.0.0", + "pytest>=4.6.3,<5.0.0", + "pytest-cov>=2.7.1,<3.0.0", + "pytest-asyncio>=0.10.0,<1.0.0", ], "lint": [ - "pylint", - "mypy", + "pylint>=2.3.1,<3.0.0", + "mypy>=0.701,<1.0", ], "dev": [ - "tox", + "tox>=3.13.2,<4.0.0", ], } diff --git a/tox.ini b/tox.ini index d7cf5d7..1fc2b12 100644 --- a/tox.ini +++ b/tox.ini @@ -18,4 +18,4 @@ basepython = python3 extras = dev commands = pylint --rcfile={toxinidir}/.pylintrc libp2p tests - mypy -p p2pclient --config-file {toxinidir}/mypy.ini + mypy -p libp2p --config-file {toxinidir}/mypy.ini