Skip to content

Commit

Permalink
add pythonnet to tests_require for win32 only
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Jan 27, 2020
1 parent 15f6f6f commit 9102f58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ def fetch_init(key):
return re.search(r'{}\s*=\s*(.*)'.format(key), init_text).group(1)[1:-1]


tests_require = ['pytest', 'pytest-cov', 'PySide2']
if sys.platform == 'win32':
tests_require.append('pythonnet')

testing = {'test', 'tests', 'pytest'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if testing else []

Expand Down Expand Up @@ -117,7 +121,7 @@ def fetch_init(key):
'Topic :: Scientific/Engineering',
],
setup_requires=sphinx + pytest_runner,
tests_require=['pytest', 'pytest-cov', 'PySide2', 'pythonnet'],
tests_require=tests_require,
install_requires=[],
extras_require={
'pyside': ['PySide2'],
Expand Down

0 comments on commit 9102f58

Please sign in to comment.