Add xlib to test_requires for Linux

This commit is contained in:
Raoul Snyman 2019-03-26 09:55:02 -07:00
parent 386985349d
commit 461ffeee3d

View File

@ -120,7 +120,8 @@ requires = [
'lxml', 'lxml',
'Mako', 'Mako',
'pymediainfo >= 2.2', 'pymediainfo >= 2.2',
'PyQt5 >= 5.5', 'PyQt5 >= 5.12',
'PyQtWebEngine',
'QtAwesome', 'QtAwesome',
'requests', 'requests',
'SQLAlchemy >= 0.5', 'SQLAlchemy >= 0.5',
@ -128,6 +129,12 @@ requires = [
'WebOb', 'WebOb',
'websockets' 'websockets'
] ]
test_requires = [
'nose2',
'pylint',
'pyodbc',
'pysword'
]
if sys.platform.startswith('win'): if sys.platform.startswith('win'):
requires.append('pywin32') requires.append('pywin32')
elif sys.platform.startswith('darwin'): elif sys.platform.startswith('darwin'):
@ -137,6 +144,8 @@ elif sys.platform.startswith('darwin'):
]) ])
elif sys.platform.startswith('linux'): elif sys.platform.startswith('linux'):
requires.append('dbus-python') requires.append('dbus-python')
test_requires.append('xlib')
setup( setup(
name='OpenLP', name='OpenLP',
@ -202,7 +211,7 @@ using a computer and a data projector.""",
'jenkins': ['python-jenkins'], 'jenkins': ['python-jenkins'],
'launchpad': ['launchpadlib'] 'launchpad': ['launchpadlib']
}, },
tests_require=['nose2', 'pylint', 'pyodbc', 'pysword'], tests_require=test_requires,
test_suite='nose2.collector.collector', test_suite='nose2.collector.collector',
entry_points={'gui_scripts': ['openlp = run_openlp:start']} entry_points={'gui_scripts': ['openlp = run_openlp:start']}
) )