File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ import sys
12import versioneer
3+
24try :
35 from setuptools import setup
46except ImportError :
57 from distutils .core import setup
68
9+ # Only install pytest and runner when test command is run
10+ # This makes work easier for offline installs or low bandwidth machines
11+ needs_pytest = {'pytest' , 'test' , 'ptr' }.intersection (sys .argv )
12+ pytest_runner = ['pytest-runner' ] if needs_pytest else []
13+
714setup (
815 name = 'tableauserverclient' ,
916 version = versioneer .get_version (),
1623 license = 'MIT' ,
1724 description = 'A Python module for working with the Tableau Server REST API.' ,
1825 test_suite = 'test' ,
19- setup_requires = [
20- 'pytest-runner'
21- ],
26+ setup_requires = pytest_runner ,
2227 install_requires = [
2328 'requests>=2.11,<3.0'
2429 ],
You can’t perform that action at this time.
0 commit comments