John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/183749
Change subject: Add match_images script dependency on PIL.ImageTk
......................................................................
Add match_images script dependency on PIL.ImageTk
Change-Id: Id17b86983ce8b6f15ed26c633f8a71bc2d129454
---
M tests/script_tests.py
1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/49/183749/1
diff --git a/tests/script_tests.py b/tests/script_tests.py
index bdb5a9d..3760122 100644
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -19,12 +19,17 @@
scripts_path = os.path.join(_root_dir, 'scripts')
+# These dependencies are not always the package name which is in setup.py.
+# e.g. 'PIL.ImageTk' is a object provided by several different pypi packages,
+# and setup.py requests that 'Pillow' is installed to provide 'PIL.ImageTk'.
+# Here, it doesnt matter which pypi package was requested and installed.
+# Here, the name given to the module which will be imported is required.
script_deps = {
'script_wui': ['crontab', 'lua'],
# Note: package 'lunatic-python' provides module 'lua'
'flickrripper': ['flickrapi'],
-
+ 'match_images': ['PIL.ImageTk'],
'states_redirect': ['pycountry'],
}
if sys.version_info < (2, 7):
--
To view, visit https://gerrit.wikimedia.org/r/183749
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id17b86983ce8b6f15ed26c633f8a71bc2d129454
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits