Optionally depend on launchpadlib

This commit is contained in:
Bastian Germann 2018-10-13 00:11:04 +02:00
parent e124229040
commit ba01cd35e1
3 changed files with 10 additions and 6 deletions

View File

@ -112,8 +112,8 @@ class UiAboutDialog(object):
'Andreas "googol" Preikschat', 'Ken "alisonken1" Roberts', 'Raoul "superfly" Snyman',
'Jonathan "springermac" Springer', 'Philip "Phill" Ridout']
contributors = ['Stuart "sibecker" Becker', 'Gerald "jerryb" Britton', 'Jonathan "gushie" Corwin',
'Samuel "MrGamgee" Findlay', 'Michael "cocooncrash" Gorven', 'Scott "sguerrieri" Guerrieri',
'Simon Hanna', 'Chris Hill',
'Samuel "MrGamgee" Findlay', 'Bastian Germann', 'Michael "cocooncrash" Gorven',
'Scott "sguerrieri" Guerrieri', 'Simon Hanna', 'Chris Hill',
'Matthias "matthub" Hub', 'Meinert "m2j" Jordan', 'Ian Knightly'
'Armin "orangeshirt" K\xf6hler',
'Rafael "rafaellerm" Lerm', 'Gabriel loo', 'Erik "luen" Lundin', 'Edwin "edwinlunando" Lunando',

View File

@ -97,11 +97,12 @@ OPTIONAL_MODULES = [
('mysql.connector', '(MySQL support)'),
('pyodbc', '(ODBC support)'),
('psycopg2', '(PostgreSQL support)'),
('jenkins', '(access jenkins api - package name: jenkins-webapi)'),
('enchant', '(spell checker)'),
('pysword', '(import SWORD bibles)'),
('uno', '(LibreOffice/OpenOffice support)'),
# development/testing modules
('jenkins', '(access jenkins api)'),
('launchpadlib', '(launchpad script support)'),
('nose2', '(testing framework)'),
('pylint', '(linter)')
]

View File

@ -138,6 +138,7 @@ elif sys.platform.startswith('darwin'):
'pyobjc-framework-Cocoa'
])
elif sys.platform.startswith('linux'):
# dbus-python could be replaced by PyQt5.QtDBus
requires.append('dbus-python')
setup(
@ -194,14 +195,16 @@ using a computer and a data projector.""",
python_requires='>=3.6',
install_requires=requires,
extras_require={
'jenkins': ['python-jenkins'],
'mysql': ['mysql-connector-python'],
'odbc': ['pyodbc'],
'postgresql': ['psycopg2'],
'spellcheck': ['pyenchant >= 1.6'],
'sword-bibles': ['pysword']
'sword-bibles': ['pysword'],
# Required for scripts/*.py:
'jenkins': ['python-jenkins'],
'launchpad': ['launchpadlib']
},
tests_require=['nose2', 'PyICU', 'pylint'],
tests_require=['nose2', 'PyICU', 'pylint', 'pyodbc', 'pysword'],
test_suite='nose2.collector.collector',
entry_points={'gui_scripts': ['openlp = openlp.__main__:start']}
)