Page MenuHomePhabricator

pywikibot==2.0rc1.post2 fails with ValueError: Invalid version number "1.27.0-wmf.1"
Closed, DuplicatePublic

Description

labs/tools/heritage depends on pywikibot which is currently 2.0rc1.post2 in Pypi:

...
  File ".tox/py27/lib/python2.7/site-packages/pywikibot/site.py", line 2147, in _build_namespaces
    is_mw114 = MediaWikiVersion(self.version()) >= MediaWikiVersion('1.14')
  File "python2.7/distutils/version.py", line 40, in __init__
    self.parse(vstring)
  File ".tox/py27/lib/python2.7/site-packages/pywikibot/tools/__init__.py", line 331, in parse
    raise ValueError('Invalid version number "{0}"'.format(vstring))
ValueError: Invalid version number "1.27.0-wmf.1"

:-(

Event Timeline

hashar assigned this task to JeanFred.
hashar raised the priority of this task from to Medium.
hashar updated the task description. (Show Details)
hashar added subscribers: hashar, gerritbot, JeanFred, Aklapper.
$ . .tox/py27/bin/activate
$ pip freeze
cov-core==1.15.0
coverage==4.0
funcsigs==0.4
httplib2==0.9.2
ipaddress==1.0.14
mock==1.3.0
mwparserfromhell==0.4.2
MySQL-python==1.2.5
nose==1.3.7
nose-cov==1.6
pbr==1.8.0
pywikibot==2.0rc1.post2
six==1.9.0
wheel==0.24.0

Ugh 😕 it should've been updated to 2.0rc3 which has that issue fixed, but it seems nobody has uploaded it to pypi.

XZise set Security to None.