jenkins-bot has submitted this change and it was merged.
Change subject: Lua support only exists for Linux
......................................................................
Lua support only exists for Linux
Change-Id: I1f0675f87b107297a2a8a09fd81dd2b7e29aaa7e
---
M setup.py
1 file changed, 4 insertions(+), 2 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/setup.py b/setup.py
index 2886d88..b65d7c1 100644
--- a/setup.py
+++ b/setup.py
@@ -36,8 +36,6 @@
extra_deps['csv'] = ['unicodecsv']
script_deps = {
- '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'],
}
@@ -52,6 +50,10 @@
script_deps['flickrripper.py'].append('flickrapi' if sys.version_info[0] > 2
else 'flickrapi>=1.4.5')
+# lunatic-python is only available for Linux
+if sys.platform.startswith('linux'):
+ script_deps['script_wui.py'] = [irc_dep, 'lunatic-python', 'crontab']
+
dependency_links = [
'https://git.wikimedia.org/zip/?r=pywikibot/externals/httplib2.git&format=gz…',
'git+https://github.com/AlereDevices/lunatic-python.git#egg=lunatic-python',
--
To view, visit https://gerrit.wikimedia.org/r/203635
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1f0675f87b107297a2a8a09fd81dd2b7e29aaa7e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] config2: Support unicode args
......................................................................
[FIX] config2: Support unicode args
With 1e54a7d6 strings like '-dir' are unicode and whenever two strings
are compared and one of them is unicode one of them gets converted. In
this case the argument got converted into unicode using the ASCII codec
which fails if there are non-ASCII entries. This forces '-dir' back into
unicode.
Bug: T95803
Change-Id: Ib899ca2d8a84e5580f095046e91cdd5745da76c0
---
M pywikibot/config2.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index dbb1c28..4610e72 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -219,7 +219,7 @@
base_dir = ""
for arg in sys.argv[1:]:
- if arg.startswith("-dir:"):
+ if arg.startswith(str('-dir:')):
base_dir = arg[5:]
base_dir = os.path.expanduser(base_dir)
break
--
To view, visit https://gerrit.wikimedia.org/r/203652
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib899ca2d8a84e5580f095046e91cdd5745da76c0
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] version: Use same time for the date and time
......................................................................
[FIX] version: Use same time for the date and time
With 5654d3ce the date (and time) returned for undetermined
installations is a datetime object and no time struct. This now converts
the datetime object into a time structs.
Bug: T95314
Change-Id: I0177fa63218ffb9dd957f8c4219766d4cad10656
---
M pywikibot/version.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
XZise: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/pywikibot/version.py b/pywikibot/version.py
index 5063908..51a536f 100644
--- a/pywikibot/version.py
+++ b/pywikibot/version.py
@@ -72,7 +72,7 @@
except Exception:
try:
hsh = get_module_version(pywikibot)
- date = get_module_mtime(pywikibot)
+ date = get_module_mtime(pywikibot).timetuple()
tag = 'pywikibot/__init__.py'
rev = '-1 (unknown)'
--
To view, visit https://gerrit.wikimedia.org/r/202447
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0177fa63218ffb9dd957f8c4219766d4cad10656
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Restore Page.__repr__ to pre-unicode_literals behaviour
......................................................................
Restore Page.__repr__ to pre-unicode_literals behaviour
1e54a7d introduce unicode_literals, but altered the output
of Page.__repr__. Prior to that change, Page.__repr__ in py2
emitted non-ascii encoded using config.console_encoding so it
would display correctly in the console, and the logging layer
would then recode it to the required encoding.
Change-Id: I7da9ba18fcdfa31c6f78db68179a4c953bc649a7
---
M pywikibot/page.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
XZise: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py
index 4e29b24..bd9bb8a 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -273,8 +273,8 @@
def __repr__(self):
"""Return a more complete string representation."""
- title = self.title().encode(config.console_encoding).decode('unicode-escape')
- return '{0}({1})'.format(self.__class__.__name__, title)
+ title = self.title().encode(config.console_encoding)
+ return str('{0}({1})').format(self.__class__.__name__, title)
def _cmpkey(self):
"""
--
To view, visit https://gerrit.wikimedia.org/r/203524
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7da9ba18fcdfa31c6f78db68179a4c953bc649a7
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] DrySite: Define 'case' value
......................................................................
[FIX] DrySite: Define 'case' value
With bcde541f the case method in DrySite has been removed but some tests
require that value. This reimplements it using the siteinfo.
Change-Id: Ie82c6ad20ebd41b6c60f12cd94f480975918f664
---
M tests/utils.py
1 file changed, 4 insertions(+), 3 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/utils.py b/tests/utils.py
index 65c2901..8aeb071 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -191,11 +191,12 @@
self._paraminfo = DryParamInfo()
self._siteinfo = DummySiteinfo({})
self._siteinfo._cache['lang'] = (code, True)
+ self._siteinfo._cache['case'] = (
+ 'case-sensitive' if self.family.name == 'wiktionary' else
+ 'first-letter', True)
self._namespaces = SelfCallDict(
Namespace.builtin_namespaces(
- case='case-sensitive'
- if self.family.name == 'wiktionary'
- else 'first-letter'))
+ case=self.siteinfo['case']))
def __repr__(self):
"""Override default so warnings and errors indicate test is dry."""
--
To view, visit https://gerrit.wikimedia.org/r/203640
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie82c6ad20ebd41b6c60f12cd94f480975918f664
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>