idna 3.7__tar.gz → 3.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {idna-3.7 → idna-3.8}/HISTORY.rst +12 -0
- {idna-3.7 → idna-3.8}/PKG-INFO +10 -8
- {idna-3.7 → idna-3.8}/README.rst +7 -5
- {idna-3.7 → idna-3.8}/idna/core.py +6 -2
- idna-3.8/idna/package_data.py +2 -0
- {idna-3.7 → idna-3.8}/pyproject.toml +2 -2
- {idna-3.7 → idna-3.8}/tests/test_idna.py +1 -0
- {idna-3.7 → idna-3.8}/tools/idna-data +1 -1
- idna-3.7/idna/package_data.py +0 -2
- {idna-3.7 → idna-3.8}/LICENSE.md +0 -0
- {idna-3.7 → idna-3.8}/idna/__init__.py +0 -0
- {idna-3.7 → idna-3.8}/idna/codec.py +0 -0
- {idna-3.7 → idna-3.8}/idna/compat.py +0 -0
- {idna-3.7 → idna-3.8}/idna/idnadata.py +0 -0
- {idna-3.7 → idna-3.8}/idna/intranges.py +0 -0
- {idna-3.7 → idna-3.8}/idna/py.typed +0 -0
- {idna-3.7 → idna-3.8}/idna/uts46data.py +0 -0
- {idna-3.7 → idna-3.8}/tests/IdnaTestV2.txt +0 -0
- {idna-3.7 → idna-3.8}/tests/__init__.py +0 -0
- {idna-3.7 → idna-3.8}/tests/test_idna_codec.py +0 -0
- {idna-3.7 → idna-3.8}/tests/test_idna_compat.py +0 -0
- {idna-3.7 → idna-3.8}/tests/test_idna_other.py +0 -0
- {idna-3.7 → idna-3.8}/tests/test_idna_uts46.py +0 -0
- {idna-3.7 → idna-3.8}/tests/test_intranges.py +0 -0
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
History
|
|
4
4
|
-------
|
|
5
5
|
|
|
6
|
+
3.8 (2024-08-23)
|
|
7
|
+
++++++++++++++++
|
|
8
|
+
|
|
9
|
+
- Fix regression where IDNAError exception was not being produced for
|
|
10
|
+
certain inputs.
|
|
11
|
+
- Add support for Python 3.13, drop support for Python 3.5 as it is no
|
|
12
|
+
longer testable.
|
|
13
|
+
- Documentation improvements
|
|
14
|
+
- Updates to package testing using Github actions
|
|
15
|
+
|
|
16
|
+
Thanks to Hugo van Kemenade for contributions to this release.
|
|
17
|
+
|
|
6
18
|
3.7 (2024-04-11)
|
|
7
19
|
++++++++++++++++
|
|
8
20
|
|
{idna-3.7 → idna-3.8}/PKG-INFO
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: idna
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.8
|
|
4
4
|
Summary: Internationalized Domain Names in Applications (IDNA)
|
|
5
5
|
Author-email: Kim Davies <kim+pypi@gumleaf.org>
|
|
6
|
-
Requires-Python: >=3.
|
|
6
|
+
Requires-Python: >=3.6
|
|
7
7
|
Description-Content-Type: text/x-rst
|
|
8
8
|
Classifier: Development Status :: 5 - Production/Stable
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
@@ -13,7 +13,6 @@ Classifier: Operating System :: OS Independent
|
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
15
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.5
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.8
|
|
@@ -21,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
24
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
25
25
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
26
26
|
Classifier: Topic :: Internet :: Name Service (DNS)
|
|
@@ -115,7 +115,9 @@ This library provides one such mapping that was developed by the
|
|
|
115
115
|
Unicode Consortium. Known as `Unicode IDNA Compatibility Processing
|
|
116
116
|
<https://unicode.org/reports/tr46/>`_, it provides for both a regular
|
|
117
117
|
mapping for typical applications, as well as a transitional mapping to
|
|
118
|
-
help migrate from older IDNA 2003 applications.
|
|
118
|
+
help migrate from older IDNA 2003 applications. Strings are
|
|
119
|
+
preprocessed according to Section 4.4 “Preprocessing for IDNA2008”
|
|
120
|
+
prior to the IDNA operations.
|
|
119
121
|
|
|
120
122
|
For example, “Königsgäßchen” is not a permissible label as *LATIN
|
|
121
123
|
CAPITAL LETTER K* is not allowed (nor are capital letters in general).
|
|
@@ -215,7 +217,7 @@ Additional Notes
|
|
|
215
217
|
* **Packages**. The latest tagged release version is published in the
|
|
216
218
|
`Python Package Index <https://pypi.org/project/idna/>`_.
|
|
217
219
|
|
|
218
|
-
* **Version support**. This library supports Python 3.
|
|
220
|
+
* **Version support**. This library supports Python 3.6 and higher.
|
|
219
221
|
As this library serves as a low-level toolkit for a variety of
|
|
220
222
|
applications, many of which strive for broad compatibility with older
|
|
221
223
|
Python versions, there is no rush to remove older interpreter support.
|
|
@@ -223,9 +225,9 @@ Additional Notes
|
|
|
223
225
|
maintenance burden has become too high.
|
|
224
226
|
|
|
225
227
|
* **Python 2**. Python 2 is supported by version 2.x of this library.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
Use "idna<3" in your requirements file if you need this library for
|
|
229
|
+
a Python 2 application. Be advised that these versions are no longer
|
|
230
|
+
actively developed.
|
|
229
231
|
|
|
230
232
|
* **Testing**. The library has a test suite based on each rule of the
|
|
231
233
|
IDNA specification, as well as tests that are provided as part of the
|
{idna-3.7 → idna-3.8}/README.rst
RENAMED
|
@@ -83,7 +83,9 @@ This library provides one such mapping that was developed by the
|
|
|
83
83
|
Unicode Consortium. Known as `Unicode IDNA Compatibility Processing
|
|
84
84
|
<https://unicode.org/reports/tr46/>`_, it provides for both a regular
|
|
85
85
|
mapping for typical applications, as well as a transitional mapping to
|
|
86
|
-
help migrate from older IDNA 2003 applications.
|
|
86
|
+
help migrate from older IDNA 2003 applications. Strings are
|
|
87
|
+
preprocessed according to Section 4.4 “Preprocessing for IDNA2008”
|
|
88
|
+
prior to the IDNA operations.
|
|
87
89
|
|
|
88
90
|
For example, “Königsgäßchen” is not a permissible label as *LATIN
|
|
89
91
|
CAPITAL LETTER K* is not allowed (nor are capital letters in general).
|
|
@@ -183,7 +185,7 @@ Additional Notes
|
|
|
183
185
|
* **Packages**. The latest tagged release version is published in the
|
|
184
186
|
`Python Package Index <https://pypi.org/project/idna/>`_.
|
|
185
187
|
|
|
186
|
-
* **Version support**. This library supports Python 3.
|
|
188
|
+
* **Version support**. This library supports Python 3.6 and higher.
|
|
187
189
|
As this library serves as a low-level toolkit for a variety of
|
|
188
190
|
applications, many of which strive for broad compatibility with older
|
|
189
191
|
Python versions, there is no rush to remove older interpreter support.
|
|
@@ -191,9 +193,9 @@ Additional Notes
|
|
|
191
193
|
maintenance burden has become too high.
|
|
192
194
|
|
|
193
195
|
* **Python 2**. Python 2 is supported by version 2.x of this library.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
Use "idna<3" in your requirements file if you need this library for
|
|
197
|
+
a Python 2 application. Be advised that these versions are no longer
|
|
198
|
+
actively developed.
|
|
197
199
|
|
|
198
200
|
* **Testing**. The library has a test suite based on each rule of the
|
|
199
201
|
IDNA specification, as well as tests that are provided as part of the
|
|
@@ -240,8 +240,12 @@ def check_label(label: Union[str, bytes, bytearray]) -> None:
|
|
|
240
240
|
if intranges_contain(cp_value, idnadata.codepoint_classes['PVALID']):
|
|
241
241
|
continue
|
|
242
242
|
elif intranges_contain(cp_value, idnadata.codepoint_classes['CONTEXTJ']):
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
try:
|
|
244
|
+
if not valid_contextj(label, pos):
|
|
245
|
+
raise InvalidCodepointContext('Joiner {} not allowed at position {} in {}'.format(
|
|
246
|
+
_unot(cp_value), pos+1, repr(label)))
|
|
247
|
+
except ValueError:
|
|
248
|
+
raise IDNAError('Unknown codepoint adjacent to joiner {} at position {} in {}'.format(
|
|
245
249
|
_unot(cp_value), pos+1, repr(label)))
|
|
246
250
|
elif intranges_contain(cp_value, idnadata.codepoint_classes['CONTEXTO']):
|
|
247
251
|
if not valid_contexto(label, pos):
|
|
@@ -19,7 +19,6 @@ classifiers = [
|
|
|
19
19
|
"Programming Language :: Python",
|
|
20
20
|
"Programming Language :: Python :: 3",
|
|
21
21
|
"Programming Language :: Python :: 3 :: Only",
|
|
22
|
-
"Programming Language :: Python :: 3.5",
|
|
23
22
|
"Programming Language :: Python :: 3.6",
|
|
24
23
|
"Programming Language :: Python :: 3.7",
|
|
25
24
|
"Programming Language :: Python :: 3.8",
|
|
@@ -27,13 +26,14 @@ classifiers = [
|
|
|
27
26
|
"Programming Language :: Python :: 3.10",
|
|
28
27
|
"Programming Language :: Python :: 3.11",
|
|
29
28
|
"Programming Language :: Python :: 3.12",
|
|
29
|
+
"Programming Language :: Python :: 3.13",
|
|
30
30
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
31
31
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
32
32
|
"Topic :: Internet :: Name Service (DNS)",
|
|
33
33
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
34
34
|
"Topic :: Utilities",
|
|
35
35
|
]
|
|
36
|
-
requires-python = ">=3.
|
|
36
|
+
requires-python = ">=3.6"
|
|
37
37
|
dynamic = ["version"]
|
|
38
38
|
|
|
39
39
|
[project.urls]
|
|
@@ -270,6 +270,7 @@ class IDNATests(unittest.TestCase):
|
|
|
270
270
|
self.assertRaises(idna.IDNAError, decode, b'xn--')
|
|
271
271
|
self.assertRaises(idna.IDNAError, decode, b'\x8d\xd2')
|
|
272
272
|
self.assertRaises(idna.IDNAError, decode, b'A.A.0.a.a.A.0.a.A.A.0.a.A.0A.2.a.A.A.0.a.A.0.A.a.A0.a.a.A.0.a.fB.A.A.a.A.A.B.A.A.a.A.A.B.A.A.a.A.A.0.a.A.a.a.A.A.0.a.A.0.A.a.A0.a.a.A.0.a.fB.A.A.a.A.A.B.0A.A.a.A.A.B.A.A.a.A.A.a.A.A.B.A.A.a.A.0.a.B.A.A.a.A.B.A.a.A.A.5.a.A.0.a.Ba.A.B.A.A.a.A.0.a.Xn--B.A.A.A.a')
|
|
273
|
+
self.assertRaises(idna.IDNAError, decode, b'xn--ukba655qaaaa14431eeaaba.c')
|
|
273
274
|
|
|
274
275
|
if __name__ == '__main__':
|
|
275
276
|
unittest.main()
|
|
@@ -671,7 +671,7 @@ def main():
|
|
|
671
671
|
elif args.action == 'make-libdata':
|
|
672
672
|
make_libdata(args, ucdata)
|
|
673
673
|
else:
|
|
674
|
-
result = re.match(r'
|
|
674
|
+
result = re.match(r'(?i)^(U\+|)(?P<cp>[0-9A-F]{4,6})$', args.action)
|
|
675
675
|
if result:
|
|
676
676
|
codepoint = int(result.group('cp'), 16)
|
|
677
677
|
diagnose_codepoint(codepoint, args, ucdata)
|
idna-3.7/idna/package_data.py
DELETED
{idna-3.7 → idna-3.8}/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|