Skip to content

Commit 6991e35

Browse files
authored
Merge pull request #60 from namehash/unicode-16.0
Unicode 16.0
2 parents c1b9b77 + 086caa1 commit 6991e35

10 files changed

Lines changed: 2179837 additions & 178 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* This library is being maintained by the team at [NameHash Labs](https://namehashlabs.org) as part of the greater [NameGuard](https://nameguard.io) solution to help protect the ENS community.
1111
* Passes **100%** of the [official validation tests](https://github.com/adraffy/ens-normalize.js/tree/main/validate) (validated automatically with pytest on Linux, MacOS, and Windows, see below for details).
1212
* Passes an [additional suite of further tests](/tools/updater/update-ens.js#L54) for compatibility with the official [Javascript reference implementation](https://github.com/adraffy/ens-normalize.js) and code testing coverage.
13-
* Based on [JavaScript implementation version 1.9.0](https://github.com/adraffy/ens-normalize.js/tree/4873fbe6393e970e186ab57860cc59cbbb1fa162).
13+
* Up-to-date with ENS Normalize reference implementation as of Unicode version 16.0.
1414

1515
## Glossary
1616

ens_normalize/spec.pickle

111 KB
Binary file not shown.

poetry.lock

Lines changed: 185 additions & 162 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ens-normalize"
3-
version = "3.0.8"
3+
version = "3.0.9"
44
description = "Ethereum Name Service (ENS) Name Normalizer"
55
license = "MIT"
66
authors = ["Jakub Karbowski <jakub@namehash.io>"]
@@ -12,7 +12,7 @@ packages = [{include = "ens_normalize"}]
1212

1313
[tool.poetry.dependencies]
1414
python = "^3.8"
15-
pyunormalize = "^15.1.0"
15+
pyunormalize = "^16.0.0"
1616

1717
[tool.poetry.group.dev.dependencies]
1818
pytest = "^7.2.1"

tests/ens-normalize-tests.json

Lines changed: 1480580 additions & 1 deletion
Large diffs are not rendered by default.

tests/test_normalization.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ def test_error_meta():
376376
e = ens_process('0x.0χ.0х').error
377377
assert e.general_info == 'Contains visually confusing characters from Cyrillic and Latin scripts'
378378

379+
380+
@pytest.mark.skip(reason='there are no such characters anymore')
381+
def test_error_meta_other_scripts():
379382
# unknown script for character
380383
c = chr(771)
381384
e: CurableSequence = ens_process(f'bitcoin.bitcin.bi̇tcin.bitсin{c}').error

0 commit comments

Comments
 (0)