From 5b9941c05f7ca5636475e7681bf483c2e6248f21 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 25 Jun 2019 11:57:17 -0500 Subject: [PATCH 1/2] PKG: Add test extra Closes https://github.com/pandas-dev/pandas/issues/25593 --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 389e8553eb3a3..6f94d2a404745 100755 --- a/setup.py +++ b/setup.py @@ -784,4 +784,11 @@ def srcpath(name=None, suffix='.pyx', subdir='src'): classifiers=CLASSIFIERS, platforms='any', python_requires='>=3.5', + extras_require={ + 'test': [ + # sync with setup.cfg minversion & install.rst + 'pytest>=4.0.2', + 'hypothesis>=3.58', + ] + }, **setuptools_kwargs) From 901bc52d7fb0d220d3be416361fdecc7bc5dfd5b Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 25 Jun 2019 13:31:23 -0500 Subject: [PATCH 2/2] pytest-xdist --- setup.cfg | 1 + setup.py | 1 + 2 files changed, 2 insertions(+) diff --git a/setup.cfg b/setup.cfg index 68d042ecfc4b8..eb687c1f546d4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -57,6 +57,7 @@ split_penalty_after_opening_bracket = 1000000 split_penalty_logical_operator = 30 [tool:pytest] +# sync minversion with setup.cfg & install.rst minversion = 4.0.2 testpaths = pandas markers = diff --git a/setup.py b/setup.py index 6f94d2a404745..0380c717ecb41 100755 --- a/setup.py +++ b/setup.py @@ -788,6 +788,7 @@ def srcpath(name=None, suffix='.pyx', subdir='src'): 'test': [ # sync with setup.cfg minversion & install.rst 'pytest>=4.0.2', + 'pytest-xdist', 'hypothesis>=3.58', ] },