Skip to content

setup: replace isbnlib with isbnlib2#140

Merged
slint merged 2 commits into
inveniosoftware:masterfrom
ptamarit:isbnlib2
May 28, 2026
Merged

setup: replace isbnlib with isbnlib2#140
slint merged 2 commits into
inveniosoftware:masterfrom
ptamarit:isbnlib2

Conversation

@ptamarit

@ptamarit ptamarit commented May 22, 2026

Copy link
Copy Markdown
Member

As mentioned in xlcnd/isbnlib#143, the library has not been updated for some time, and masking can be wrong for some ISBN.

For instance, isbnlib.mask("9798991050005") returns:

  • '979-8--99105000-5' with isbnlib version 3.10.14
  • '979-8-9910500-0-5' with isbnlib2 version 3.11.7

Also fixes #135 where isbnlib.mask("9791370064242") returns:

  • '' with isbnlib version 3.10.14
  • '979-13-7006-424-2' with isbnlib2 version 3.11.7

Requiring a minimum version of 3.11.7 since this is the last version supporting Python 3.9 (version 3.11.8 requires Python 3.10).

Licenses:

  • isbnlib is LGPLv3
  • isbnlib2 is LGPL-3.0-or-later

@tmorrell tmorrell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a very sensible change to a maintained version of the library

@slint slint merged commit 187b3d1 into inveniosoftware:master May 28, 2026
3 checks passed
@ptamarit ptamarit deleted the isbnlib2 branch May 28, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

isbn: valid ISBN fails

3 participants