XZise has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/193098

Change subject: [FIX] Use IRC before v10 in Python 2.6
......................................................................

[FIX] Use IRC before v10 in Python 2.6

With version 10 of the irc package, the support for Python 2.6 was
dropped. It installs the latest version compatible with Python 2.6 which
is 8.9 now.

Bug: T90441
Change-Id: I5fe99f821203df4e0693c66fe77bb33b87b70f5e
---
M setup.py
1 file changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/98/193098/1

diff --git a/setup.py b/setup.py
index fcfd000..744405e 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,9 @@
 
 dependencies = ['httplib2>=0.9']
 
+# the irc module has no Python 2.6 support since 10.0
+irc_dep = 'irc==8.9' if sys.version_info < (2, 7) else 'irc'
+
 extra_deps = {
     # Core library dependencies
     'daemonize': ['daemonize'],
@@ -21,7 +24,7 @@
     'MySQL': ['oursql'],
     'Yahoo': ['pYsearch'],
     'Google': ['google'],
-    'IRC': ['irc'],
+    'IRC': [irc_dep],
     'mwparserfromhell': ['mwparserfromhell>=0.3.3'],
     'Tkinter': ['Pillow'],
     'rcstream': ['socketIO-client'],
@@ -32,7 +35,7 @@
     extra_deps['csv'] = ['unicodecsv']
 
 script_deps = {
-    'script_wui.py': ['irc', 'lunatic-python', 'crontab'],
+    'script_wui.py': [irc_dep, 'lunatic-python', 'crontab'],
     # Note: None of the 'lunatic-python' repos on github support MS Windows.
     'flickrripper.py': ['Pillow'],
     'states_redirect.py': ['pycountry']

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5fe99f821203df4e0693c66fe77bb33b87b70f5e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to