jenkins-bot submitted this change.

View Change

Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
[deps] Update scrips dependencies

Bug: T223826
Change-Id: I062a7c72c28ab588f13009e74b3f370f976d5587
---
M requirements.txt
M setup.py
2 files changed, 5 insertions(+), 32 deletions(-)

diff --git a/requirements.txt b/requirements.txt
index 4fd5153..de654f8 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -18,7 +18,7 @@
# or
# $ awk -F '[#>=]' '{print $1}' requirements.txt | xargs apt-cache search

-# mandatory; see README-conversion.txt
+# mandatory
requests>=2.20.1, < 2.26.0; python_version < '3.6'
requests>=2.20.1 ; python_version >= '3.6'
setuptools>=20.2, !=50.0.0, <50.2.0 ; python_version < '3.6'
@@ -29,8 +29,8 @@
# about the user
mwoauth>=0.2.4,!=0.3.1

-# cosmetic_changes and scripts/isbn
-python-stdnum >= 1.15
+# cosmetic_changes
+python-stdnum >= 1.16

# GUI
Pillow >= 6.2.2, < 8.0.0 ; python_version < '3.6'
@@ -41,9 +41,6 @@
google >= 1.7
sseclient >= 0.0.18,!=0.0.23,!=0.0.24

-# scripts/flickrripper.py
-flickrapi >= 2.2
-
# textlib.py and patrol.py
mwparserfromhell>=0.3.3

@@ -53,13 +50,5 @@
# core HTML comparison parser in diff module
beautifulsoup4

-# scripts/states_redirect.py
-pycountry
-
# scripts/weblinkchecker.py
memento_client>=0.5.1,!=0.6.0
-
-# tools/__init__.py
-# pywikibot prefers using the inbuilt bz2 module if python was compiled with
-# bz2 support. But if it wasn't, bz2file is used instead.
-# bz2file
diff --git a/setup.py b/setup.py
index f1bed08..757acde 100644
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@
extra_deps = {
# Core library dependencies
'eventstreams': ['sseclient!=0.0.23,!=0.0.24,>=0.0.18'],
- 'isbn': ['python-stdnum>=1.15'],
+ 'isbn': ['python-stdnum>=1.16'],
'Google': ['google>=1.7'],
'mwparserfromhell': ['mwparserfromhell>=0.3.3'],
'Tkinter': [ # vulnerability found in Pillow<6.2.2
@@ -94,14 +94,6 @@

# ------- setup extra_requires for scripts ------- #
script_deps = {
- 'flickrripper.py': [
- 'flickrapi>=2.2',
- ] + extra_deps['Tkinter'],
- 'imageharvest.py': extra_deps['html'],
- 'isbn.py': extra_deps['isbn'],
- 'match_images.py': extra_deps['Tkinter'],
- 'patrol.py': extra_deps['mwparserfromhell'],
- 'states_redirect.py': ['pycountry'],
'weblinkchecker.py': ['memento_client!=0.6.0,>=0.5.1'],
}

@@ -118,17 +110,9 @@
'setuptools>=20.2 ; python_version >= "3.6"',
]

-try:
- import bz2
-except ImportError: # pragma: no cover
- # Use bz2file if the python is not compiled with bz2 support.
- dependencies.append('bz2file')
-else:
- assert bz2
-

# ------- setup tests_require ------- #
-test_deps = ['bz2file', 'mock']
+test_deps = ['mock']
# Some of the ui_tests depend on accessing the console window's menu
# to set the console font and copy and paste, achieved using pywinauto
# which depends on pywin32.

To view, visit change 665653. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I062a7c72c28ab588f13009e74b3f370f976d5587
Gerrit-Change-Number: 665653
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged