Merge pull request #2484 from fonttools/unicodedata2-14
bump unicodedata2 dependency to 14.0.0
This commit is contained in:
commit
629f44b8cc
@ -59,8 +59,8 @@ with ``ttx`` we use the ``unicodedata`` module in the Standard Library.
|
|||||||
The version included in there varies between different Python versions.
|
The version included in there varies between different Python versions.
|
||||||
To use the latest available data, you can install:
|
To use the latest available data, you can install:
|
||||||
|
|
||||||
* `unicodedata2 <https://pypi.python.org/pypi/unicodedata2>`__: ``unicodedata`` backport for Python 2.7
|
* `unicodedata2 <https://pypi.python.org/pypi/unicodedata2>`__: ``unicodedata`` backport for Python
|
||||||
and 3.x updated to the latest Unicode version 12.0. Note this is not necessary if you use Python 3.8
|
3.x updated to the latest Unicode version 14.0. Note this is not necessary if you use Python 3.11
|
||||||
as the latter already comes with an up-to-date ``unicodedata``.
|
as the latter already comes with an up-to-date ``unicodedata``.
|
||||||
|
|
||||||
*Extra:* ``unicode``
|
*Extra:* ``unicode``
|
||||||
|
@ -5,7 +5,7 @@ from bisect import bisect_right
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# use unicodedata backport compatible with python2:
|
# use unicodedata backport compatible with python2:
|
||||||
# https://github.com/mikekap/unicodedata2
|
# https://github.com/fonttools/unicodedata2
|
||||||
from unicodedata2 import *
|
from unicodedata2 import *
|
||||||
except ImportError: # pragma: no cover
|
except ImportError: # pragma: no cover
|
||||||
# fall back to built-in unicodedata (possibly outdated)
|
# fall back to built-in unicodedata (possibly outdated)
|
||||||
|
@ -119,8 +119,8 @@ are required to unlock the extra features named "ufo", etc.
|
|||||||
To use the latest available data, you can install:
|
To use the latest available data, you can install:
|
||||||
|
|
||||||
* `unicodedata2 <https://pypi.python.org/pypi/unicodedata2>`__:
|
* `unicodedata2 <https://pypi.python.org/pypi/unicodedata2>`__:
|
||||||
``unicodedata`` backport for Python 2.7 and 3.x updated to the latest
|
``unicodedata`` backport for Python 3.x updated to the latest Unicode
|
||||||
Unicode version 12.0. Note this is not necessary if you use Python 3.8
|
version 14.0. Note this is not necessary if you use Python 3.11
|
||||||
as the latter already comes with an up-to-date ``unicodedata``.
|
as the latter already comes with an up-to-date ``unicodedata``.
|
||||||
|
|
||||||
*Extra:* ``unicode``
|
*Extra:* ``unicode``
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# extension 'brotlipy' on PyPy
|
# extension 'brotlipy' on PyPy
|
||||||
brotli==1.0.9; platform_python_implementation != "PyPy"
|
brotli==1.0.9; platform_python_implementation != "PyPy"
|
||||||
brotlicffi==1.0.9.2; platform_python_implementation == "PyPy"
|
brotlicffi==1.0.9.2; platform_python_implementation == "PyPy"
|
||||||
unicodedata2==13.0.0.post2; python_version < '3.9' and platform_python_implementation != "PyPy"
|
unicodedata2==14.0.0; python_version < '3.11'
|
||||||
scipy==1.7.3; platform_python_implementation != "PyPy"
|
scipy==1.7.3; platform_python_implementation != "PyPy"
|
||||||
munkres==1.1.4; platform_python_implementation == "PyPy"
|
munkres==1.1.4; platform_python_implementation == "PyPy"
|
||||||
zopfli==0.1.9
|
zopfli==0.1.9
|
||||||
|
6
setup.py
6
setup.py
@ -90,11 +90,9 @@ extras_require = {
|
|||||||
# of the Unicode Character Database instead of the built-in unicodedata
|
# of the Unicode Character Database instead of the built-in unicodedata
|
||||||
# which varies between python versions and may be outdated.
|
# which varies between python versions and may be outdated.
|
||||||
"unicode": [
|
"unicode": [
|
||||||
# the unicodedata2 extension module doesn't work on PyPy.
|
# Python 3.11 already has Unicode 14.0, so the backport is not needed.
|
||||||
# Python 3.9 already has Unicode 13.0, so the backport is not needed.
|
|
||||||
(
|
(
|
||||||
"unicodedata2 >= 13.0.0; "
|
"unicodedata2 >= 14.0.0; python_version < '3.11'"
|
||||||
"python_version < '3.9' and platform_python_implementation != 'PyPy'"
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
# for graphite type tables in ttLib/tables (Silf, Glat, Gloc)
|
# for graphite type tables in ttLib/tables (Silf, Glat, Gloc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user