This is an automated email from the ASF dual-hosted git repository.
wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new ea4c7b1 ARROW-2110: [Python] Only require pytest-runner on test
commands
ea4c7b1 is described below
commit ea4c7b1af62d67e0b0c4ba468ce2765bcaaa3f96
Author: Uwe L. Korn <[email protected]>
AuthorDate: Wed Feb 7 15:37:15 2018 -0500
ARROW-2110: [Python] Only require pytest-runner on test commands
Author: Uwe L. Korn <[email protected]>
Closes #1570 from xhochy/ARROW-2110 and squashes the following commits:
aad82911 [Uwe L. Korn] ARROW-2110: [Python] Only require pytest-runner on
test commands
---
python/setup.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/python/setup.py b/python/setup.py
index 726bb51..849d120 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -428,6 +428,13 @@ def parse_version(root):
else:
return version
+
+# Only include pytest-runner in setup_requires if we're invoking tests
+if {'pytest', 'test', 'ptr'}.intersection(sys.argv):
+ setup_requires = ['pytest-runner']
+else:
+ setup_requires = []
+
setup(
name="pyarrow",
packages=['pyarrow', 'pyarrow.tests'],
@@ -447,7 +454,7 @@ setup(
]
},
use_scm_version={"root": "..", "relative_to": __file__, "parse":
parse_version},
- setup_requires=['setuptools_scm', 'cython >= 0.23', 'pytest-runner'],
+ setup_requires=['setuptools_scm', 'cython >= 0.23'] + setup_requires,
install_requires=install_requires,
tests_require=['pytest', 'pandas'],
description="Python library for Apache Arrow",
--
To stop receiving notification emails like this one, please contact
[email protected].