jenkins-bot has submitted this change and it was merged.

Change subject: Test extras on Appveyor builds
......................................................................


Test extras on Appveyor builds

Skip installation of oursql, as it implicitly depends on Cython
and fails if it is not present, there are not any tests
using the mysql datasource, and the main usage is on the UNIX
Wikimedia labs where the databases are locally available.

Also Cython is large and requires a compiler, which many
Windows users do not have installed.

Change-Id: Ieef7b7480297fc82ddcfebfd12251006fc99efe2
---
M .appveyor.yml
M setup.py
2 files changed, 5 insertions(+), 0 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, but someone else must approve
  XZise: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.appveyor.yml b/.appveyor.yml
index 14af966..18c93b7 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -11,6 +11,8 @@
     PYWIKIBOT2_DIR: "%appdata%\\Pywikibot"
     PYWIKIBOT2_USER_CONFIG: "%appdata%\\Pywikibot\\user-config.py"
 
+    PYSETUP_TEST_EXTRAS: "1"
+
   matrix:
 
     # Pywikibot support matrix suggests 'should run' on Python 2.6.5+
diff --git a/setup.py b/setup.py
index 350eb12..ee5bab7 100644
--- a/setup.py
+++ b/setup.py
@@ -126,6 +126,9 @@
     if 'mwlib' in test_deps:
         test_deps.remove('mwlib')
 
+    if 'oursql' in test_deps and os.name == 'nt':
+        test_deps.remove('oursql')  # depends on Cython
+
 # These extra dependencies are needed other unittest fails to load tests.
 if sys.version_info[0] == 2:
     test_deps += extra_deps['csv']

-- 
To view, visit https://gerrit.wikimedia.org/r/216723
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ieef7b7480297fc82ddcfebfd12251006fc99efe2
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl>
Gerrit-Reviewer: XZise <commodorefabia...@gmx.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
Pywikibot-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to