jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-Other-scripts.
TASK DESCRIPTION
The ISBN validation data in isbn.py have not been updated since September 2007. The
ISBN ranges are updated regularly, meaning the isbn.py script is currently wrong. Rather
than keeping this data up to date, the algorithm in isbn.py should be replaced with an
external package which provides the same functionality and is py3 compatible, packaged on
pypi, and is regularly updated as the ISBN ranges are issued and modified.
There are several such packages on pypi. See
https://pypi.python.org/pypi?%3Aaction=search&term=isbn&submit=sear…
The most useful is
https://pypi.python.org/pypi/python-stdnum
Also up to date:
https://github.com/nekobcn/isbnid
https://pypi.python.org/pypi/isbnlib /
https://pypi.python.org/pypi/isbntools
https://pypi.python.org/pypi/isbn_hyphenate
Ideally isbn is able to use whichever library is installed.
TASK DETAIL
https://phabricator.wikimedia.org/T85240
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs