From 38a6f1b2ca86c46be07050dcd1243aa7682289e9 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Sat, 3 Aug 2019 11:19:25 -0700 Subject: [PATCH] Use PyMySQL rather than MySQL Connector --- openlp/core/lib/db.py | 2 +- scripts/check_dependencies.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openlp/core/lib/db.py b/openlp/core/lib/db.py index e2ef2e33e..62cc7101d 100644 --- a/openlp/core/lib/db.py +++ b/openlp/core/lib/db.py @@ -67,7 +67,7 @@ def database_exists(url): create_database(engine.url) database_exists(engine.url) #=> True - Borrowed from SQLAlchemy_Utils (v0.32.14 )since we only need this one function. + Borrowed from SQLAlchemy_Utils (v0.32.14) since we only need this one function. """ url = copy(make_url(url)) diff --git a/scripts/check_dependencies.py b/scripts/check_dependencies.py index a08bfc860..0d5f3f5d5 100755 --- a/scripts/check_dependencies.py +++ b/scripts/check_dependencies.py @@ -97,7 +97,7 @@ MODULES = [ OPTIONAL_MODULES = [ ('qdarkstyle', '(dark style support)'), - ('mysql.connector', '(MySQL support)'), + ('pymysql', '(MySQL support)'), ('pyodbc', '(ODBC support)'), ('psycopg2', '(PostgreSQL support)'), ('enchant', '(spell checker)'), diff --git a/setup.py b/setup.py index 75e343f45..d88b94755 100644 --- a/setup.py +++ b/setup.py @@ -191,7 +191,7 @@ using a computer and a data projector.""", extras_require={ 'agpl-pdf': ['PyMuPDF'], 'darkstyle': ['QDarkStyle'], - 'mysql': ['mysql-connector-python'], + 'mysql': ['pymysql'], 'odbc': ['pyodbc'], 'postgresql': ['psycopg2'], 'spellcheck': ['pyenchant >= 1.6'],