codekingpro commited on
Commit
cea4ed7
·
verified ·
1 Parent(s): a883b58

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. python/Lib/site-packages/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/licenses/LICENSE +73 -0
  2. python/Lib/site-packages/setuptools/_vendor/importlib_metadata/compat/py311.py +22 -0
  3. python/Lib/site-packages/setuptools/_vendor/jaraco/context/__init__.py +367 -0
  4. python/Lib/site-packages/setuptools/_vendor/jaraco/context/__pycache__/__init__.cpython-313.pyc +0 -0
  5. python/Lib/site-packages/setuptools/_vendor/jaraco/context/py.typed +0 -0
  6. python/Lib/site-packages/setuptools/_vendor/jaraco/functools/__init__.py +722 -0
  7. python/Lib/site-packages/setuptools/_vendor/jaraco/functools/__init__.pyi +123 -0
  8. python/Lib/site-packages/setuptools/_vendor/jaraco/functools/__pycache__/__init__.cpython-313.pyc +0 -0
  9. python/Lib/site-packages/setuptools/_vendor/jaraco/functools/py.typed +0 -0
  10. python/Lib/site-packages/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +2 -0
  11. python/Lib/site-packages/setuptools/_vendor/jaraco/text/__init__.py +647 -0
  12. python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/__init__.cpython-313.pyc +0 -0
  13. python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/layouts.cpython-313.pyc +0 -0
  14. python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/show-newlines.cpython-313.pyc +0 -0
  15. python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/strip-prefix.cpython-313.pyc +0 -0
  16. python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/to-dvorak.cpython-313.pyc +0 -0
  17. python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/to-qwerty.cpython-313.pyc +0 -0
  18. python/Lib/site-packages/setuptools/_vendor/jaraco/text/layouts.py +25 -0
  19. python/Lib/site-packages/setuptools/_vendor/jaraco/text/show-newlines.py +32 -0
  20. python/Lib/site-packages/setuptools/_vendor/jaraco/text/strip-prefix.py +21 -0
  21. python/Lib/site-packages/setuptools/_vendor/jaraco/text/to-dvorak.py +5 -0
  22. python/Lib/site-packages/setuptools/_vendor/jaraco/text/to-qwerty.py +5 -0
  23. python/Lib/site-packages/setuptools/_vendor/jaraco_context-6.1.0.dist-info/licenses/LICENSE +18 -0
  24. python/Lib/site-packages/setuptools/_vendor/jaraco_functools-4.4.0.dist-info/licenses/LICENSE +18 -0
  25. python/Lib/site-packages/setuptools/_vendor/more_itertools-10.8.0.dist-info/licenses/LICENSE +19 -0
  26. python/Lib/site-packages/setuptools/_vendor/more_itertools/__pycache__/__init__.cpython-313.pyc +0 -0
  27. python/Lib/site-packages/setuptools/_vendor/more_itertools/__pycache__/recipes.cpython-313.pyc +0 -0
  28. python/Lib/site-packages/setuptools/_vendor/more_itertools/more.py +0 -0
  29. python/Lib/site-packages/setuptools/_vendor/packaging-26.0.dist-info/licenses/LICENSE +3 -0
  30. python/Lib/site-packages/setuptools/_vendor/packaging-26.0.dist-info/licenses/LICENSE.APACHE +177 -0
  31. python/Lib/site-packages/setuptools/_vendor/packaging-26.0.dist-info/licenses/LICENSE.BSD +23 -0
  32. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/__init__.cpython-313.pyc +0 -0
  33. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_elffile.cpython-313.pyc +0 -0
  34. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_manylinux.cpython-313.pyc +0 -0
  35. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_musllinux.cpython-313.pyc +0 -0
  36. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_parser.cpython-313.pyc +0 -0
  37. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_structures.cpython-313.pyc +0 -0
  38. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_tokenizer.cpython-313.pyc +0 -0
  39. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/markers.cpython-313.pyc +0 -0
  40. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/metadata.cpython-313.pyc +0 -0
  41. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/pylock.cpython-313.pyc +0 -0
  42. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/requirements.cpython-313.pyc +0 -0
  43. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/specifiers.cpython-313.pyc +0 -0
  44. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/tags.cpython-313.pyc +0 -0
  45. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/utils.cpython-313.pyc +0 -0
  46. python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/version.cpython-313.pyc +0 -0
  47. python/Lib/site-packages/setuptools/_vendor/packaging/licenses/__init__.py +147 -0
  48. python/Lib/site-packages/setuptools/_vendor/packaging/licenses/__pycache__/__init__.cpython-313.pyc +0 -0
  49. python/Lib/site-packages/setuptools/_vendor/packaging/licenses/__pycache__/_spdx.cpython-313.pyc +0 -0
  50. python/Lib/site-packages/setuptools/_vendor/packaging/licenses/_spdx.py +799 -0
python/Lib/site-packages/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright 2025 [name of copyright owner]
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
python/Lib/site-packages/setuptools/_vendor/importlib_metadata/compat/py311.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import pathlib
3
+ import sys
4
+ import types
5
+
6
+
7
+ def wrap(path): # pragma: no cover
8
+ """
9
+ Workaround for https://github.com/python/cpython/issues/84538
10
+ to add backward compatibility for walk_up=True.
11
+ An example affected package is dask-labextension, which uses
12
+ jupyter-packaging to install JupyterLab javascript files outside
13
+ of site-packages.
14
+ """
15
+
16
+ def relative_to(root, *, walk_up=False):
17
+ return pathlib.Path(os.path.relpath(path, root))
18
+
19
+ return types.SimpleNamespace(relative_to=relative_to)
20
+
21
+
22
+ relative_fix = wrap if sys.version_info < (3, 12) else lambda x: x
python/Lib/site-packages/setuptools/_vendor/jaraco/context/__init__.py ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import contextlib
4
+ import errno
5
+ import functools
6
+ import operator
7
+ import os
8
+ import platform
9
+ import shutil
10
+ import stat
11
+ import subprocess
12
+ import sys
13
+ import tempfile
14
+ import urllib.request
15
+ from collections.abc import Iterator
16
+
17
+ if sys.version_info < (3, 12):
18
+ from backports import tarfile
19
+ else:
20
+ import tarfile
21
+
22
+
23
+ @contextlib.contextmanager
24
+ def pushd(dir: str | os.PathLike) -> Iterator[str | os.PathLike]:
25
+ """
26
+ >>> tmp_path = getfixture('tmp_path')
27
+ >>> with pushd(tmp_path):
28
+ ... assert os.getcwd() == os.fspath(tmp_path)
29
+ >>> assert os.getcwd() != os.fspath(tmp_path)
30
+ """
31
+
32
+ orig = os.getcwd()
33
+ os.chdir(dir)
34
+ try:
35
+ yield dir
36
+ finally:
37
+ os.chdir(orig)
38
+
39
+
40
+ @contextlib.contextmanager
41
+ def tarball(
42
+ url, target_dir: str | os.PathLike | None = None
43
+ ) -> Iterator[str | os.PathLike]:
44
+ """
45
+ Get a URL to a tarball, download, extract, yield, then clean up.
46
+
47
+ Assumes everything in the tarball is prefixed with a common
48
+ directory. That common path is stripped and the contents
49
+ are extracted to ``target_dir``, similar to passing
50
+ ``-C {target} --strip-components 1`` to the ``tar`` command.
51
+
52
+ Uses the streaming protocol to extract the contents from a
53
+ stream in a single pass without loading the whole file into
54
+ memory.
55
+
56
+ >>> import urllib.request
57
+ >>> url = getfixture('tarfile_served')
58
+ >>> target = getfixture('tmp_path') / 'out'
59
+ >>> tb = tarball(url, target_dir=target)
60
+ >>> import pathlib
61
+ >>> with tb as extracted:
62
+ ... contents = pathlib.Path(extracted, 'contents.txt').read_text(encoding='utf-8')
63
+ >>> assert not os.path.exists(extracted)
64
+
65
+ If the target is not specified, contents are extracted to a
66
+ directory relative to the current working directory named after
67
+ the name of the file as extracted from the URL.
68
+
69
+ >>> target = getfixture('tmp_path')
70
+ >>> with pushd(target), tarball(url):
71
+ ... target.joinpath('served').is_dir()
72
+ True
73
+ """
74
+ if target_dir is None:
75
+ target_dir = os.path.basename(url).replace('.tar.gz', '').replace('.tgz', '')
76
+ os.mkdir(target_dir)
77
+ try:
78
+ req = urllib.request.urlopen(url)
79
+ with tarfile.open(fileobj=req, mode='r|*') as tf:
80
+ tf.extractall(path=target_dir, filter=_default_filter)
81
+ yield target_dir
82
+ finally:
83
+ shutil.rmtree(target_dir)
84
+
85
+
86
+ def _compose_tarfile_filters(*filters):
87
+ def compose_two(f1, f2):
88
+ return lambda member, path: f1(f2(member, path), path)
89
+
90
+ return functools.reduce(compose_two, filters, lambda member, path: member)
91
+
92
+
93
+ def strip_first_component(
94
+ member: tarfile.TarInfo,
95
+ path,
96
+ ) -> tarfile.TarInfo:
97
+ _, member.name = member.name.split('/', 1)
98
+ return member
99
+
100
+
101
+ _default_filter = _compose_tarfile_filters(tarfile.data_filter, strip_first_component)
102
+
103
+
104
+ def _compose(*cmgrs):
105
+ """
106
+ Compose any number of dependent context managers into a single one.
107
+
108
+ The last, innermost context manager may take arbitrary arguments, but
109
+ each successive context manager should accept the result from the
110
+ previous as a single parameter.
111
+
112
+ Like :func:`jaraco.functools.compose`, behavior works from right to
113
+ left, so the context manager should be indicated from outermost to
114
+ innermost.
115
+
116
+ Example, to create a context manager to change to a temporary
117
+ directory:
118
+
119
+ >>> temp_dir_as_cwd = _compose(pushd, temp_dir)
120
+ >>> with temp_dir_as_cwd() as dir:
121
+ ... assert os.path.samefile(os.getcwd(), dir)
122
+ """
123
+
124
+ def compose_two(inner, outer):
125
+ def composed(*args, **kwargs):
126
+ with inner(*args, **kwargs) as saved, outer(saved) as res:
127
+ yield res
128
+
129
+ return contextlib.contextmanager(composed)
130
+
131
+ return functools.reduce(compose_two, reversed(cmgrs))
132
+
133
+
134
+ tarball_cwd = _compose(pushd, tarball)
135
+ """
136
+ A tarball context with the current working directory pointing to the contents.
137
+ """
138
+
139
+
140
+ def remove_readonly(func, path, exc_info):
141
+ """
142
+ Add support for removing read-only files on Windows.
143
+ """
144
+ _, exc, _ = exc_info
145
+ if func in (os.rmdir, os.remove, os.unlink) and exc.errno == errno.EACCES:
146
+ # change the file to be readable,writable,executable: 0777
147
+ os.chmod(path, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
148
+ # retry
149
+ func(path)
150
+ else:
151
+ raise
152
+
153
+
154
+ def robust_remover():
155
+ return (
156
+ functools.partial(shutil.rmtree, onerror=remove_readonly)
157
+ if platform.system() == 'Windows'
158
+ else shutil.rmtree
159
+ )
160
+
161
+
162
+ @contextlib.contextmanager
163
+ def temp_dir(remover=shutil.rmtree):
164
+ """
165
+ Create a temporary directory context. Pass a custom remover
166
+ to override the removal behavior.
167
+
168
+ >>> import pathlib
169
+ >>> with temp_dir() as the_dir:
170
+ ... assert os.path.isdir(the_dir)
171
+ >>> assert not os.path.exists(the_dir)
172
+ """
173
+ temp_dir = tempfile.mkdtemp()
174
+ try:
175
+ yield temp_dir
176
+ finally:
177
+ remover(temp_dir)
178
+
179
+
180
+ robust_temp_dir = functools.partial(temp_dir, remover=robust_remover())
181
+
182
+
183
+ @contextlib.contextmanager
184
+ def repo_context(
185
+ url, branch: str | None = None, quiet: bool = True, dest_ctx=robust_temp_dir
186
+ ):
187
+ """
188
+ Check out the repo indicated by url.
189
+
190
+ If dest_ctx is supplied, it should be a context manager
191
+ to yield the target directory for the check out.
192
+
193
+ >>> getfixture('ensure_git')
194
+ >>> getfixture('needs_internet')
195
+ >>> repo = repo_context('https://github.com/jaraco/jaraco.context')
196
+ >>> with repo as dest:
197
+ ... listing = os.listdir(dest)
198
+ >>> 'README.rst' in listing
199
+ True
200
+ """
201
+ exe = 'git' if 'git' in url else 'hg'
202
+ with dest_ctx() as repo_dir:
203
+ cmd = [exe, 'clone', url, repo_dir]
204
+ cmd.extend(['--branch', branch] * bool(branch))
205
+ stream = subprocess.DEVNULL if quiet else None
206
+ subprocess.check_call(cmd, stdout=stream, stderr=stream)
207
+ yield repo_dir
208
+
209
+
210
+ class ExceptionTrap:
211
+ """
212
+ A context manager that will catch certain exceptions and provide an
213
+ indication they occurred.
214
+
215
+ >>> with ExceptionTrap() as trap:
216
+ ... raise Exception()
217
+ >>> bool(trap)
218
+ True
219
+
220
+ >>> with ExceptionTrap() as trap:
221
+ ... pass
222
+ >>> bool(trap)
223
+ False
224
+
225
+ >>> with ExceptionTrap(ValueError) as trap:
226
+ ... raise ValueError("1 + 1 is not 3")
227
+ >>> bool(trap)
228
+ True
229
+ >>> trap.value
230
+ ValueError('1 + 1 is not 3')
231
+ >>> trap.tb
232
+ <traceback object at ...>
233
+
234
+ >>> with ExceptionTrap(ValueError) as trap:
235
+ ... raise Exception()
236
+ Traceback (most recent call last):
237
+ ...
238
+ Exception
239
+
240
+ >>> bool(trap)
241
+ False
242
+ """
243
+
244
+ exc_info = None, None, None
245
+
246
+ def __init__(self, exceptions=(Exception,)):
247
+ self.exceptions = exceptions
248
+
249
+ def __enter__(self):
250
+ return self
251
+
252
+ @property
253
+ def type(self):
254
+ return self.exc_info[0]
255
+
256
+ @property
257
+ def value(self):
258
+ return self.exc_info[1]
259
+
260
+ @property
261
+ def tb(self):
262
+ return self.exc_info[2]
263
+
264
+ def __exit__(self, *exc_info):
265
+ type = exc_info[0]
266
+ matches = type and issubclass(type, self.exceptions)
267
+ if matches:
268
+ self.exc_info = exc_info
269
+ return matches
270
+
271
+ def __bool__(self):
272
+ return bool(self.type)
273
+
274
+ def raises(self, func, *, _test=bool):
275
+ """
276
+ Wrap func and replace the result with the truth
277
+ value of the trap (True if an exception occurred).
278
+
279
+ First, give the decorator an alias to support Python 3.8
280
+ Syntax.
281
+
282
+ >>> raises = ExceptionTrap(ValueError).raises
283
+
284
+ Now decorate a function that always fails.
285
+
286
+ >>> @raises
287
+ ... def fail():
288
+ ... raise ValueError('failed')
289
+ >>> fail()
290
+ True
291
+ """
292
+
293
+ @functools.wraps(func)
294
+ def wrapper(*args, **kwargs):
295
+ with ExceptionTrap(self.exceptions) as trap:
296
+ func(*args, **kwargs)
297
+ return _test(trap)
298
+
299
+ return wrapper
300
+
301
+ def passes(self, func):
302
+ """
303
+ Wrap func and replace the result with the truth
304
+ value of the trap (True if no exception).
305
+
306
+ First, give the decorator an alias to support Python 3.8
307
+ Syntax.
308
+
309
+ >>> passes = ExceptionTrap(ValueError).passes
310
+
311
+ Now decorate a function that always fails.
312
+
313
+ >>> @passes
314
+ ... def fail():
315
+ ... raise ValueError('failed')
316
+
317
+ >>> fail()
318
+ False
319
+ """
320
+ return self.raises(func, _test=operator.not_)
321
+
322
+
323
+ class suppress(contextlib.suppress, contextlib.ContextDecorator):
324
+ """
325
+ A version of contextlib.suppress with decorator support.
326
+
327
+ >>> @suppress(KeyError)
328
+ ... def key_error():
329
+ ... {}['']
330
+ >>> key_error()
331
+ """
332
+
333
+
334
+ class on_interrupt(contextlib.ContextDecorator):
335
+ """
336
+ Replace a KeyboardInterrupt with SystemExit(1).
337
+
338
+ Useful in conjunction with console entry point functions.
339
+
340
+ >>> def do_interrupt():
341
+ ... raise KeyboardInterrupt()
342
+ >>> on_interrupt('error')(do_interrupt)()
343
+ Traceback (most recent call last):
344
+ ...
345
+ SystemExit: 1
346
+ >>> on_interrupt('error', code=255)(do_interrupt)()
347
+ Traceback (most recent call last):
348
+ ...
349
+ SystemExit: 255
350
+ >>> on_interrupt('suppress')(do_interrupt)()
351
+ >>> with __import__('pytest').raises(KeyboardInterrupt):
352
+ ... on_interrupt('ignore')(do_interrupt)()
353
+ """
354
+
355
+ def __init__(self, action='error', /, code=1):
356
+ self.action = action
357
+ self.code = code
358
+
359
+ def __enter__(self):
360
+ return self
361
+
362
+ def __exit__(self, exctype, excinst, exctb):
363
+ if exctype is not KeyboardInterrupt or self.action == 'ignore':
364
+ return
365
+ elif self.action == 'error':
366
+ raise SystemExit(self.code) from excinst
367
+ return self.action == 'suppress'
python/Lib/site-packages/setuptools/_vendor/jaraco/context/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (14.7 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/jaraco/context/py.typed ADDED
File without changes
python/Lib/site-packages/setuptools/_vendor/jaraco/functools/__init__.py ADDED
@@ -0,0 +1,722 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import collections.abc
4
+ import functools
5
+ import inspect
6
+ import itertools
7
+ import operator
8
+ import time
9
+ import types
10
+ import warnings
11
+ from typing import Callable, TypeVar
12
+
13
+ import more_itertools
14
+
15
+
16
+ def compose(*funcs):
17
+ """
18
+ Compose any number of unary functions into a single unary function.
19
+
20
+ Comparable to
21
+ `function composition <https://en.wikipedia.org/wiki/Function_composition>`_
22
+ in mathematics:
23
+
24
+ ``h = g ∘ f`` implies ``h(x) = g(f(x))``.
25
+
26
+ In Python, ``h = compose(g, f)``.
27
+
28
+ >>> import textwrap
29
+ >>> expected = str.strip(textwrap.dedent(compose.__doc__))
30
+ >>> strip_and_dedent = compose(str.strip, textwrap.dedent)
31
+ >>> strip_and_dedent(compose.__doc__) == expected
32
+ True
33
+
34
+ Compose also allows the innermost function to take arbitrary arguments.
35
+
36
+ >>> round_three = lambda x: round(x, ndigits=3)
37
+ >>> f = compose(round_three, int.__truediv__)
38
+ >>> [f(3*x, x+1) for x in range(1,10)]
39
+ [1.5, 2.0, 2.25, 2.4, 2.5, 2.571, 2.625, 2.667, 2.7]
40
+ """
41
+
42
+ def compose_two(f1, f2):
43
+ return lambda *args, **kwargs: f1(f2(*args, **kwargs))
44
+
45
+ return functools.reduce(compose_two, funcs)
46
+
47
+
48
+ def once(func):
49
+ """
50
+ Decorate func so it's only ever called the first time.
51
+
52
+ This decorator can ensure that an expensive or non-idempotent function
53
+ will not be expensive on subsequent calls and is idempotent.
54
+
55
+ >>> add_three = once(lambda a: a+3)
56
+ >>> add_three(3)
57
+ 6
58
+ >>> add_three(9)
59
+ 6
60
+ >>> add_three('12')
61
+ 6
62
+
63
+ To reset the stored value, simply clear the property ``saved_result``.
64
+
65
+ >>> del add_three.saved_result
66
+ >>> add_three(9)
67
+ 12
68
+ >>> add_three(8)
69
+ 12
70
+
71
+ Or invoke 'reset()' on it.
72
+
73
+ >>> add_three.reset()
74
+ >>> add_three(-3)
75
+ 0
76
+ >>> add_three(0)
77
+ 0
78
+ """
79
+
80
+ @functools.wraps(func)
81
+ def wrapper(*args, **kwargs):
82
+ if not hasattr(wrapper, 'saved_result'):
83
+ wrapper.saved_result = func(*args, **kwargs)
84
+ return wrapper.saved_result
85
+
86
+ wrapper.reset = lambda: vars(wrapper).__delitem__('saved_result')
87
+ return wrapper
88
+
89
+
90
+ def method_cache(method, cache_wrapper=functools.lru_cache()):
91
+ """
92
+ Wrap lru_cache to support storing the cache data in the object instances.
93
+
94
+ Abstracts the common paradigm where the method explicitly saves an
95
+ underscore-prefixed protected property on first call and returns that
96
+ subsequently.
97
+
98
+ >>> class MyClass:
99
+ ... calls = 0
100
+ ...
101
+ ... @method_cache
102
+ ... def method(self, value):
103
+ ... self.calls += 1
104
+ ... return value
105
+
106
+ >>> a = MyClass()
107
+ >>> a.method(3)
108
+ 3
109
+ >>> for x in range(75):
110
+ ... res = a.method(x)
111
+ >>> a.calls
112
+ 75
113
+
114
+ Note that the apparent behavior will be exactly like that of lru_cache
115
+ except that the cache is stored on each instance, so values in one
116
+ instance will not flush values from another, and when an instance is
117
+ deleted, so are the cached values for that instance.
118
+
119
+ >>> b = MyClass()
120
+ >>> for x in range(35):
121
+ ... res = b.method(x)
122
+ >>> b.calls
123
+ 35
124
+ >>> a.method(0)
125
+ 0
126
+ >>> a.calls
127
+ 75
128
+
129
+ Note that if method had been decorated with ``functools.lru_cache()``,
130
+ a.calls would have been 76 (due to the cached value of 0 having been
131
+ flushed by the 'b' instance).
132
+
133
+ Clear the cache with ``.cache_clear()``
134
+
135
+ >>> a.method.cache_clear()
136
+
137
+ Same for a method that hasn't yet been called.
138
+
139
+ >>> c = MyClass()
140
+ >>> c.method.cache_clear()
141
+
142
+ Another cache wrapper may be supplied:
143
+
144
+ >>> cache = functools.lru_cache(maxsize=2)
145
+ >>> MyClass.method2 = method_cache(lambda self: 3, cache_wrapper=cache)
146
+ >>> a = MyClass()
147
+ >>> a.method2()
148
+ 3
149
+
150
+ Caution - do not subsequently wrap the method with another decorator, such
151
+ as ``@property``, which changes the semantics of the function.
152
+
153
+ See also
154
+ http://code.activestate.com/recipes/577452-a-memoize-decorator-for-instance-methods/
155
+ for another implementation and additional justification.
156
+ """
157
+
158
+ def wrapper(self, *args, **kwargs):
159
+ # it's the first call, replace the method with a cached, bound method
160
+ bound_method = types.MethodType(method, self)
161
+ cached_method = cache_wrapper(bound_method)
162
+ setattr(self, method.__name__, cached_method)
163
+ return cached_method(*args, **kwargs)
164
+
165
+ # Support cache clear even before cache has been created.
166
+ wrapper.cache_clear = lambda: None
167
+
168
+ return _special_method_cache(method, cache_wrapper) or wrapper
169
+
170
+
171
+ def _special_method_cache(method, cache_wrapper):
172
+ """
173
+ Because Python treats special methods differently, it's not
174
+ possible to use instance attributes to implement the cached
175
+ methods.
176
+
177
+ Instead, install the wrapper method under a different name
178
+ and return a simple proxy to that wrapper.
179
+
180
+ https://github.com/jaraco/jaraco.functools/issues/5
181
+ """
182
+ name = method.__name__
183
+ special_names = '__getattr__', '__getitem__'
184
+
185
+ if name not in special_names:
186
+ return None
187
+
188
+ wrapper_name = '__cached' + name
189
+
190
+ def proxy(self, /, *args, **kwargs):
191
+ if wrapper_name not in vars(self):
192
+ bound = types.MethodType(method, self)
193
+ cache = cache_wrapper(bound)
194
+ setattr(self, wrapper_name, cache)
195
+ else:
196
+ cache = getattr(self, wrapper_name)
197
+ return cache(*args, **kwargs)
198
+
199
+ return proxy
200
+
201
+
202
+ def apply(transform):
203
+ """
204
+ Decorate a function with a transform function that is
205
+ invoked on results returned from the decorated function.
206
+
207
+ >>> @apply(reversed)
208
+ ... def get_numbers(start):
209
+ ... "doc for get_numbers"
210
+ ... return range(start, start+3)
211
+ >>> list(get_numbers(4))
212
+ [6, 5, 4]
213
+ >>> get_numbers.__doc__
214
+ 'doc for get_numbers'
215
+ """
216
+
217
+ def wrap(func):
218
+ return functools.wraps(func)(compose(transform, func))
219
+
220
+ return wrap
221
+
222
+
223
+ def result_invoke(action):
224
+ r"""
225
+ Decorate a function with an action function that is
226
+ invoked on the results returned from the decorated
227
+ function (for its side effect), then return the original
228
+ result.
229
+
230
+ >>> @result_invoke(print)
231
+ ... def add_two(a, b):
232
+ ... return a + b
233
+ >>> x = add_two(2, 3)
234
+ 5
235
+ >>> x
236
+ 5
237
+ """
238
+
239
+ def wrap(func):
240
+ @functools.wraps(func)
241
+ def wrapper(*args, **kwargs):
242
+ result = func(*args, **kwargs)
243
+ action(result)
244
+ return result
245
+
246
+ return wrapper
247
+
248
+ return wrap
249
+
250
+
251
+ def invoke(f, /, *args, **kwargs):
252
+ """
253
+ Call a function for its side effect after initialization.
254
+
255
+ The benefit of using the decorator instead of simply invoking a function
256
+ after defining it is that it makes explicit the author's intent for the
257
+ function to be called immediately. Whereas if one simply calls the
258
+ function immediately, it's less obvious if that was intentional or
259
+ incidental. It also avoids repeating the name - the two actions, defining
260
+ the function and calling it immediately are modeled separately, but linked
261
+ by the decorator construct.
262
+
263
+ The benefit of having a function construct (opposed to just invoking some
264
+ behavior inline) is to serve as a scope in which the behavior occurs. It
265
+ avoids polluting the global namespace with local variables, provides an
266
+ anchor on which to attach documentation (docstring), keeps the behavior
267
+ logically separated (instead of conceptually separated or not separated at
268
+ all), and provides potential to re-use the behavior for testing or other
269
+ purposes.
270
+
271
+ This function is named as a pithy way to communicate, "call this function
272
+ primarily for its side effect", or "while defining this function, also
273
+ take it aside and call it". It exists because there's no Python construct
274
+ for "define and call" (nor should there be, as decorators serve this need
275
+ just fine). The behavior happens immediately and synchronously.
276
+
277
+ >>> @invoke
278
+ ... def func(): print("called")
279
+ called
280
+ >>> func()
281
+ called
282
+
283
+ Use functools.partial to pass parameters to the initial call
284
+
285
+ >>> @functools.partial(invoke, name='bingo')
286
+ ... def func(name): print('called with', name)
287
+ called with bingo
288
+ """
289
+ f(*args, **kwargs)
290
+ return f
291
+
292
+
293
+ _T = TypeVar('_T')
294
+
295
+
296
+ def passthrough(func: Callable[..., object]) -> Callable[[_T], _T]:
297
+ """
298
+ Wrap the function to always return the first parameter.
299
+
300
+ >>> passthrough(print)('3')
301
+ 3
302
+ '3'
303
+ """
304
+
305
+ @functools.wraps(func)
306
+ def wrapper(first: _T, *args, **kwargs) -> _T:
307
+ func(first, *args, **kwargs)
308
+ return first
309
+
310
+ return wrapper
311
+
312
+
313
+ class Throttler:
314
+ """Rate-limit a function (or other callable)."""
315
+
316
+ def __init__(self, func, max_rate=float('Inf')):
317
+ if isinstance(func, Throttler):
318
+ func = func.func
319
+ self.func = func
320
+ self.max_rate = max_rate
321
+ self.reset()
322
+
323
+ def reset(self):
324
+ self.last_called = 0
325
+
326
+ def __call__(self, *args, **kwargs):
327
+ self._wait()
328
+ return self.func(*args, **kwargs)
329
+
330
+ def _wait(self):
331
+ """Ensure at least 1/max_rate seconds from last call."""
332
+ elapsed = time.time() - self.last_called
333
+ must_wait = 1 / self.max_rate - elapsed
334
+ time.sleep(max(0, must_wait))
335
+ self.last_called = time.time()
336
+
337
+ def __get__(self, obj, owner=None):
338
+ return first_invoke(self._wait, functools.partial(self.func, obj))
339
+
340
+
341
+ def first_invoke(func1, func2):
342
+ """
343
+ Return a function that when invoked will invoke func1 without
344
+ any parameters (for its side effect) and then invoke func2
345
+ with whatever parameters were passed, returning its result.
346
+ """
347
+
348
+ def wrapper(*args, **kwargs):
349
+ func1()
350
+ return func2(*args, **kwargs)
351
+
352
+ return wrapper
353
+
354
+
355
+ method_caller = first_invoke(
356
+ lambda: warnings.warn(
357
+ '`jaraco.functools.method_caller` is deprecated, '
358
+ 'use `operator.methodcaller` instead',
359
+ DeprecationWarning,
360
+ stacklevel=3,
361
+ ),
362
+ operator.methodcaller,
363
+ )
364
+
365
+
366
+ def retry_call(func, cleanup=lambda: None, retries=0, trap=()):
367
+ """
368
+ Given a callable func, trap the indicated exceptions
369
+ for up to 'retries' times, invoking cleanup on the
370
+ exception. On the final attempt, allow any exceptions
371
+ to propagate.
372
+ """
373
+ attempts = itertools.count() if retries == float('inf') else range(retries)
374
+ for _ in attempts:
375
+ try:
376
+ return func()
377
+ except trap:
378
+ cleanup()
379
+
380
+ return func()
381
+
382
+
383
+ def retry(*r_args, **r_kwargs):
384
+ """
385
+ Decorator wrapper for retry_call. Accepts arguments to retry_call
386
+ except func and then returns a decorator for the decorated function.
387
+
388
+ Ex:
389
+
390
+ >>> @retry(retries=3)
391
+ ... def my_func(a, b):
392
+ ... "this is my funk"
393
+ ... print(a, b)
394
+ >>> my_func.__doc__
395
+ 'this is my funk'
396
+ """
397
+
398
+ def decorate(func):
399
+ @functools.wraps(func)
400
+ def wrapper(*f_args, **f_kwargs):
401
+ bound = functools.partial(func, *f_args, **f_kwargs)
402
+ return retry_call(bound, *r_args, **r_kwargs)
403
+
404
+ return wrapper
405
+
406
+ return decorate
407
+
408
+
409
+ def print_yielded(func):
410
+ """
411
+ Convert a generator into a function that prints all yielded elements.
412
+
413
+ >>> @print_yielded
414
+ ... def x():
415
+ ... yield 3; yield None
416
+ >>> x()
417
+ 3
418
+ None
419
+ """
420
+ print_all = functools.partial(map, print)
421
+ print_results = compose(more_itertools.consume, print_all, func)
422
+ return functools.wraps(func)(print_results)
423
+
424
+
425
+ def pass_none(func):
426
+ """
427
+ Wrap func so it's not called if its first param is None.
428
+
429
+ >>> print_text = pass_none(print)
430
+ >>> print_text('text')
431
+ text
432
+ >>> print_text(None)
433
+ """
434
+
435
+ @functools.wraps(func)
436
+ def wrapper(param, /, *args, **kwargs):
437
+ if param is not None:
438
+ return func(param, *args, **kwargs)
439
+ return None
440
+
441
+ return wrapper
442
+
443
+
444
+ def none_as(value, replacement=None):
445
+ """
446
+ >>> none_as(None, 'foo')
447
+ 'foo'
448
+ >>> none_as('bar', 'foo')
449
+ 'bar'
450
+ """
451
+ return replacement if value is None else value
452
+
453
+
454
+ def assign_params(func, namespace):
455
+ """
456
+ Assign parameters from namespace where func solicits.
457
+
458
+ >>> def func(x, y=3):
459
+ ... print(x, y)
460
+ >>> assigned = assign_params(func, dict(x=2, z=4))
461
+ >>> assigned()
462
+ 2 3
463
+
464
+ The usual errors are raised if a function doesn't receive
465
+ its required parameters:
466
+
467
+ >>> assigned = assign_params(func, dict(y=3, z=4))
468
+ >>> assigned()
469
+ Traceback (most recent call last):
470
+ TypeError: func() ...argument...
471
+
472
+ It even works on methods:
473
+
474
+ >>> class Handler:
475
+ ... def meth(self, arg):
476
+ ... print(arg)
477
+ >>> assign_params(Handler().meth, dict(arg='crystal', foo='clear'))()
478
+ crystal
479
+ """
480
+ sig = inspect.signature(func)
481
+ params = sig.parameters.keys()
482
+ call_ns = {k: namespace[k] for k in params if k in namespace}
483
+ return functools.partial(func, **call_ns)
484
+
485
+
486
+ def save_method_args(method):
487
+ """
488
+ Wrap a method such that when it is called, the args and kwargs are
489
+ saved on the method.
490
+
491
+ >>> class MyClass:
492
+ ... @save_method_args
493
+ ... def method(self, a, b):
494
+ ... print(a, b)
495
+ >>> my_ob = MyClass()
496
+ >>> my_ob.method(1, 2)
497
+ 1 2
498
+ >>> my_ob._saved_method.args
499
+ (1, 2)
500
+ >>> my_ob._saved_method.kwargs
501
+ {}
502
+ >>> my_ob.method(a=3, b='foo')
503
+ 3 foo
504
+ >>> my_ob._saved_method.args
505
+ ()
506
+ >>> my_ob._saved_method.kwargs == dict(a=3, b='foo')
507
+ True
508
+
509
+ The arguments are stored on the instance, allowing for
510
+ different instance to save different args.
511
+
512
+ >>> your_ob = MyClass()
513
+ >>> your_ob.method({str('x'): 3}, b=[4])
514
+ {'x': 3} [4]
515
+ >>> your_ob._saved_method.args
516
+ ({'x': 3},)
517
+ >>> my_ob._saved_method.args
518
+ ()
519
+ """
520
+ args_and_kwargs = collections.namedtuple('args_and_kwargs', 'args kwargs') # noqa: PYI024 # Internal; stubs used for typing
521
+
522
+ @functools.wraps(method)
523
+ def wrapper(self, /, *args, **kwargs):
524
+ attr_name = '_saved_' + method.__name__
525
+ attr = args_and_kwargs(args, kwargs)
526
+ setattr(self, attr_name, attr)
527
+ return method(self, *args, **kwargs)
528
+
529
+ return wrapper
530
+
531
+
532
+ def except_(*exceptions, replace=None, use=None):
533
+ """
534
+ Replace the indicated exceptions, if raised, with the indicated
535
+ literal replacement or evaluated expression (if present).
536
+
537
+ >>> safe_int = except_(ValueError)(int)
538
+ >>> safe_int('five')
539
+ >>> safe_int('5')
540
+ 5
541
+
542
+ Specify a literal replacement with ``replace``.
543
+
544
+ >>> safe_int_r = except_(ValueError, replace=0)(int)
545
+ >>> safe_int_r('five')
546
+ 0
547
+
548
+ Provide an expression to ``use`` to pass through particular parameters.
549
+
550
+ >>> safe_int_pt = except_(ValueError, use='args[0]')(int)
551
+ >>> safe_int_pt('five')
552
+ 'five'
553
+
554
+ """
555
+
556
+ def decorate(func):
557
+ @functools.wraps(func)
558
+ def wrapper(*args, **kwargs):
559
+ try:
560
+ return func(*args, **kwargs)
561
+ except exceptions:
562
+ try:
563
+ return eval(use)
564
+ except TypeError:
565
+ return replace
566
+
567
+ return wrapper
568
+
569
+ return decorate
570
+
571
+
572
+ def identity(x):
573
+ """
574
+ Return the argument.
575
+
576
+ >>> o = object()
577
+ >>> identity(o) is o
578
+ True
579
+ """
580
+ return x
581
+
582
+
583
+ def bypass_when(check, *, _op=identity):
584
+ """
585
+ Decorate a function to return its parameter when ``check``.
586
+
587
+ >>> bypassed = [] # False
588
+
589
+ >>> @bypass_when(bypassed)
590
+ ... def double(x):
591
+ ... return x * 2
592
+ >>> double(2)
593
+ 4
594
+ >>> bypassed[:] = [object()] # True
595
+ >>> double(2)
596
+ 2
597
+ """
598
+
599
+ def decorate(func):
600
+ @functools.wraps(func)
601
+ def wrapper(param, /):
602
+ return param if _op(check) else func(param)
603
+
604
+ return wrapper
605
+
606
+ return decorate
607
+
608
+
609
+ def bypass_unless(check):
610
+ """
611
+ Decorate a function to return its parameter unless ``check``.
612
+
613
+ >>> enabled = [object()] # True
614
+
615
+ >>> @bypass_unless(enabled)
616
+ ... def double(x):
617
+ ... return x * 2
618
+ >>> double(2)
619
+ 4
620
+ >>> del enabled[:] # False
621
+ >>> double(2)
622
+ 2
623
+ """
624
+ return bypass_when(check, _op=operator.not_)
625
+
626
+
627
+ @functools.singledispatch
628
+ def _splat_inner(args, func):
629
+ """Splat args to func."""
630
+ return func(*args)
631
+
632
+
633
+ @_splat_inner.register
634
+ def _(args: collections.abc.Mapping, func):
635
+ """Splat kargs to func as kwargs."""
636
+ return func(**args)
637
+
638
+
639
+ def splat(func):
640
+ """
641
+ Wrap func to expect its parameters to be passed positionally in a tuple.
642
+
643
+ Has a similar effect to that of ``itertools.starmap`` over
644
+ simple ``map``.
645
+
646
+ >>> pairs = [(-1, 1), (0, 2)]
647
+ >>> more_itertools.consume(itertools.starmap(print, pairs))
648
+ -1 1
649
+ 0 2
650
+ >>> more_itertools.consume(map(splat(print), pairs))
651
+ -1 1
652
+ 0 2
653
+
654
+ The approach generalizes to other iterators that don't have a "star"
655
+ equivalent, such as a "starfilter".
656
+
657
+ >>> list(filter(splat(operator.add), pairs))
658
+ [(0, 2)]
659
+
660
+ Splat also accepts a mapping argument.
661
+
662
+ >>> def is_nice(msg, code):
663
+ ... return "smile" in msg or code == 0
664
+ >>> msgs = [
665
+ ... dict(msg='smile!', code=20),
666
+ ... dict(msg='error :(', code=1),
667
+ ... dict(msg='unknown', code=0),
668
+ ... ]
669
+ >>> for msg in filter(splat(is_nice), msgs):
670
+ ... print(msg)
671
+ {'msg': 'smile!', 'code': 20}
672
+ {'msg': 'unknown', 'code': 0}
673
+ """
674
+ return functools.wraps(func)(functools.partial(_splat_inner, func=func))
675
+
676
+
677
+ _T = TypeVar('_T')
678
+
679
+
680
+ def chainable(method: Callable[[_T, ...], None]) -> Callable[[_T, ...], _T]:
681
+ """
682
+ Wrap an instance method to always return self.
683
+
684
+
685
+ >>> class Dingus:
686
+ ... @chainable
687
+ ... def set_attr(self, name, val):
688
+ ... setattr(self, name, val)
689
+ >>> d = Dingus().set_attr('a', 'eh!')
690
+ >>> d.a
691
+ 'eh!'
692
+ >>> d2 = Dingus().set_attr('a', 'eh!').set_attr('b', 'bee!')
693
+ >>> d2.a + d2.b
694
+ 'eh!bee!'
695
+
696
+ Enforces that the return value is null.
697
+
698
+ >>> class BorkedDingus:
699
+ ... @chainable
700
+ ... def set_attr(self, name, val):
701
+ ... setattr(self, name, val)
702
+ ... return len(name)
703
+ >>> BorkedDingus().set_attr('a', 'eh!')
704
+ Traceback (most recent call last):
705
+ ...
706
+ AssertionError
707
+ """
708
+
709
+ @functools.wraps(method)
710
+ def wrapper(self, *args, **kwargs):
711
+ assert method(self, *args, **kwargs) is None
712
+ return self
713
+
714
+ return wrapper
715
+
716
+
717
+ def noop(*args, **kwargs):
718
+ """
719
+ A no-operation function that does nothing.
720
+
721
+ >>> noop(1, 2, three=3)
722
+ """
python/Lib/site-packages/setuptools/_vendor/jaraco/functools/__init__.pyi ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from collections.abc import Callable, Hashable, Iterator
2
+ from functools import partial
3
+ from operator import methodcaller
4
+ from typing import (
5
+ Any,
6
+ Generic,
7
+ Protocol,
8
+ TypeVar,
9
+ overload,
10
+ )
11
+
12
+ from typing_extensions import Concatenate, ParamSpec, TypeVarTuple, Unpack
13
+
14
+ _P = ParamSpec('_P')
15
+ _R = TypeVar('_R')
16
+ _T = TypeVar('_T')
17
+ _Ts = TypeVarTuple('_Ts')
18
+ _R1 = TypeVar('_R1')
19
+ _R2 = TypeVar('_R2')
20
+ _V = TypeVar('_V')
21
+ _S = TypeVar('_S')
22
+ _R_co = TypeVar('_R_co', covariant=True)
23
+
24
+ class _OnceCallable(Protocol[_P, _R]):
25
+ saved_result: _R
26
+ reset: Callable[[], None]
27
+ def __call__(self, *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
28
+
29
+ class _ProxyMethodCacheWrapper(Protocol[_R_co]):
30
+ cache_clear: Callable[[], None]
31
+ def __call__(self, *args: Hashable, **kwargs: Hashable) -> _R_co: ...
32
+
33
+ class _MethodCacheWrapper(Protocol[_R_co]):
34
+ def cache_clear(self) -> None: ...
35
+ def __call__(self, *args: Hashable, **kwargs: Hashable) -> _R_co: ...
36
+
37
+ # `compose()` overloads below will cover most use cases.
38
+
39
+ @overload
40
+ def compose(
41
+ __func1: Callable[[_R], _T],
42
+ __func2: Callable[_P, _R],
43
+ /,
44
+ ) -> Callable[_P, _T]: ...
45
+ @overload
46
+ def compose(
47
+ __func1: Callable[[_R], _T],
48
+ __func2: Callable[[_R1], _R],
49
+ __func3: Callable[_P, _R1],
50
+ /,
51
+ ) -> Callable[_P, _T]: ...
52
+ @overload
53
+ def compose(
54
+ __func1: Callable[[_R], _T],
55
+ __func2: Callable[[_R2], _R],
56
+ __func3: Callable[[_R1], _R2],
57
+ __func4: Callable[_P, _R1],
58
+ /,
59
+ ) -> Callable[_P, _T]: ...
60
+ def once(func: Callable[_P, _R]) -> _OnceCallable[_P, _R]: ...
61
+ def method_cache(
62
+ method: Callable[..., _R],
63
+ cache_wrapper: Callable[[Callable[..., _R]], _MethodCacheWrapper[_R]] = ...,
64
+ ) -> _MethodCacheWrapper[_R] | _ProxyMethodCacheWrapper[_R]: ...
65
+ def apply(
66
+ transform: Callable[[_R], _T],
67
+ ) -> Callable[[Callable[_P, _R]], Callable[_P, _T]]: ...
68
+ def result_invoke(
69
+ action: Callable[[_R], Any],
70
+ ) -> Callable[[Callable[_P, _R]], Callable[_P, _R]]: ...
71
+ def invoke(
72
+ f: Callable[_P, _R], /, *args: _P.args, **kwargs: _P.kwargs
73
+ ) -> Callable[_P, _R]: ...
74
+
75
+ class Throttler(Generic[_R]):
76
+ last_called: float
77
+ func: Callable[..., _R]
78
+ max_rate: float
79
+ def __init__(
80
+ self, func: Callable[..., _R] | Throttler[_R], max_rate: float = ...
81
+ ) -> None: ...
82
+ def reset(self) -> None: ...
83
+ def __call__(self, *args: Any, **kwargs: Any) -> _R: ...
84
+ def __get__(self, obj: Any, owner: type[Any] | None = ...) -> Callable[..., _R]: ...
85
+
86
+ def first_invoke(
87
+ func1: Callable[..., Any], func2: Callable[_P, _R]
88
+ ) -> Callable[_P, _R]: ...
89
+
90
+ method_caller: Callable[..., methodcaller]
91
+
92
+ def retry_call(
93
+ func: Callable[..., _R],
94
+ cleanup: Callable[..., None] = ...,
95
+ retries: float = ...,
96
+ trap: type[BaseException] | tuple[type[BaseException], ...] = ...,
97
+ ) -> _R: ...
98
+ def retry(
99
+ cleanup: Callable[..., None] = ...,
100
+ retries: float = ...,
101
+ trap: type[BaseException] | tuple[type[BaseException], ...] = ...,
102
+ ) -> Callable[[Callable[..., _R]], Callable[..., _R]]: ...
103
+ def print_yielded(func: Callable[_P, Iterator[Any]]) -> Callable[_P, None]: ...
104
+ def pass_none(
105
+ func: Callable[Concatenate[_T, _P], _R],
106
+ ) -> Callable[Concatenate[_T, _P], _R]: ...
107
+ def assign_params(
108
+ func: Callable[..., _R], namespace: dict[str, Any]
109
+ ) -> partial[_R]: ...
110
+ def save_method_args(
111
+ method: Callable[Concatenate[_S, _P], _R],
112
+ ) -> Callable[Concatenate[_S, _P], _R]: ...
113
+ def except_(
114
+ *exceptions: type[BaseException], replace: Any = ..., use: Any = ...
115
+ ) -> Callable[[Callable[_P, Any]], Callable[_P, Any]]: ...
116
+ def identity(x: _T) -> _T: ...
117
+ def bypass_when(
118
+ check: _V, *, _op: Callable[[_V], Any] = ...
119
+ ) -> Callable[[Callable[[_T], _R]], Callable[[_T], _T | _R]]: ...
120
+ def bypass_unless(
121
+ check: Any,
122
+ ) -> Callable[[Callable[[_T], _R]], Callable[[_T], _T | _R]]: ...
123
+ def splat(func: Callable[[Unpack[_Ts]], _R]) -> Callable[[tuple[Unpack[_Ts]]], _R]: ...
python/Lib/site-packages/setuptools/_vendor/jaraco/functools/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (24.2 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/jaraco/functools/py.typed ADDED
File without changes
python/Lib/site-packages/setuptools/_vendor/jaraco/text/Lorem ipsum.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
2
+ Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst.
python/Lib/site-packages/setuptools/_vendor/jaraco/text/__init__.py ADDED
@@ -0,0 +1,647 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import functools
2
+ import itertools
3
+ import re
4
+ import textwrap
5
+
6
+ from typing import Iterable
7
+
8
+ try:
9
+ from importlib.resources import files # type: ignore
10
+ except ImportError: # pragma: nocover
11
+ from importlib_resources import files # type: ignore
12
+
13
+ from jaraco.context import ExceptionTrap
14
+ from jaraco.functools import compose, method_cache
15
+
16
+
17
+ def substitution(old, new):
18
+ """
19
+ Return a function that will perform a substitution on a string
20
+ """
21
+ return lambda s: s.replace(old, new)
22
+
23
+
24
+ def multi_substitution(*substitutions):
25
+ """
26
+ Take a sequence of pairs specifying substitutions, and create
27
+ a function that performs those substitutions.
28
+
29
+ >>> multi_substitution(('foo', 'bar'), ('bar', 'baz'))('foo')
30
+ 'baz'
31
+ """
32
+ substitutions = itertools.starmap(substitution, substitutions)
33
+ # compose function applies last function first, so reverse the
34
+ # substitutions to get the expected order.
35
+ substitutions = reversed(tuple(substitutions))
36
+ return compose(*substitutions)
37
+
38
+
39
+ class FoldedCase(str):
40
+ """
41
+ A case insensitive string class; behaves just like str
42
+ except compares equal when the only variation is case.
43
+
44
+ >>> s = FoldedCase('hello world')
45
+
46
+ >>> s == 'Hello World'
47
+ True
48
+
49
+ >>> 'Hello World' == s
50
+ True
51
+
52
+ >>> s != 'Hello World'
53
+ False
54
+
55
+ >>> s.index('O')
56
+ 4
57
+
58
+ >>> s.split('O')
59
+ ['hell', ' w', 'rld']
60
+
61
+ >>> sorted(map(FoldedCase, ['GAMMA', 'alpha', 'Beta']))
62
+ ['alpha', 'Beta', 'GAMMA']
63
+
64
+ Sequence membership is straightforward.
65
+
66
+ >>> "Hello World" in [s]
67
+ True
68
+ >>> s in ["Hello World"]
69
+ True
70
+
71
+ Allows testing for set inclusion, but candidate and elements
72
+ must both be folded.
73
+
74
+ >>> FoldedCase("Hello World") in {s}
75
+ True
76
+ >>> s in {FoldedCase("Hello World")}
77
+ True
78
+
79
+ String inclusion works as long as the FoldedCase object
80
+ is on the right.
81
+
82
+ >>> "hello" in FoldedCase("Hello World")
83
+ True
84
+
85
+ But not if the FoldedCase object is on the left:
86
+
87
+ >>> FoldedCase('hello') in 'Hello World'
88
+ False
89
+
90
+ In that case, use ``in_``:
91
+
92
+ >>> FoldedCase('hello').in_('Hello World')
93
+ True
94
+
95
+ >>> FoldedCase('hello') > FoldedCase('Hello')
96
+ False
97
+
98
+ >>> FoldedCase('ß') == FoldedCase('ss')
99
+ True
100
+ """
101
+
102
+ def __lt__(self, other):
103
+ return self.casefold() < other.casefold()
104
+
105
+ def __gt__(self, other):
106
+ return self.casefold() > other.casefold()
107
+
108
+ def __eq__(self, other):
109
+ return self.casefold() == other.casefold()
110
+
111
+ def __ne__(self, other):
112
+ return self.casefold() != other.casefold()
113
+
114
+ def __hash__(self):
115
+ return hash(self.casefold())
116
+
117
+ def __contains__(self, other):
118
+ return super().casefold().__contains__(other.casefold())
119
+
120
+ def in_(self, other):
121
+ "Does self appear in other?"
122
+ return self in FoldedCase(other)
123
+
124
+ # cache casefold since it's likely to be called frequently.
125
+ @method_cache
126
+ def casefold(self):
127
+ return super().casefold()
128
+
129
+ def index(self, sub):
130
+ return self.casefold().index(sub.casefold())
131
+
132
+ def split(self, splitter=' ', maxsplit=0):
133
+ pattern = re.compile(re.escape(splitter), re.I)
134
+ return pattern.split(self, maxsplit)
135
+
136
+
137
+ # Python 3.8 compatibility
138
+ _unicode_trap = ExceptionTrap(UnicodeDecodeError)
139
+
140
+
141
+ @_unicode_trap.passes
142
+ def is_decodable(value):
143
+ r"""
144
+ Return True if the supplied value is decodable (using the default
145
+ encoding).
146
+
147
+ >>> is_decodable(b'\xff')
148
+ False
149
+ >>> is_decodable(b'\x32')
150
+ True
151
+ """
152
+ value.decode()
153
+
154
+
155
+ def is_binary(value):
156
+ r"""
157
+ Return True if the value appears to be binary (that is, it's a byte
158
+ string and isn't decodable).
159
+
160
+ >>> is_binary(b'\xff')
161
+ True
162
+ >>> is_binary('\xff')
163
+ False
164
+ """
165
+ return isinstance(value, bytes) and not is_decodable(value)
166
+
167
+
168
+ def trim(s):
169
+ r"""
170
+ Trim something like a docstring to remove the whitespace that
171
+ is common due to indentation and formatting.
172
+
173
+ >>> trim("\n\tfoo = bar\n\t\tbar = baz\n")
174
+ 'foo = bar\n\tbar = baz'
175
+ """
176
+ return textwrap.dedent(s).strip()
177
+
178
+
179
+ def wrap(s):
180
+ """
181
+ Wrap lines of text, retaining existing newlines as
182
+ paragraph markers.
183
+
184
+ >>> print(wrap(lorem_ipsum))
185
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
186
+ eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
187
+ minim veniam, quis nostrud exercitation ullamco laboris nisi ut
188
+ aliquip ex ea commodo consequat. Duis aute irure dolor in
189
+ reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
190
+ pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
191
+ culpa qui officia deserunt mollit anim id est laborum.
192
+ <BLANKLINE>
193
+ Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam
194
+ varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus
195
+ magna felis sollicitudin mauris. Integer in mauris eu nibh euismod
196
+ gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis
197
+ risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue,
198
+ eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas
199
+ fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla
200
+ a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis,
201
+ neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing
202
+ sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque
203
+ nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus
204
+ quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis,
205
+ molestie eu, feugiat in, orci. In hac habitasse platea dictumst.
206
+ """
207
+ paragraphs = s.splitlines()
208
+ wrapped = ('\n'.join(textwrap.wrap(para)) for para in paragraphs)
209
+ return '\n\n'.join(wrapped)
210
+
211
+
212
+ def unwrap(s):
213
+ r"""
214
+ Given a multi-line string, return an unwrapped version.
215
+
216
+ >>> wrapped = wrap(lorem_ipsum)
217
+ >>> wrapped.count('\n')
218
+ 20
219
+ >>> unwrapped = unwrap(wrapped)
220
+ >>> unwrapped.count('\n')
221
+ 1
222
+ >>> print(unwrapped)
223
+ Lorem ipsum dolor sit amet, consectetur adipiscing ...
224
+ Curabitur pretium tincidunt lacus. Nulla gravida orci ...
225
+
226
+ """
227
+ paragraphs = re.split(r'\n\n+', s)
228
+ cleaned = (para.replace('\n', ' ') for para in paragraphs)
229
+ return '\n'.join(cleaned)
230
+
231
+
232
+ lorem_ipsum: str = (
233
+ files(__name__).joinpath('Lorem ipsum.txt').read_text(encoding='utf-8')
234
+ )
235
+
236
+
237
+ class Splitter:
238
+ """object that will split a string with the given arguments for each call
239
+
240
+ >>> s = Splitter(',')
241
+ >>> s('hello, world, this is your, master calling')
242
+ ['hello', ' world', ' this is your', ' master calling']
243
+ """
244
+
245
+ def __init__(self, *args):
246
+ self.args = args
247
+
248
+ def __call__(self, s):
249
+ return s.split(*self.args)
250
+
251
+
252
+ def indent(string, prefix=' ' * 4):
253
+ """
254
+ >>> indent('foo')
255
+ ' foo'
256
+ """
257
+ return prefix + string
258
+
259
+
260
+ class WordSet(tuple):
261
+ """
262
+ Given an identifier, return the words that identifier represents,
263
+ whether in camel case, underscore-separated, etc.
264
+
265
+ >>> WordSet.parse("camelCase")
266
+ ('camel', 'Case')
267
+
268
+ >>> WordSet.parse("under_sep")
269
+ ('under', 'sep')
270
+
271
+ Acronyms should be retained
272
+
273
+ >>> WordSet.parse("firstSNL")
274
+ ('first', 'SNL')
275
+
276
+ >>> WordSet.parse("you_and_I")
277
+ ('you', 'and', 'I')
278
+
279
+ >>> WordSet.parse("A simple test")
280
+ ('A', 'simple', 'test')
281
+
282
+ Multiple caps should not interfere with the first cap of another word.
283
+
284
+ >>> WordSet.parse("myABCClass")
285
+ ('my', 'ABC', 'Class')
286
+
287
+ The result is a WordSet, providing access to other forms.
288
+
289
+ >>> WordSet.parse("myABCClass").underscore_separated()
290
+ 'my_ABC_Class'
291
+
292
+ >>> WordSet.parse('a-command').camel_case()
293
+ 'ACommand'
294
+
295
+ >>> WordSet.parse('someIdentifier').lowered().space_separated()
296
+ 'some identifier'
297
+
298
+ Slices of the result should return another WordSet.
299
+
300
+ >>> WordSet.parse('taken-out-of-context')[1:].underscore_separated()
301
+ 'out_of_context'
302
+
303
+ >>> WordSet.from_class_name(WordSet()).lowered().space_separated()
304
+ 'word set'
305
+
306
+ >>> example = WordSet.parse('figured it out')
307
+ >>> example.headless_camel_case()
308
+ 'figuredItOut'
309
+ >>> example.dash_separated()
310
+ 'figured-it-out'
311
+
312
+ """
313
+
314
+ _pattern = re.compile('([A-Z]?[a-z]+)|([A-Z]+(?![a-z]))')
315
+
316
+ def capitalized(self):
317
+ return WordSet(word.capitalize() for word in self)
318
+
319
+ def lowered(self):
320
+ return WordSet(word.lower() for word in self)
321
+
322
+ def camel_case(self):
323
+ return ''.join(self.capitalized())
324
+
325
+ def headless_camel_case(self):
326
+ words = iter(self)
327
+ first = next(words).lower()
328
+ new_words = itertools.chain((first,), WordSet(words).camel_case())
329
+ return ''.join(new_words)
330
+
331
+ def underscore_separated(self):
332
+ return '_'.join(self)
333
+
334
+ def dash_separated(self):
335
+ return '-'.join(self)
336
+
337
+ def space_separated(self):
338
+ return ' '.join(self)
339
+
340
+ def trim_right(self, item):
341
+ """
342
+ Remove the item from the end of the set.
343
+
344
+ >>> WordSet.parse('foo bar').trim_right('foo')
345
+ ('foo', 'bar')
346
+ >>> WordSet.parse('foo bar').trim_right('bar')
347
+ ('foo',)
348
+ >>> WordSet.parse('').trim_right('bar')
349
+ ()
350
+ """
351
+ return self[:-1] if self and self[-1] == item else self
352
+
353
+ def trim_left(self, item):
354
+ """
355
+ Remove the item from the beginning of the set.
356
+
357
+ >>> WordSet.parse('foo bar').trim_left('foo')
358
+ ('bar',)
359
+ >>> WordSet.parse('foo bar').trim_left('bar')
360
+ ('foo', 'bar')
361
+ >>> WordSet.parse('').trim_left('bar')
362
+ ()
363
+ """
364
+ return self[1:] if self and self[0] == item else self
365
+
366
+ def trim(self, item):
367
+ """
368
+ >>> WordSet.parse('foo bar').trim('foo')
369
+ ('bar',)
370
+ """
371
+ return self.trim_left(item).trim_right(item)
372
+
373
+ def __getitem__(self, item):
374
+ result = super().__getitem__(item)
375
+ if isinstance(item, slice):
376
+ result = WordSet(result)
377
+ return result
378
+
379
+ @classmethod
380
+ def parse(cls, identifier):
381
+ matches = cls._pattern.finditer(identifier)
382
+ return WordSet(match.group(0) for match in matches)
383
+
384
+ @classmethod
385
+ def from_class_name(cls, subject):
386
+ return cls.parse(subject.__class__.__name__)
387
+
388
+
389
+ # for backward compatibility
390
+ words = WordSet.parse
391
+
392
+
393
+ def simple_html_strip(s):
394
+ r"""
395
+ Remove HTML from the string `s`.
396
+
397
+ >>> str(simple_html_strip(''))
398
+ ''
399
+
400
+ >>> print(simple_html_strip('A <bold>stormy</bold> day in paradise'))
401
+ A stormy day in paradise
402
+
403
+ >>> print(simple_html_strip('Somebody <!-- do not --> tell the truth.'))
404
+ Somebody tell the truth.
405
+
406
+ >>> print(simple_html_strip('What about<br/>\nmultiple lines?'))
407
+ What about
408
+ multiple lines?
409
+ """
410
+ html_stripper = re.compile('(<!--.*?-->)|(<[^>]*>)|([^<]+)', re.DOTALL)
411
+ texts = (match.group(3) or '' for match in html_stripper.finditer(s))
412
+ return ''.join(texts)
413
+
414
+
415
+ class SeparatedValues(str):
416
+ """
417
+ A string separated by a separator. Overrides __iter__ for getting
418
+ the values.
419
+
420
+ >>> list(SeparatedValues('a,b,c'))
421
+ ['a', 'b', 'c']
422
+
423
+ Whitespace is stripped and empty values are discarded.
424
+
425
+ >>> list(SeparatedValues(' a, b , c, '))
426
+ ['a', 'b', 'c']
427
+ """
428
+
429
+ separator = ','
430
+
431
+ def __iter__(self):
432
+ parts = self.split(self.separator)
433
+ return filter(None, (part.strip() for part in parts))
434
+
435
+
436
+ class Stripper:
437
+ r"""
438
+ Given a series of lines, find the common prefix and strip it from them.
439
+
440
+ >>> lines = [
441
+ ... 'abcdefg\n',
442
+ ... 'abc\n',
443
+ ... 'abcde\n',
444
+ ... ]
445
+ >>> res = Stripper.strip_prefix(lines)
446
+ >>> res.prefix
447
+ 'abc'
448
+ >>> list(res.lines)
449
+ ['defg\n', '\n', 'de\n']
450
+
451
+ If no prefix is common, nothing should be stripped.
452
+
453
+ >>> lines = [
454
+ ... 'abcd\n',
455
+ ... '1234\n',
456
+ ... ]
457
+ >>> res = Stripper.strip_prefix(lines)
458
+ >>> res.prefix = ''
459
+ >>> list(res.lines)
460
+ ['abcd\n', '1234\n']
461
+ """
462
+
463
+ def __init__(self, prefix, lines):
464
+ self.prefix = prefix
465
+ self.lines = map(self, lines)
466
+
467
+ @classmethod
468
+ def strip_prefix(cls, lines):
469
+ prefix_lines, lines = itertools.tee(lines)
470
+ prefix = functools.reduce(cls.common_prefix, prefix_lines)
471
+ return cls(prefix, lines)
472
+
473
+ def __call__(self, line):
474
+ if not self.prefix:
475
+ return line
476
+ null, prefix, rest = line.partition(self.prefix)
477
+ return rest
478
+
479
+ @staticmethod
480
+ def common_prefix(s1, s2):
481
+ """
482
+ Return the common prefix of two lines.
483
+ """
484
+ index = min(len(s1), len(s2))
485
+ while s1[:index] != s2[:index]:
486
+ index -= 1
487
+ return s1[:index]
488
+
489
+
490
+ def remove_prefix(text, prefix):
491
+ """
492
+ Remove the prefix from the text if it exists.
493
+
494
+ >>> remove_prefix('underwhelming performance', 'underwhelming ')
495
+ 'performance'
496
+
497
+ >>> remove_prefix('something special', 'sample')
498
+ 'something special'
499
+ """
500
+ null, prefix, rest = text.rpartition(prefix)
501
+ return rest
502
+
503
+
504
+ def remove_suffix(text, suffix):
505
+ """
506
+ Remove the suffix from the text if it exists.
507
+
508
+ >>> remove_suffix('name.git', '.git')
509
+ 'name'
510
+
511
+ >>> remove_suffix('something special', 'sample')
512
+ 'something special'
513
+ """
514
+ rest, suffix, null = text.partition(suffix)
515
+ return rest
516
+
517
+
518
+ def normalize_newlines(text):
519
+ r"""
520
+ Replace alternate newlines with the canonical newline.
521
+
522
+ >>> normalize_newlines('Lorem Ipsum\u2029')
523
+ 'Lorem Ipsum\n'
524
+ >>> normalize_newlines('Lorem Ipsum\r\n')
525
+ 'Lorem Ipsum\n'
526
+ >>> normalize_newlines('Lorem Ipsum\x85')
527
+ 'Lorem Ipsum\n'
528
+ """
529
+ newlines = ['\r\n', '\r', '\n', '\u0085', '\u2028', '\u2029']
530
+ pattern = '|'.join(newlines)
531
+ return re.sub(pattern, '\n', text)
532
+
533
+
534
+ def _nonblank(str):
535
+ return str and not str.startswith('#')
536
+
537
+
538
+ @functools.singledispatch
539
+ def yield_lines(iterable):
540
+ r"""
541
+ Yield valid lines of a string or iterable.
542
+
543
+ >>> list(yield_lines(''))
544
+ []
545
+ >>> list(yield_lines(['foo', 'bar']))
546
+ ['foo', 'bar']
547
+ >>> list(yield_lines('foo\nbar'))
548
+ ['foo', 'bar']
549
+ >>> list(yield_lines('\nfoo\n#bar\nbaz #comment'))
550
+ ['foo', 'baz #comment']
551
+ >>> list(yield_lines(['foo\nbar', 'baz', 'bing\n\n\n']))
552
+ ['foo', 'bar', 'baz', 'bing']
553
+ """
554
+ return itertools.chain.from_iterable(map(yield_lines, iterable))
555
+
556
+
557
+ @yield_lines.register(str)
558
+ def _(text):
559
+ return clean(text.splitlines())
560
+
561
+
562
+ def clean(lines: Iterable[str]):
563
+ """
564
+ Yield non-blank, non-comment elements from lines.
565
+ """
566
+ return filter(_nonblank, map(str.strip, lines))
567
+
568
+
569
+ def drop_comment(line):
570
+ """
571
+ Drop comments.
572
+
573
+ >>> drop_comment('foo # bar')
574
+ 'foo'
575
+
576
+ A hash without a space may be in a URL.
577
+
578
+ >>> drop_comment('http://example.com/foo#bar')
579
+ 'http://example.com/foo#bar'
580
+ """
581
+ return line.partition(' #')[0]
582
+
583
+
584
+ def join_continuation(lines):
585
+ r"""
586
+ Join lines continued by a trailing backslash.
587
+
588
+ >>> list(join_continuation(['foo \\', 'bar', 'baz']))
589
+ ['foobar', 'baz']
590
+ >>> list(join_continuation(['foo \\', 'bar', 'baz']))
591
+ ['foobar', 'baz']
592
+ >>> list(join_continuation(['foo \\', 'bar \\', 'baz']))
593
+ ['foobarbaz']
594
+
595
+ Not sure why, but...
596
+ The character preceding the backslash is also elided.
597
+
598
+ >>> list(join_continuation(['goo\\', 'dly']))
599
+ ['godly']
600
+
601
+ A terrible idea, but...
602
+ If no line is available to continue, suppress the lines.
603
+
604
+ >>> list(join_continuation(['foo', 'bar\\', 'baz\\']))
605
+ ['foo']
606
+ """
607
+ lines = iter(lines)
608
+ for item in lines:
609
+ while item.endswith('\\'):
610
+ try:
611
+ item = item[:-2].strip() + next(lines)
612
+ except StopIteration:
613
+ return
614
+ yield item
615
+
616
+
617
+ def read_newlines(filename, limit=1024):
618
+ r"""
619
+ >>> tmp_path = getfixture('tmp_path')
620
+ >>> filename = tmp_path / 'out.txt'
621
+ >>> _ = filename.write_text('foo\n', newline='', encoding='utf-8')
622
+ >>> read_newlines(filename)
623
+ '\n'
624
+ >>> _ = filename.write_text('foo\r\n', newline='', encoding='utf-8')
625
+ >>> read_newlines(filename)
626
+ '\r\n'
627
+ >>> _ = filename.write_text('foo\r\nbar\nbing\r', newline='', encoding='utf-8')
628
+ >>> read_newlines(filename)
629
+ ('\r', '\n', '\r\n')
630
+ """
631
+ with open(filename, encoding='utf-8') as fp:
632
+ fp.read(limit)
633
+ return fp.newlines
634
+
635
+
636
+ def lines_from(input):
637
+ """
638
+ Generate lines from a :class:`importlib.resources.abc.Traversable` path.
639
+
640
+ >>> lines = lines_from(files(__name__).joinpath('Lorem ipsum.txt'))
641
+ >>> next(lines)
642
+ 'Lorem ipsum...'
643
+ >>> next(lines)
644
+ 'Curabitur pretium...'
645
+ """
646
+ with input.open(encoding='utf-8') as stream:
647
+ yield from stream
python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (25.4 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/layouts.cpython-313.pyc ADDED
Binary file (1.07 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/show-newlines.cpython-313.pyc ADDED
Binary file (1.43 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/strip-prefix.cpython-313.pyc ADDED
Binary file (869 Bytes). View file
 
python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/to-dvorak.cpython-313.pyc ADDED
Binary file (445 Bytes). View file
 
python/Lib/site-packages/setuptools/_vendor/jaraco/text/__pycache__/to-qwerty.cpython-313.pyc ADDED
Binary file (445 Bytes). View file
 
python/Lib/site-packages/setuptools/_vendor/jaraco/text/layouts.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ qwerty = "-=qwertyuiop[]asdfghjkl;'zxcvbnm,./_+QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>?"
2
+ dvorak = "[]',.pyfgcrl/=aoeuidhtns-;qjkxbmwvz{}\"<>PYFGCRL?+AOEUIDHTNS_:QJKXBMWVZ"
3
+
4
+
5
+ to_dvorak = str.maketrans(qwerty, dvorak)
6
+ to_qwerty = str.maketrans(dvorak, qwerty)
7
+
8
+
9
+ def translate(input, translation):
10
+ """
11
+ >>> translate('dvorak', to_dvorak)
12
+ 'ekrpat'
13
+ >>> translate('qwerty', to_qwerty)
14
+ 'x,dokt'
15
+ """
16
+ return input.translate(translation)
17
+
18
+
19
+ def _translate_stream(stream, translation):
20
+ """
21
+ >>> import io
22
+ >>> _translate_stream(io.StringIO('foo'), to_dvorak)
23
+ urr
24
+ """
25
+ print(translate(stream.read(), translation))
python/Lib/site-packages/setuptools/_vendor/jaraco/text/show-newlines.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import autocommand
2
+ import inflect
3
+ from more_itertools import always_iterable
4
+
5
+ import jaraco.text
6
+
7
+
8
+ def report_newlines(filename):
9
+ r"""
10
+ Report the newlines in the indicated file.
11
+
12
+ >>> tmp_path = getfixture('tmp_path')
13
+ >>> filename = tmp_path / 'out.txt'
14
+ >>> _ = filename.write_text('foo\nbar\n', newline='', encoding='utf-8')
15
+ >>> report_newlines(filename)
16
+ newline is '\n'
17
+ >>> filename = tmp_path / 'out.txt'
18
+ >>> _ = filename.write_text('foo\nbar\r\n', newline='', encoding='utf-8')
19
+ >>> report_newlines(filename)
20
+ newlines are ('\n', '\r\n')
21
+ """
22
+ newlines = jaraco.text.read_newlines(filename)
23
+ count = len(tuple(always_iterable(newlines)))
24
+ engine = inflect.engine()
25
+ print(
26
+ engine.plural_noun("newline", count),
27
+ engine.plural_verb("is", count),
28
+ repr(newlines),
29
+ )
30
+
31
+
32
+ autocommand.autocommand(__name__)(report_newlines)
python/Lib/site-packages/setuptools/_vendor/jaraco/text/strip-prefix.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+
3
+ import autocommand
4
+
5
+ from jaraco.text import Stripper
6
+
7
+
8
+ def strip_prefix():
9
+ r"""
10
+ Strip any common prefix from stdin.
11
+
12
+ >>> import io, pytest
13
+ >>> getfixture('monkeypatch').setattr('sys.stdin', io.StringIO('abcdef\nabc123'))
14
+ >>> strip_prefix()
15
+ def
16
+ 123
17
+ """
18
+ sys.stdout.writelines(Stripper.strip_prefix(sys.stdin).lines)
19
+
20
+
21
+ autocommand.autocommand(__name__)(strip_prefix)
python/Lib/site-packages/setuptools/_vendor/jaraco/text/to-dvorak.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import sys
2
+
3
+ from . import layouts
4
+
5
+ __name__ == '__main__' and layouts._translate_stream(sys.stdin, layouts.to_dvorak)
python/Lib/site-packages/setuptools/_vendor/jaraco/text/to-qwerty.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import sys
2
+
3
+ from . import layouts
4
+
5
+ __name__ == '__main__' and layouts._translate_stream(sys.stdin, layouts.to_qwerty)
python/Lib/site-packages/setuptools/_vendor/jaraco_context-6.1.0.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 <copyright holders>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
9
+ following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
16
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
18
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
python/Lib/site-packages/setuptools/_vendor/jaraco_functools-4.4.0.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2025 <copyright holders>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
9
+ following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
16
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
18
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
python/Lib/site-packages/setuptools/_vendor/more_itertools-10.8.0.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2012 Erik Rose
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
python/Lib/site-packages/setuptools/_vendor/more_itertools/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (343 Bytes). View file
 
python/Lib/site-packages/setuptools/_vendor/more_itertools/__pycache__/recipes.cpython-313.pyc ADDED
Binary file (49 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/more_itertools/more.py ADDED
The diff for this file is too large to render. See raw diff
 
python/Lib/site-packages/setuptools/_vendor/packaging-26.0.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ This software is made available under the terms of *either* of the licenses
2
+ found in LICENSE.APACHE or LICENSE.BSD. Contributions to this software is made
3
+ under the terms of *both* these licenses.
python/Lib/site-packages/setuptools/_vendor/packaging-26.0.dist-info/licenses/LICENSE.APACHE ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
python/Lib/site-packages/setuptools/_vendor/packaging-26.0.dist-info/licenses/LICENSE.BSD ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) Donald Stufft and individual contributors.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+
10
+ 2. Redistributions in binary form must reproduce the above copyright
11
+ notice, this list of conditions and the following disclaimer in the
12
+ documentation and/or other materials provided with the distribution.
13
+
14
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (549 Bytes). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_elffile.cpython-313.pyc ADDED
Binary file (5.13 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_manylinux.cpython-313.pyc ADDED
Binary file (10.1 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_musllinux.cpython-313.pyc ADDED
Binary file (4.63 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_parser.cpython-313.pyc ADDED
Binary file (14.4 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_structures.cpython-313.pyc ADDED
Binary file (3.51 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/_tokenizer.cpython-313.pyc ADDED
Binary file (8.61 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/markers.cpython-313.pyc ADDED
Binary file (13.5 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/metadata.cpython-313.pyc ADDED
Binary file (32.2 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/pylock.cpython-313.pyc ADDED
Binary file (29.4 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/requirements.cpython-313.pyc ADDED
Binary file (4.62 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/specifiers.cpython-313.pyc ADDED
Binary file (39.5 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/tags.cpython-313.pyc ADDED
Binary file (25.4 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/utils.cpython-313.pyc ADDED
Binary file (6.52 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/__pycache__/version.cpython-313.pyc ADDED
Binary file (27.6 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/licenses/__init__.py ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #######################################################################################
2
+ #
3
+ # Adapted from:
4
+ # https://github.com/pypa/hatch/blob/5352e44/backend/src/hatchling/licenses/parse.py
5
+ #
6
+ # MIT License
7
+ #
8
+ # Copyright (c) 2017-present Ofek Lev <oss@ofek.dev>
9
+ #
10
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of this
11
+ # software and associated documentation files (the "Software"), to deal in the Software
12
+ # without restriction, including without limitation the rights to use, copy, modify,
13
+ # merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
14
+ # permit persons to whom the Software is furnished to do so, subject to the following
15
+ # conditions:
16
+ #
17
+ # The above copyright notice and this permission notice shall be included in all copies
18
+ # or substantial portions of the Software.
19
+ #
20
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21
+ # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
22
+ # PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
23
+ # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
24
+ # CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
25
+ # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
+ #
27
+ #
28
+ # With additional allowance of arbitrary `LicenseRef-` identifiers, not just
29
+ # `LicenseRef-Public-Domain` and `LicenseRef-Proprietary`.
30
+ #
31
+ #######################################################################################
32
+ from __future__ import annotations
33
+
34
+ import re
35
+ from typing import NewType, cast
36
+
37
+ from ._spdx import EXCEPTIONS, LICENSES
38
+
39
+ __all__ = [
40
+ "InvalidLicenseExpression",
41
+ "NormalizedLicenseExpression",
42
+ "canonicalize_license_expression",
43
+ ]
44
+
45
+ license_ref_allowed = re.compile("^[A-Za-z0-9.-]*$")
46
+
47
+ NormalizedLicenseExpression = NewType("NormalizedLicenseExpression", str)
48
+
49
+
50
+ class InvalidLicenseExpression(ValueError):
51
+ """Raised when a license-expression string is invalid
52
+
53
+ >>> canonicalize_license_expression("invalid")
54
+ Traceback (most recent call last):
55
+ ...
56
+ packaging.licenses.InvalidLicenseExpression: Invalid license expression: 'invalid'
57
+ """
58
+
59
+
60
+ def canonicalize_license_expression(
61
+ raw_license_expression: str,
62
+ ) -> NormalizedLicenseExpression:
63
+ if not raw_license_expression:
64
+ message = f"Invalid license expression: {raw_license_expression!r}"
65
+ raise InvalidLicenseExpression(message)
66
+
67
+ # Pad any parentheses so tokenization can be achieved by merely splitting on
68
+ # whitespace.
69
+ license_expression = raw_license_expression.replace("(", " ( ").replace(")", " ) ")
70
+ licenseref_prefix = "LicenseRef-"
71
+ license_refs = {
72
+ ref.lower(): "LicenseRef-" + ref[len(licenseref_prefix) :]
73
+ for ref in license_expression.split()
74
+ if ref.lower().startswith(licenseref_prefix.lower())
75
+ }
76
+
77
+ # Normalize to lower case so we can look up licenses/exceptions
78
+ # and so boolean operators are Python-compatible.
79
+ license_expression = license_expression.lower()
80
+
81
+ tokens = license_expression.split()
82
+
83
+ # Rather than implementing a parenthesis/boolean logic parser, create an
84
+ # expression that Python can parse. Everything that is not involved with the
85
+ # grammar itself is replaced with the placeholder `False` and the resultant
86
+ # expression should become a valid Python expression.
87
+ python_tokens = []
88
+ for token in tokens:
89
+ if token not in {"or", "and", "with", "(", ")"}:
90
+ python_tokens.append("False")
91
+ elif token == "with":
92
+ python_tokens.append("or")
93
+ elif (
94
+ token == "("
95
+ and python_tokens
96
+ and python_tokens[-1] not in {"or", "and", "("}
97
+ ) or (token == ")" and python_tokens and python_tokens[-1] == "("):
98
+ message = f"Invalid license expression: {raw_license_expression!r}"
99
+ raise InvalidLicenseExpression(message)
100
+ else:
101
+ python_tokens.append(token)
102
+
103
+ python_expression = " ".join(python_tokens)
104
+ try:
105
+ compile(python_expression, "", "eval")
106
+ except SyntaxError:
107
+ message = f"Invalid license expression: {raw_license_expression!r}"
108
+ raise InvalidLicenseExpression(message) from None
109
+
110
+ # Take a final pass to check for unknown licenses/exceptions.
111
+ normalized_tokens = []
112
+ for token in tokens:
113
+ if token in {"or", "and", "with", "(", ")"}:
114
+ normalized_tokens.append(token.upper())
115
+ continue
116
+
117
+ if normalized_tokens and normalized_tokens[-1] == "WITH":
118
+ if token not in EXCEPTIONS:
119
+ message = f"Unknown license exception: {token!r}"
120
+ raise InvalidLicenseExpression(message)
121
+
122
+ normalized_tokens.append(EXCEPTIONS[token]["id"])
123
+ else:
124
+ if token.endswith("+"):
125
+ final_token = token[:-1]
126
+ suffix = "+"
127
+ else:
128
+ final_token = token
129
+ suffix = ""
130
+
131
+ if final_token.startswith("licenseref-"):
132
+ if not license_ref_allowed.match(final_token):
133
+ message = f"Invalid licenseref: {final_token!r}"
134
+ raise InvalidLicenseExpression(message)
135
+ normalized_tokens.append(license_refs[final_token] + suffix)
136
+ else:
137
+ if final_token not in LICENSES:
138
+ message = f"Unknown license: {final_token!r}"
139
+ raise InvalidLicenseExpression(message)
140
+ normalized_tokens.append(LICENSES[final_token]["id"] + suffix)
141
+
142
+ normalized_expression = " ".join(normalized_tokens)
143
+
144
+ return cast(
145
+ "NormalizedLicenseExpression",
146
+ normalized_expression.replace("( ", "(").replace(" )", ")"),
147
+ )
python/Lib/site-packages/setuptools/_vendor/packaging/licenses/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (4.24 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/licenses/__pycache__/_spdx.cpython-313.pyc ADDED
Binary file (49.9 kB). View file
 
python/Lib/site-packages/setuptools/_vendor/packaging/licenses/_spdx.py ADDED
@@ -0,0 +1,799 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ from __future__ import annotations
3
+
4
+ from typing import TypedDict
5
+
6
+ class SPDXLicense(TypedDict):
7
+ id: str
8
+ deprecated: bool
9
+
10
+ class SPDXException(TypedDict):
11
+ id: str
12
+ deprecated: bool
13
+
14
+
15
+ VERSION = '3.27.0'
16
+
17
+ LICENSES: dict[str, SPDXLicense] = {
18
+ '0bsd': {'id': '0BSD', 'deprecated': False},
19
+ '3d-slicer-1.0': {'id': '3D-Slicer-1.0', 'deprecated': False},
20
+ 'aal': {'id': 'AAL', 'deprecated': False},
21
+ 'abstyles': {'id': 'Abstyles', 'deprecated': False},
22
+ 'adacore-doc': {'id': 'AdaCore-doc', 'deprecated': False},
23
+ 'adobe-2006': {'id': 'Adobe-2006', 'deprecated': False},
24
+ 'adobe-display-postscript': {'id': 'Adobe-Display-PostScript', 'deprecated': False},
25
+ 'adobe-glyph': {'id': 'Adobe-Glyph', 'deprecated': False},
26
+ 'adobe-utopia': {'id': 'Adobe-Utopia', 'deprecated': False},
27
+ 'adsl': {'id': 'ADSL', 'deprecated': False},
28
+ 'afl-1.1': {'id': 'AFL-1.1', 'deprecated': False},
29
+ 'afl-1.2': {'id': 'AFL-1.2', 'deprecated': False},
30
+ 'afl-2.0': {'id': 'AFL-2.0', 'deprecated': False},
31
+ 'afl-2.1': {'id': 'AFL-2.1', 'deprecated': False},
32
+ 'afl-3.0': {'id': 'AFL-3.0', 'deprecated': False},
33
+ 'afmparse': {'id': 'Afmparse', 'deprecated': False},
34
+ 'agpl-1.0': {'id': 'AGPL-1.0', 'deprecated': True},
35
+ 'agpl-1.0-only': {'id': 'AGPL-1.0-only', 'deprecated': False},
36
+ 'agpl-1.0-or-later': {'id': 'AGPL-1.0-or-later', 'deprecated': False},
37
+ 'agpl-3.0': {'id': 'AGPL-3.0', 'deprecated': True},
38
+ 'agpl-3.0-only': {'id': 'AGPL-3.0-only', 'deprecated': False},
39
+ 'agpl-3.0-or-later': {'id': 'AGPL-3.0-or-later', 'deprecated': False},
40
+ 'aladdin': {'id': 'Aladdin', 'deprecated': False},
41
+ 'amd-newlib': {'id': 'AMD-newlib', 'deprecated': False},
42
+ 'amdplpa': {'id': 'AMDPLPA', 'deprecated': False},
43
+ 'aml': {'id': 'AML', 'deprecated': False},
44
+ 'aml-glslang': {'id': 'AML-glslang', 'deprecated': False},
45
+ 'ampas': {'id': 'AMPAS', 'deprecated': False},
46
+ 'antlr-pd': {'id': 'ANTLR-PD', 'deprecated': False},
47
+ 'antlr-pd-fallback': {'id': 'ANTLR-PD-fallback', 'deprecated': False},
48
+ 'any-osi': {'id': 'any-OSI', 'deprecated': False},
49
+ 'any-osi-perl-modules': {'id': 'any-OSI-perl-modules', 'deprecated': False},
50
+ 'apache-1.0': {'id': 'Apache-1.0', 'deprecated': False},
51
+ 'apache-1.1': {'id': 'Apache-1.1', 'deprecated': False},
52
+ 'apache-2.0': {'id': 'Apache-2.0', 'deprecated': False},
53
+ 'apafml': {'id': 'APAFML', 'deprecated': False},
54
+ 'apl-1.0': {'id': 'APL-1.0', 'deprecated': False},
55
+ 'app-s2p': {'id': 'App-s2p', 'deprecated': False},
56
+ 'apsl-1.0': {'id': 'APSL-1.0', 'deprecated': False},
57
+ 'apsl-1.1': {'id': 'APSL-1.1', 'deprecated': False},
58
+ 'apsl-1.2': {'id': 'APSL-1.2', 'deprecated': False},
59
+ 'apsl-2.0': {'id': 'APSL-2.0', 'deprecated': False},
60
+ 'arphic-1999': {'id': 'Arphic-1999', 'deprecated': False},
61
+ 'artistic-1.0': {'id': 'Artistic-1.0', 'deprecated': False},
62
+ 'artistic-1.0-cl8': {'id': 'Artistic-1.0-cl8', 'deprecated': False},
63
+ 'artistic-1.0-perl': {'id': 'Artistic-1.0-Perl', 'deprecated': False},
64
+ 'artistic-2.0': {'id': 'Artistic-2.0', 'deprecated': False},
65
+ 'artistic-dist': {'id': 'Artistic-dist', 'deprecated': False},
66
+ 'aspell-ru': {'id': 'Aspell-RU', 'deprecated': False},
67
+ 'aswf-digital-assets-1.0': {'id': 'ASWF-Digital-Assets-1.0', 'deprecated': False},
68
+ 'aswf-digital-assets-1.1': {'id': 'ASWF-Digital-Assets-1.1', 'deprecated': False},
69
+ 'baekmuk': {'id': 'Baekmuk', 'deprecated': False},
70
+ 'bahyph': {'id': 'Bahyph', 'deprecated': False},
71
+ 'barr': {'id': 'Barr', 'deprecated': False},
72
+ 'bcrypt-solar-designer': {'id': 'bcrypt-Solar-Designer', 'deprecated': False},
73
+ 'beerware': {'id': 'Beerware', 'deprecated': False},
74
+ 'bitstream-charter': {'id': 'Bitstream-Charter', 'deprecated': False},
75
+ 'bitstream-vera': {'id': 'Bitstream-Vera', 'deprecated': False},
76
+ 'bittorrent-1.0': {'id': 'BitTorrent-1.0', 'deprecated': False},
77
+ 'bittorrent-1.1': {'id': 'BitTorrent-1.1', 'deprecated': False},
78
+ 'blessing': {'id': 'blessing', 'deprecated': False},
79
+ 'blueoak-1.0.0': {'id': 'BlueOak-1.0.0', 'deprecated': False},
80
+ 'boehm-gc': {'id': 'Boehm-GC', 'deprecated': False},
81
+ 'boehm-gc-without-fee': {'id': 'Boehm-GC-without-fee', 'deprecated': False},
82
+ 'borceux': {'id': 'Borceux', 'deprecated': False},
83
+ 'brian-gladman-2-clause': {'id': 'Brian-Gladman-2-Clause', 'deprecated': False},
84
+ 'brian-gladman-3-clause': {'id': 'Brian-Gladman-3-Clause', 'deprecated': False},
85
+ 'bsd-1-clause': {'id': 'BSD-1-Clause', 'deprecated': False},
86
+ 'bsd-2-clause': {'id': 'BSD-2-Clause', 'deprecated': False},
87
+ 'bsd-2-clause-darwin': {'id': 'BSD-2-Clause-Darwin', 'deprecated': False},
88
+ 'bsd-2-clause-first-lines': {'id': 'BSD-2-Clause-first-lines', 'deprecated': False},
89
+ 'bsd-2-clause-freebsd': {'id': 'BSD-2-Clause-FreeBSD', 'deprecated': True},
90
+ 'bsd-2-clause-netbsd': {'id': 'BSD-2-Clause-NetBSD', 'deprecated': True},
91
+ 'bsd-2-clause-patent': {'id': 'BSD-2-Clause-Patent', 'deprecated': False},
92
+ 'bsd-2-clause-pkgconf-disclaimer': {'id': 'BSD-2-Clause-pkgconf-disclaimer', 'deprecated': False},
93
+ 'bsd-2-clause-views': {'id': 'BSD-2-Clause-Views', 'deprecated': False},
94
+ 'bsd-3-clause': {'id': 'BSD-3-Clause', 'deprecated': False},
95
+ 'bsd-3-clause-acpica': {'id': 'BSD-3-Clause-acpica', 'deprecated': False},
96
+ 'bsd-3-clause-attribution': {'id': 'BSD-3-Clause-Attribution', 'deprecated': False},
97
+ 'bsd-3-clause-clear': {'id': 'BSD-3-Clause-Clear', 'deprecated': False},
98
+ 'bsd-3-clause-flex': {'id': 'BSD-3-Clause-flex', 'deprecated': False},
99
+ 'bsd-3-clause-hp': {'id': 'BSD-3-Clause-HP', 'deprecated': False},
100
+ 'bsd-3-clause-lbnl': {'id': 'BSD-3-Clause-LBNL', 'deprecated': False},
101
+ 'bsd-3-clause-modification': {'id': 'BSD-3-Clause-Modification', 'deprecated': False},
102
+ 'bsd-3-clause-no-military-license': {'id': 'BSD-3-Clause-No-Military-License', 'deprecated': False},
103
+ 'bsd-3-clause-no-nuclear-license': {'id': 'BSD-3-Clause-No-Nuclear-License', 'deprecated': False},
104
+ 'bsd-3-clause-no-nuclear-license-2014': {'id': 'BSD-3-Clause-No-Nuclear-License-2014', 'deprecated': False},
105
+ 'bsd-3-clause-no-nuclear-warranty': {'id': 'BSD-3-Clause-No-Nuclear-Warranty', 'deprecated': False},
106
+ 'bsd-3-clause-open-mpi': {'id': 'BSD-3-Clause-Open-MPI', 'deprecated': False},
107
+ 'bsd-3-clause-sun': {'id': 'BSD-3-Clause-Sun', 'deprecated': False},
108
+ 'bsd-4-clause': {'id': 'BSD-4-Clause', 'deprecated': False},
109
+ 'bsd-4-clause-shortened': {'id': 'BSD-4-Clause-Shortened', 'deprecated': False},
110
+ 'bsd-4-clause-uc': {'id': 'BSD-4-Clause-UC', 'deprecated': False},
111
+ 'bsd-4.3reno': {'id': 'BSD-4.3RENO', 'deprecated': False},
112
+ 'bsd-4.3tahoe': {'id': 'BSD-4.3TAHOE', 'deprecated': False},
113
+ 'bsd-advertising-acknowledgement': {'id': 'BSD-Advertising-Acknowledgement', 'deprecated': False},
114
+ 'bsd-attribution-hpnd-disclaimer': {'id': 'BSD-Attribution-HPND-disclaimer', 'deprecated': False},
115
+ 'bsd-inferno-nettverk': {'id': 'BSD-Inferno-Nettverk', 'deprecated': False},
116
+ 'bsd-protection': {'id': 'BSD-Protection', 'deprecated': False},
117
+ 'bsd-source-beginning-file': {'id': 'BSD-Source-beginning-file', 'deprecated': False},
118
+ 'bsd-source-code': {'id': 'BSD-Source-Code', 'deprecated': False},
119
+ 'bsd-systemics': {'id': 'BSD-Systemics', 'deprecated': False},
120
+ 'bsd-systemics-w3works': {'id': 'BSD-Systemics-W3Works', 'deprecated': False},
121
+ 'bsl-1.0': {'id': 'BSL-1.0', 'deprecated': False},
122
+ 'busl-1.1': {'id': 'BUSL-1.1', 'deprecated': False},
123
+ 'bzip2-1.0.5': {'id': 'bzip2-1.0.5', 'deprecated': True},
124
+ 'bzip2-1.0.6': {'id': 'bzip2-1.0.6', 'deprecated': False},
125
+ 'c-uda-1.0': {'id': 'C-UDA-1.0', 'deprecated': False},
126
+ 'cal-1.0': {'id': 'CAL-1.0', 'deprecated': False},
127
+ 'cal-1.0-combined-work-exception': {'id': 'CAL-1.0-Combined-Work-Exception', 'deprecated': False},
128
+ 'caldera': {'id': 'Caldera', 'deprecated': False},
129
+ 'caldera-no-preamble': {'id': 'Caldera-no-preamble', 'deprecated': False},
130
+ 'catharon': {'id': 'Catharon', 'deprecated': False},
131
+ 'catosl-1.1': {'id': 'CATOSL-1.1', 'deprecated': False},
132
+ 'cc-by-1.0': {'id': 'CC-BY-1.0', 'deprecated': False},
133
+ 'cc-by-2.0': {'id': 'CC-BY-2.0', 'deprecated': False},
134
+ 'cc-by-2.5': {'id': 'CC-BY-2.5', 'deprecated': False},
135
+ 'cc-by-2.5-au': {'id': 'CC-BY-2.5-AU', 'deprecated': False},
136
+ 'cc-by-3.0': {'id': 'CC-BY-3.0', 'deprecated': False},
137
+ 'cc-by-3.0-at': {'id': 'CC-BY-3.0-AT', 'deprecated': False},
138
+ 'cc-by-3.0-au': {'id': 'CC-BY-3.0-AU', 'deprecated': False},
139
+ 'cc-by-3.0-de': {'id': 'CC-BY-3.0-DE', 'deprecated': False},
140
+ 'cc-by-3.0-igo': {'id': 'CC-BY-3.0-IGO', 'deprecated': False},
141
+ 'cc-by-3.0-nl': {'id': 'CC-BY-3.0-NL', 'deprecated': False},
142
+ 'cc-by-3.0-us': {'id': 'CC-BY-3.0-US', 'deprecated': False},
143
+ 'cc-by-4.0': {'id': 'CC-BY-4.0', 'deprecated': False},
144
+ 'cc-by-nc-1.0': {'id': 'CC-BY-NC-1.0', 'deprecated': False},
145
+ 'cc-by-nc-2.0': {'id': 'CC-BY-NC-2.0', 'deprecated': False},
146
+ 'cc-by-nc-2.5': {'id': 'CC-BY-NC-2.5', 'deprecated': False},
147
+ 'cc-by-nc-3.0': {'id': 'CC-BY-NC-3.0', 'deprecated': False},
148
+ 'cc-by-nc-3.0-de': {'id': 'CC-BY-NC-3.0-DE', 'deprecated': False},
149
+ 'cc-by-nc-4.0': {'id': 'CC-BY-NC-4.0', 'deprecated': False},
150
+ 'cc-by-nc-nd-1.0': {'id': 'CC-BY-NC-ND-1.0', 'deprecated': False},
151
+ 'cc-by-nc-nd-2.0': {'id': 'CC-BY-NC-ND-2.0', 'deprecated': False},
152
+ 'cc-by-nc-nd-2.5': {'id': 'CC-BY-NC-ND-2.5', 'deprecated': False},
153
+ 'cc-by-nc-nd-3.0': {'id': 'CC-BY-NC-ND-3.0', 'deprecated': False},
154
+ 'cc-by-nc-nd-3.0-de': {'id': 'CC-BY-NC-ND-3.0-DE', 'deprecated': False},
155
+ 'cc-by-nc-nd-3.0-igo': {'id': 'CC-BY-NC-ND-3.0-IGO', 'deprecated': False},
156
+ 'cc-by-nc-nd-4.0': {'id': 'CC-BY-NC-ND-4.0', 'deprecated': False},
157
+ 'cc-by-nc-sa-1.0': {'id': 'CC-BY-NC-SA-1.0', 'deprecated': False},
158
+ 'cc-by-nc-sa-2.0': {'id': 'CC-BY-NC-SA-2.0', 'deprecated': False},
159
+ 'cc-by-nc-sa-2.0-de': {'id': 'CC-BY-NC-SA-2.0-DE', 'deprecated': False},
160
+ 'cc-by-nc-sa-2.0-fr': {'id': 'CC-BY-NC-SA-2.0-FR', 'deprecated': False},
161
+ 'cc-by-nc-sa-2.0-uk': {'id': 'CC-BY-NC-SA-2.0-UK', 'deprecated': False},
162
+ 'cc-by-nc-sa-2.5': {'id': 'CC-BY-NC-SA-2.5', 'deprecated': False},
163
+ 'cc-by-nc-sa-3.0': {'id': 'CC-BY-NC-SA-3.0', 'deprecated': False},
164
+ 'cc-by-nc-sa-3.0-de': {'id': 'CC-BY-NC-SA-3.0-DE', 'deprecated': False},
165
+ 'cc-by-nc-sa-3.0-igo': {'id': 'CC-BY-NC-SA-3.0-IGO', 'deprecated': False},
166
+ 'cc-by-nc-sa-4.0': {'id': 'CC-BY-NC-SA-4.0', 'deprecated': False},
167
+ 'cc-by-nd-1.0': {'id': 'CC-BY-ND-1.0', 'deprecated': False},
168
+ 'cc-by-nd-2.0': {'id': 'CC-BY-ND-2.0', 'deprecated': False},
169
+ 'cc-by-nd-2.5': {'id': 'CC-BY-ND-2.5', 'deprecated': False},
170
+ 'cc-by-nd-3.0': {'id': 'CC-BY-ND-3.0', 'deprecated': False},
171
+ 'cc-by-nd-3.0-de': {'id': 'CC-BY-ND-3.0-DE', 'deprecated': False},
172
+ 'cc-by-nd-4.0': {'id': 'CC-BY-ND-4.0', 'deprecated': False},
173
+ 'cc-by-sa-1.0': {'id': 'CC-BY-SA-1.0', 'deprecated': False},
174
+ 'cc-by-sa-2.0': {'id': 'CC-BY-SA-2.0', 'deprecated': False},
175
+ 'cc-by-sa-2.0-uk': {'id': 'CC-BY-SA-2.0-UK', 'deprecated': False},
176
+ 'cc-by-sa-2.1-jp': {'id': 'CC-BY-SA-2.1-JP', 'deprecated': False},
177
+ 'cc-by-sa-2.5': {'id': 'CC-BY-SA-2.5', 'deprecated': False},
178
+ 'cc-by-sa-3.0': {'id': 'CC-BY-SA-3.0', 'deprecated': False},
179
+ 'cc-by-sa-3.0-at': {'id': 'CC-BY-SA-3.0-AT', 'deprecated': False},
180
+ 'cc-by-sa-3.0-de': {'id': 'CC-BY-SA-3.0-DE', 'deprecated': False},
181
+ 'cc-by-sa-3.0-igo': {'id': 'CC-BY-SA-3.0-IGO', 'deprecated': False},
182
+ 'cc-by-sa-4.0': {'id': 'CC-BY-SA-4.0', 'deprecated': False},
183
+ 'cc-pddc': {'id': 'CC-PDDC', 'deprecated': False},
184
+ 'cc-pdm-1.0': {'id': 'CC-PDM-1.0', 'deprecated': False},
185
+ 'cc-sa-1.0': {'id': 'CC-SA-1.0', 'deprecated': False},
186
+ 'cc0-1.0': {'id': 'CC0-1.0', 'deprecated': False},
187
+ 'cddl-1.0': {'id': 'CDDL-1.0', 'deprecated': False},
188
+ 'cddl-1.1': {'id': 'CDDL-1.1', 'deprecated': False},
189
+ 'cdl-1.0': {'id': 'CDL-1.0', 'deprecated': False},
190
+ 'cdla-permissive-1.0': {'id': 'CDLA-Permissive-1.0', 'deprecated': False},
191
+ 'cdla-permissive-2.0': {'id': 'CDLA-Permissive-2.0', 'deprecated': False},
192
+ 'cdla-sharing-1.0': {'id': 'CDLA-Sharing-1.0', 'deprecated': False},
193
+ 'cecill-1.0': {'id': 'CECILL-1.0', 'deprecated': False},
194
+ 'cecill-1.1': {'id': 'CECILL-1.1', 'deprecated': False},
195
+ 'cecill-2.0': {'id': 'CECILL-2.0', 'deprecated': False},
196
+ 'cecill-2.1': {'id': 'CECILL-2.1', 'deprecated': False},
197
+ 'cecill-b': {'id': 'CECILL-B', 'deprecated': False},
198
+ 'cecill-c': {'id': 'CECILL-C', 'deprecated': False},
199
+ 'cern-ohl-1.1': {'id': 'CERN-OHL-1.1', 'deprecated': False},
200
+ 'cern-ohl-1.2': {'id': 'CERN-OHL-1.2', 'deprecated': False},
201
+ 'cern-ohl-p-2.0': {'id': 'CERN-OHL-P-2.0', 'deprecated': False},
202
+ 'cern-ohl-s-2.0': {'id': 'CERN-OHL-S-2.0', 'deprecated': False},
203
+ 'cern-ohl-w-2.0': {'id': 'CERN-OHL-W-2.0', 'deprecated': False},
204
+ 'cfitsio': {'id': 'CFITSIO', 'deprecated': False},
205
+ 'check-cvs': {'id': 'check-cvs', 'deprecated': False},
206
+ 'checkmk': {'id': 'checkmk', 'deprecated': False},
207
+ 'clartistic': {'id': 'ClArtistic', 'deprecated': False},
208
+ 'clips': {'id': 'Clips', 'deprecated': False},
209
+ 'cmu-mach': {'id': 'CMU-Mach', 'deprecated': False},
210
+ 'cmu-mach-nodoc': {'id': 'CMU-Mach-nodoc', 'deprecated': False},
211
+ 'cnri-jython': {'id': 'CNRI-Jython', 'deprecated': False},
212
+ 'cnri-python': {'id': 'CNRI-Python', 'deprecated': False},
213
+ 'cnri-python-gpl-compatible': {'id': 'CNRI-Python-GPL-Compatible', 'deprecated': False},
214
+ 'coil-1.0': {'id': 'COIL-1.0', 'deprecated': False},
215
+ 'community-spec-1.0': {'id': 'Community-Spec-1.0', 'deprecated': False},
216
+ 'condor-1.1': {'id': 'Condor-1.1', 'deprecated': False},
217
+ 'copyleft-next-0.3.0': {'id': 'copyleft-next-0.3.0', 'deprecated': False},
218
+ 'copyleft-next-0.3.1': {'id': 'copyleft-next-0.3.1', 'deprecated': False},
219
+ 'cornell-lossless-jpeg': {'id': 'Cornell-Lossless-JPEG', 'deprecated': False},
220
+ 'cpal-1.0': {'id': 'CPAL-1.0', 'deprecated': False},
221
+ 'cpl-1.0': {'id': 'CPL-1.0', 'deprecated': False},
222
+ 'cpol-1.02': {'id': 'CPOL-1.02', 'deprecated': False},
223
+ 'cronyx': {'id': 'Cronyx', 'deprecated': False},
224
+ 'crossword': {'id': 'Crossword', 'deprecated': False},
225
+ 'cryptoswift': {'id': 'CryptoSwift', 'deprecated': False},
226
+ 'crystalstacker': {'id': 'CrystalStacker', 'deprecated': False},
227
+ 'cua-opl-1.0': {'id': 'CUA-OPL-1.0', 'deprecated': False},
228
+ 'cube': {'id': 'Cube', 'deprecated': False},
229
+ 'curl': {'id': 'curl', 'deprecated': False},
230
+ 'cve-tou': {'id': 'cve-tou', 'deprecated': False},
231
+ 'd-fsl-1.0': {'id': 'D-FSL-1.0', 'deprecated': False},
232
+ 'dec-3-clause': {'id': 'DEC-3-Clause', 'deprecated': False},
233
+ 'diffmark': {'id': 'diffmark', 'deprecated': False},
234
+ 'dl-de-by-2.0': {'id': 'DL-DE-BY-2.0', 'deprecated': False},
235
+ 'dl-de-zero-2.0': {'id': 'DL-DE-ZERO-2.0', 'deprecated': False},
236
+ 'doc': {'id': 'DOC', 'deprecated': False},
237
+ 'docbook-dtd': {'id': 'DocBook-DTD', 'deprecated': False},
238
+ 'docbook-schema': {'id': 'DocBook-Schema', 'deprecated': False},
239
+ 'docbook-stylesheet': {'id': 'DocBook-Stylesheet', 'deprecated': False},
240
+ 'docbook-xml': {'id': 'DocBook-XML', 'deprecated': False},
241
+ 'dotseqn': {'id': 'Dotseqn', 'deprecated': False},
242
+ 'drl-1.0': {'id': 'DRL-1.0', 'deprecated': False},
243
+ 'drl-1.1': {'id': 'DRL-1.1', 'deprecated': False},
244
+ 'dsdp': {'id': 'DSDP', 'deprecated': False},
245
+ 'dtoa': {'id': 'dtoa', 'deprecated': False},
246
+ 'dvipdfm': {'id': 'dvipdfm', 'deprecated': False},
247
+ 'ecl-1.0': {'id': 'ECL-1.0', 'deprecated': False},
248
+ 'ecl-2.0': {'id': 'ECL-2.0', 'deprecated': False},
249
+ 'ecos-2.0': {'id': 'eCos-2.0', 'deprecated': True},
250
+ 'efl-1.0': {'id': 'EFL-1.0', 'deprecated': False},
251
+ 'efl-2.0': {'id': 'EFL-2.0', 'deprecated': False},
252
+ 'egenix': {'id': 'eGenix', 'deprecated': False},
253
+ 'elastic-2.0': {'id': 'Elastic-2.0', 'deprecated': False},
254
+ 'entessa': {'id': 'Entessa', 'deprecated': False},
255
+ 'epics': {'id': 'EPICS', 'deprecated': False},
256
+ 'epl-1.0': {'id': 'EPL-1.0', 'deprecated': False},
257
+ 'epl-2.0': {'id': 'EPL-2.0', 'deprecated': False},
258
+ 'erlpl-1.1': {'id': 'ErlPL-1.1', 'deprecated': False},
259
+ 'etalab-2.0': {'id': 'etalab-2.0', 'deprecated': False},
260
+ 'eudatagrid': {'id': 'EUDatagrid', 'deprecated': False},
261
+ 'eupl-1.0': {'id': 'EUPL-1.0', 'deprecated': False},
262
+ 'eupl-1.1': {'id': 'EUPL-1.1', 'deprecated': False},
263
+ 'eupl-1.2': {'id': 'EUPL-1.2', 'deprecated': False},
264
+ 'eurosym': {'id': 'Eurosym', 'deprecated': False},
265
+ 'fair': {'id': 'Fair', 'deprecated': False},
266
+ 'fbm': {'id': 'FBM', 'deprecated': False},
267
+ 'fdk-aac': {'id': 'FDK-AAC', 'deprecated': False},
268
+ 'ferguson-twofish': {'id': 'Ferguson-Twofish', 'deprecated': False},
269
+ 'frameworx-1.0': {'id': 'Frameworx-1.0', 'deprecated': False},
270
+ 'freebsd-doc': {'id': 'FreeBSD-DOC', 'deprecated': False},
271
+ 'freeimage': {'id': 'FreeImage', 'deprecated': False},
272
+ 'fsfap': {'id': 'FSFAP', 'deprecated': False},
273
+ 'fsfap-no-warranty-disclaimer': {'id': 'FSFAP-no-warranty-disclaimer', 'deprecated': False},
274
+ 'fsful': {'id': 'FSFUL', 'deprecated': False},
275
+ 'fsfullr': {'id': 'FSFULLR', 'deprecated': False},
276
+ 'fsfullrsd': {'id': 'FSFULLRSD', 'deprecated': False},
277
+ 'fsfullrwd': {'id': 'FSFULLRWD', 'deprecated': False},
278
+ 'fsl-1.1-alv2': {'id': 'FSL-1.1-ALv2', 'deprecated': False},
279
+ 'fsl-1.1-mit': {'id': 'FSL-1.1-MIT', 'deprecated': False},
280
+ 'ftl': {'id': 'FTL', 'deprecated': False},
281
+ 'furuseth': {'id': 'Furuseth', 'deprecated': False},
282
+ 'fwlw': {'id': 'fwlw', 'deprecated': False},
283
+ 'game-programming-gems': {'id': 'Game-Programming-Gems', 'deprecated': False},
284
+ 'gcr-docs': {'id': 'GCR-docs', 'deprecated': False},
285
+ 'gd': {'id': 'GD', 'deprecated': False},
286
+ 'generic-xts': {'id': 'generic-xts', 'deprecated': False},
287
+ 'gfdl-1.1': {'id': 'GFDL-1.1', 'deprecated': True},
288
+ 'gfdl-1.1-invariants-only': {'id': 'GFDL-1.1-invariants-only', 'deprecated': False},
289
+ 'gfdl-1.1-invariants-or-later': {'id': 'GFDL-1.1-invariants-or-later', 'deprecated': False},
290
+ 'gfdl-1.1-no-invariants-only': {'id': 'GFDL-1.1-no-invariants-only', 'deprecated': False},
291
+ 'gfdl-1.1-no-invariants-or-later': {'id': 'GFDL-1.1-no-invariants-or-later', 'deprecated': False},
292
+ 'gfdl-1.1-only': {'id': 'GFDL-1.1-only', 'deprecated': False},
293
+ 'gfdl-1.1-or-later': {'id': 'GFDL-1.1-or-later', 'deprecated': False},
294
+ 'gfdl-1.2': {'id': 'GFDL-1.2', 'deprecated': True},
295
+ 'gfdl-1.2-invariants-only': {'id': 'GFDL-1.2-invariants-only', 'deprecated': False},
296
+ 'gfdl-1.2-invariants-or-later': {'id': 'GFDL-1.2-invariants-or-later', 'deprecated': False},
297
+ 'gfdl-1.2-no-invariants-only': {'id': 'GFDL-1.2-no-invariants-only', 'deprecated': False},
298
+ 'gfdl-1.2-no-invariants-or-later': {'id': 'GFDL-1.2-no-invariants-or-later', 'deprecated': False},
299
+ 'gfdl-1.2-only': {'id': 'GFDL-1.2-only', 'deprecated': False},
300
+ 'gfdl-1.2-or-later': {'id': 'GFDL-1.2-or-later', 'deprecated': False},
301
+ 'gfdl-1.3': {'id': 'GFDL-1.3', 'deprecated': True},
302
+ 'gfdl-1.3-invariants-only': {'id': 'GFDL-1.3-invariants-only', 'deprecated': False},
303
+ 'gfdl-1.3-invariants-or-later': {'id': 'GFDL-1.3-invariants-or-later', 'deprecated': False},
304
+ 'gfdl-1.3-no-invariants-only': {'id': 'GFDL-1.3-no-invariants-only', 'deprecated': False},
305
+ 'gfdl-1.3-no-invariants-or-later': {'id': 'GFDL-1.3-no-invariants-or-later', 'deprecated': False},
306
+ 'gfdl-1.3-only': {'id': 'GFDL-1.3-only', 'deprecated': False},
307
+ 'gfdl-1.3-or-later': {'id': 'GFDL-1.3-or-later', 'deprecated': False},
308
+ 'giftware': {'id': 'Giftware', 'deprecated': False},
309
+ 'gl2ps': {'id': 'GL2PS', 'deprecated': False},
310
+ 'glide': {'id': 'Glide', 'deprecated': False},
311
+ 'glulxe': {'id': 'Glulxe', 'deprecated': False},
312
+ 'glwtpl': {'id': 'GLWTPL', 'deprecated': False},
313
+ 'gnuplot': {'id': 'gnuplot', 'deprecated': False},
314
+ 'gpl-1.0': {'id': 'GPL-1.0', 'deprecated': True},
315
+ 'gpl-1.0+': {'id': 'GPL-1.0+', 'deprecated': True},
316
+ 'gpl-1.0-only': {'id': 'GPL-1.0-only', 'deprecated': False},
317
+ 'gpl-1.0-or-later': {'id': 'GPL-1.0-or-later', 'deprecated': False},
318
+ 'gpl-2.0': {'id': 'GPL-2.0', 'deprecated': True},
319
+ 'gpl-2.0+': {'id': 'GPL-2.0+', 'deprecated': True},
320
+ 'gpl-2.0-only': {'id': 'GPL-2.0-only', 'deprecated': False},
321
+ 'gpl-2.0-or-later': {'id': 'GPL-2.0-or-later', 'deprecated': False},
322
+ 'gpl-2.0-with-autoconf-exception': {'id': 'GPL-2.0-with-autoconf-exception', 'deprecated': True},
323
+ 'gpl-2.0-with-bison-exception': {'id': 'GPL-2.0-with-bison-exception', 'deprecated': True},
324
+ 'gpl-2.0-with-classpath-exception': {'id': 'GPL-2.0-with-classpath-exception', 'deprecated': True},
325
+ 'gpl-2.0-with-font-exception': {'id': 'GPL-2.0-with-font-exception', 'deprecated': True},
326
+ 'gpl-2.0-with-gcc-exception': {'id': 'GPL-2.0-with-GCC-exception', 'deprecated': True},
327
+ 'gpl-3.0': {'id': 'GPL-3.0', 'deprecated': True},
328
+ 'gpl-3.0+': {'id': 'GPL-3.0+', 'deprecated': True},
329
+ 'gpl-3.0-only': {'id': 'GPL-3.0-only', 'deprecated': False},
330
+ 'gpl-3.0-or-later': {'id': 'GPL-3.0-or-later', 'deprecated': False},
331
+ 'gpl-3.0-with-autoconf-exception': {'id': 'GPL-3.0-with-autoconf-exception', 'deprecated': True},
332
+ 'gpl-3.0-with-gcc-exception': {'id': 'GPL-3.0-with-GCC-exception', 'deprecated': True},
333
+ 'graphics-gems': {'id': 'Graphics-Gems', 'deprecated': False},
334
+ 'gsoap-1.3b': {'id': 'gSOAP-1.3b', 'deprecated': False},
335
+ 'gtkbook': {'id': 'gtkbook', 'deprecated': False},
336
+ 'gutmann': {'id': 'Gutmann', 'deprecated': False},
337
+ 'haskellreport': {'id': 'HaskellReport', 'deprecated': False},
338
+ 'hdf5': {'id': 'HDF5', 'deprecated': False},
339
+ 'hdparm': {'id': 'hdparm', 'deprecated': False},
340
+ 'hidapi': {'id': 'HIDAPI', 'deprecated': False},
341
+ 'hippocratic-2.1': {'id': 'Hippocratic-2.1', 'deprecated': False},
342
+ 'hp-1986': {'id': 'HP-1986', 'deprecated': False},
343
+ 'hp-1989': {'id': 'HP-1989', 'deprecated': False},
344
+ 'hpnd': {'id': 'HPND', 'deprecated': False},
345
+ 'hpnd-dec': {'id': 'HPND-DEC', 'deprecated': False},
346
+ 'hpnd-doc': {'id': 'HPND-doc', 'deprecated': False},
347
+ 'hpnd-doc-sell': {'id': 'HPND-doc-sell', 'deprecated': False},
348
+ 'hpnd-export-us': {'id': 'HPND-export-US', 'deprecated': False},
349
+ 'hpnd-export-us-acknowledgement': {'id': 'HPND-export-US-acknowledgement', 'deprecated': False},
350
+ 'hpnd-export-us-modify': {'id': 'HPND-export-US-modify', 'deprecated': False},
351
+ 'hpnd-export2-us': {'id': 'HPND-export2-US', 'deprecated': False},
352
+ 'hpnd-fenneberg-livingston': {'id': 'HPND-Fenneberg-Livingston', 'deprecated': False},
353
+ 'hpnd-inria-imag': {'id': 'HPND-INRIA-IMAG', 'deprecated': False},
354
+ 'hpnd-intel': {'id': 'HPND-Intel', 'deprecated': False},
355
+ 'hpnd-kevlin-henney': {'id': 'HPND-Kevlin-Henney', 'deprecated': False},
356
+ 'hpnd-markus-kuhn': {'id': 'HPND-Markus-Kuhn', 'deprecated': False},
357
+ 'hpnd-merchantability-variant': {'id': 'HPND-merchantability-variant', 'deprecated': False},
358
+ 'hpnd-mit-disclaimer': {'id': 'HPND-MIT-disclaimer', 'deprecated': False},
359
+ 'hpnd-netrek': {'id': 'HPND-Netrek', 'deprecated': False},
360
+ 'hpnd-pbmplus': {'id': 'HPND-Pbmplus', 'deprecated': False},
361
+ 'hpnd-sell-mit-disclaimer-xserver': {'id': 'HPND-sell-MIT-disclaimer-xserver', 'deprecated': False},
362
+ 'hpnd-sell-regexpr': {'id': 'HPND-sell-regexpr', 'deprecated': False},
363
+ 'hpnd-sell-variant': {'id': 'HPND-sell-variant', 'deprecated': False},
364
+ 'hpnd-sell-variant-mit-disclaimer': {'id': 'HPND-sell-variant-MIT-disclaimer', 'deprecated': False},
365
+ 'hpnd-sell-variant-mit-disclaimer-rev': {'id': 'HPND-sell-variant-MIT-disclaimer-rev', 'deprecated': False},
366
+ 'hpnd-uc': {'id': 'HPND-UC', 'deprecated': False},
367
+ 'hpnd-uc-export-us': {'id': 'HPND-UC-export-US', 'deprecated': False},
368
+ 'htmltidy': {'id': 'HTMLTIDY', 'deprecated': False},
369
+ 'ibm-pibs': {'id': 'IBM-pibs', 'deprecated': False},
370
+ 'icu': {'id': 'ICU', 'deprecated': False},
371
+ 'iec-code-components-eula': {'id': 'IEC-Code-Components-EULA', 'deprecated': False},
372
+ 'ijg': {'id': 'IJG', 'deprecated': False},
373
+ 'ijg-short': {'id': 'IJG-short', 'deprecated': False},
374
+ 'imagemagick': {'id': 'ImageMagick', 'deprecated': False},
375
+ 'imatix': {'id': 'iMatix', 'deprecated': False},
376
+ 'imlib2': {'id': 'Imlib2', 'deprecated': False},
377
+ 'info-zip': {'id': 'Info-ZIP', 'deprecated': False},
378
+ 'inner-net-2.0': {'id': 'Inner-Net-2.0', 'deprecated': False},
379
+ 'innosetup': {'id': 'InnoSetup', 'deprecated': False},
380
+ 'intel': {'id': 'Intel', 'deprecated': False},
381
+ 'intel-acpi': {'id': 'Intel-ACPI', 'deprecated': False},
382
+ 'interbase-1.0': {'id': 'Interbase-1.0', 'deprecated': False},
383
+ 'ipa': {'id': 'IPA', 'deprecated': False},
384
+ 'ipl-1.0': {'id': 'IPL-1.0', 'deprecated': False},
385
+ 'isc': {'id': 'ISC', 'deprecated': False},
386
+ 'isc-veillard': {'id': 'ISC-Veillard', 'deprecated': False},
387
+ 'jam': {'id': 'Jam', 'deprecated': False},
388
+ 'jasper-2.0': {'id': 'JasPer-2.0', 'deprecated': False},
389
+ 'jove': {'id': 'jove', 'deprecated': False},
390
+ 'jpl-image': {'id': 'JPL-image', 'deprecated': False},
391
+ 'jpnic': {'id': 'JPNIC', 'deprecated': False},
392
+ 'json': {'id': 'JSON', 'deprecated': False},
393
+ 'kastrup': {'id': 'Kastrup', 'deprecated': False},
394
+ 'kazlib': {'id': 'Kazlib', 'deprecated': False},
395
+ 'knuth-ctan': {'id': 'Knuth-CTAN', 'deprecated': False},
396
+ 'lal-1.2': {'id': 'LAL-1.2', 'deprecated': False},
397
+ 'lal-1.3': {'id': 'LAL-1.3', 'deprecated': False},
398
+ 'latex2e': {'id': 'Latex2e', 'deprecated': False},
399
+ 'latex2e-translated-notice': {'id': 'Latex2e-translated-notice', 'deprecated': False},
400
+ 'leptonica': {'id': 'Leptonica', 'deprecated': False},
401
+ 'lgpl-2.0': {'id': 'LGPL-2.0', 'deprecated': True},
402
+ 'lgpl-2.0+': {'id': 'LGPL-2.0+', 'deprecated': True},
403
+ 'lgpl-2.0-only': {'id': 'LGPL-2.0-only', 'deprecated': False},
404
+ 'lgpl-2.0-or-later': {'id': 'LGPL-2.0-or-later', 'deprecated': False},
405
+ 'lgpl-2.1': {'id': 'LGPL-2.1', 'deprecated': True},
406
+ 'lgpl-2.1+': {'id': 'LGPL-2.1+', 'deprecated': True},
407
+ 'lgpl-2.1-only': {'id': 'LGPL-2.1-only', 'deprecated': False},
408
+ 'lgpl-2.1-or-later': {'id': 'LGPL-2.1-or-later', 'deprecated': False},
409
+ 'lgpl-3.0': {'id': 'LGPL-3.0', 'deprecated': True},
410
+ 'lgpl-3.0+': {'id': 'LGPL-3.0+', 'deprecated': True},
411
+ 'lgpl-3.0-only': {'id': 'LGPL-3.0-only', 'deprecated': False},
412
+ 'lgpl-3.0-or-later': {'id': 'LGPL-3.0-or-later', 'deprecated': False},
413
+ 'lgpllr': {'id': 'LGPLLR', 'deprecated': False},
414
+ 'libpng': {'id': 'Libpng', 'deprecated': False},
415
+ 'libpng-1.6.35': {'id': 'libpng-1.6.35', 'deprecated': False},
416
+ 'libpng-2.0': {'id': 'libpng-2.0', 'deprecated': False},
417
+ 'libselinux-1.0': {'id': 'libselinux-1.0', 'deprecated': False},
418
+ 'libtiff': {'id': 'libtiff', 'deprecated': False},
419
+ 'libutil-david-nugent': {'id': 'libutil-David-Nugent', 'deprecated': False},
420
+ 'liliq-p-1.1': {'id': 'LiLiQ-P-1.1', 'deprecated': False},
421
+ 'liliq-r-1.1': {'id': 'LiLiQ-R-1.1', 'deprecated': False},
422
+ 'liliq-rplus-1.1': {'id': 'LiLiQ-Rplus-1.1', 'deprecated': False},
423
+ 'linux-man-pages-1-para': {'id': 'Linux-man-pages-1-para', 'deprecated': False},
424
+ 'linux-man-pages-copyleft': {'id': 'Linux-man-pages-copyleft', 'deprecated': False},
425
+ 'linux-man-pages-copyleft-2-para': {'id': 'Linux-man-pages-copyleft-2-para', 'deprecated': False},
426
+ 'linux-man-pages-copyleft-var': {'id': 'Linux-man-pages-copyleft-var', 'deprecated': False},
427
+ 'linux-openib': {'id': 'Linux-OpenIB', 'deprecated': False},
428
+ 'loop': {'id': 'LOOP', 'deprecated': False},
429
+ 'lpd-document': {'id': 'LPD-document', 'deprecated': False},
430
+ 'lpl-1.0': {'id': 'LPL-1.0', 'deprecated': False},
431
+ 'lpl-1.02': {'id': 'LPL-1.02', 'deprecated': False},
432
+ 'lppl-1.0': {'id': 'LPPL-1.0', 'deprecated': False},
433
+ 'lppl-1.1': {'id': 'LPPL-1.1', 'deprecated': False},
434
+ 'lppl-1.2': {'id': 'LPPL-1.2', 'deprecated': False},
435
+ 'lppl-1.3a': {'id': 'LPPL-1.3a', 'deprecated': False},
436
+ 'lppl-1.3c': {'id': 'LPPL-1.3c', 'deprecated': False},
437
+ 'lsof': {'id': 'lsof', 'deprecated': False},
438
+ 'lucida-bitmap-fonts': {'id': 'Lucida-Bitmap-Fonts', 'deprecated': False},
439
+ 'lzma-sdk-9.11-to-9.20': {'id': 'LZMA-SDK-9.11-to-9.20', 'deprecated': False},
440
+ 'lzma-sdk-9.22': {'id': 'LZMA-SDK-9.22', 'deprecated': False},
441
+ 'mackerras-3-clause': {'id': 'Mackerras-3-Clause', 'deprecated': False},
442
+ 'mackerras-3-clause-acknowledgment': {'id': 'Mackerras-3-Clause-acknowledgment', 'deprecated': False},
443
+ 'magaz': {'id': 'magaz', 'deprecated': False},
444
+ 'mailprio': {'id': 'mailprio', 'deprecated': False},
445
+ 'makeindex': {'id': 'MakeIndex', 'deprecated': False},
446
+ 'man2html': {'id': 'man2html', 'deprecated': False},
447
+ 'martin-birgmeier': {'id': 'Martin-Birgmeier', 'deprecated': False},
448
+ 'mcphee-slideshow': {'id': 'McPhee-slideshow', 'deprecated': False},
449
+ 'metamail': {'id': 'metamail', 'deprecated': False},
450
+ 'minpack': {'id': 'Minpack', 'deprecated': False},
451
+ 'mips': {'id': 'MIPS', 'deprecated': False},
452
+ 'miros': {'id': 'MirOS', 'deprecated': False},
453
+ 'mit': {'id': 'MIT', 'deprecated': False},
454
+ 'mit-0': {'id': 'MIT-0', 'deprecated': False},
455
+ 'mit-advertising': {'id': 'MIT-advertising', 'deprecated': False},
456
+ 'mit-click': {'id': 'MIT-Click', 'deprecated': False},
457
+ 'mit-cmu': {'id': 'MIT-CMU', 'deprecated': False},
458
+ 'mit-enna': {'id': 'MIT-enna', 'deprecated': False},
459
+ 'mit-feh': {'id': 'MIT-feh', 'deprecated': False},
460
+ 'mit-festival': {'id': 'MIT-Festival', 'deprecated': False},
461
+ 'mit-khronos-old': {'id': 'MIT-Khronos-old', 'deprecated': False},
462
+ 'mit-modern-variant': {'id': 'MIT-Modern-Variant', 'deprecated': False},
463
+ 'mit-open-group': {'id': 'MIT-open-group', 'deprecated': False},
464
+ 'mit-testregex': {'id': 'MIT-testregex', 'deprecated': False},
465
+ 'mit-wu': {'id': 'MIT-Wu', 'deprecated': False},
466
+ 'mitnfa': {'id': 'MITNFA', 'deprecated': False},
467
+ 'mmixware': {'id': 'MMIXware', 'deprecated': False},
468
+ 'motosoto': {'id': 'Motosoto', 'deprecated': False},
469
+ 'mpeg-ssg': {'id': 'MPEG-SSG', 'deprecated': False},
470
+ 'mpi-permissive': {'id': 'mpi-permissive', 'deprecated': False},
471
+ 'mpich2': {'id': 'mpich2', 'deprecated': False},
472
+ 'mpl-1.0': {'id': 'MPL-1.0', 'deprecated': False},
473
+ 'mpl-1.1': {'id': 'MPL-1.1', 'deprecated': False},
474
+ 'mpl-2.0': {'id': 'MPL-2.0', 'deprecated': False},
475
+ 'mpl-2.0-no-copyleft-exception': {'id': 'MPL-2.0-no-copyleft-exception', 'deprecated': False},
476
+ 'mplus': {'id': 'mplus', 'deprecated': False},
477
+ 'ms-lpl': {'id': 'MS-LPL', 'deprecated': False},
478
+ 'ms-pl': {'id': 'MS-PL', 'deprecated': False},
479
+ 'ms-rl': {'id': 'MS-RL', 'deprecated': False},
480
+ 'mtll': {'id': 'MTLL', 'deprecated': False},
481
+ 'mulanpsl-1.0': {'id': 'MulanPSL-1.0', 'deprecated': False},
482
+ 'mulanpsl-2.0': {'id': 'MulanPSL-2.0', 'deprecated': False},
483
+ 'multics': {'id': 'Multics', 'deprecated': False},
484
+ 'mup': {'id': 'Mup', 'deprecated': False},
485
+ 'naist-2003': {'id': 'NAIST-2003', 'deprecated': False},
486
+ 'nasa-1.3': {'id': 'NASA-1.3', 'deprecated': False},
487
+ 'naumen': {'id': 'Naumen', 'deprecated': False},
488
+ 'nbpl-1.0': {'id': 'NBPL-1.0', 'deprecated': False},
489
+ 'ncbi-pd': {'id': 'NCBI-PD', 'deprecated': False},
490
+ 'ncgl-uk-2.0': {'id': 'NCGL-UK-2.0', 'deprecated': False},
491
+ 'ncl': {'id': 'NCL', 'deprecated': False},
492
+ 'ncsa': {'id': 'NCSA', 'deprecated': False},
493
+ 'net-snmp': {'id': 'Net-SNMP', 'deprecated': True},
494
+ 'netcdf': {'id': 'NetCDF', 'deprecated': False},
495
+ 'newsletr': {'id': 'Newsletr', 'deprecated': False},
496
+ 'ngpl': {'id': 'NGPL', 'deprecated': False},
497
+ 'ngrep': {'id': 'ngrep', 'deprecated': False},
498
+ 'nicta-1.0': {'id': 'NICTA-1.0', 'deprecated': False},
499
+ 'nist-pd': {'id': 'NIST-PD', 'deprecated': False},
500
+ 'nist-pd-fallback': {'id': 'NIST-PD-fallback', 'deprecated': False},
501
+ 'nist-software': {'id': 'NIST-Software', 'deprecated': False},
502
+ 'nlod-1.0': {'id': 'NLOD-1.0', 'deprecated': False},
503
+ 'nlod-2.0': {'id': 'NLOD-2.0', 'deprecated': False},
504
+ 'nlpl': {'id': 'NLPL', 'deprecated': False},
505
+ 'nokia': {'id': 'Nokia', 'deprecated': False},
506
+ 'nosl': {'id': 'NOSL', 'deprecated': False},
507
+ 'noweb': {'id': 'Noweb', 'deprecated': False},
508
+ 'npl-1.0': {'id': 'NPL-1.0', 'deprecated': False},
509
+ 'npl-1.1': {'id': 'NPL-1.1', 'deprecated': False},
510
+ 'nposl-3.0': {'id': 'NPOSL-3.0', 'deprecated': False},
511
+ 'nrl': {'id': 'NRL', 'deprecated': False},
512
+ 'ntia-pd': {'id': 'NTIA-PD', 'deprecated': False},
513
+ 'ntp': {'id': 'NTP', 'deprecated': False},
514
+ 'ntp-0': {'id': 'NTP-0', 'deprecated': False},
515
+ 'nunit': {'id': 'Nunit', 'deprecated': True},
516
+ 'o-uda-1.0': {'id': 'O-UDA-1.0', 'deprecated': False},
517
+ 'oar': {'id': 'OAR', 'deprecated': False},
518
+ 'occt-pl': {'id': 'OCCT-PL', 'deprecated': False},
519
+ 'oclc-2.0': {'id': 'OCLC-2.0', 'deprecated': False},
520
+ 'odbl-1.0': {'id': 'ODbL-1.0', 'deprecated': False},
521
+ 'odc-by-1.0': {'id': 'ODC-By-1.0', 'deprecated': False},
522
+ 'offis': {'id': 'OFFIS', 'deprecated': False},
523
+ 'ofl-1.0': {'id': 'OFL-1.0', 'deprecated': False},
524
+ 'ofl-1.0-no-rfn': {'id': 'OFL-1.0-no-RFN', 'deprecated': False},
525
+ 'ofl-1.0-rfn': {'id': 'OFL-1.0-RFN', 'deprecated': False},
526
+ 'ofl-1.1': {'id': 'OFL-1.1', 'deprecated': False},
527
+ 'ofl-1.1-no-rfn': {'id': 'OFL-1.1-no-RFN', 'deprecated': False},
528
+ 'ofl-1.1-rfn': {'id': 'OFL-1.1-RFN', 'deprecated': False},
529
+ 'ogc-1.0': {'id': 'OGC-1.0', 'deprecated': False},
530
+ 'ogdl-taiwan-1.0': {'id': 'OGDL-Taiwan-1.0', 'deprecated': False},
531
+ 'ogl-canada-2.0': {'id': 'OGL-Canada-2.0', 'deprecated': False},
532
+ 'ogl-uk-1.0': {'id': 'OGL-UK-1.0', 'deprecated': False},
533
+ 'ogl-uk-2.0': {'id': 'OGL-UK-2.0', 'deprecated': False},
534
+ 'ogl-uk-3.0': {'id': 'OGL-UK-3.0', 'deprecated': False},
535
+ 'ogtsl': {'id': 'OGTSL', 'deprecated': False},
536
+ 'oldap-1.1': {'id': 'OLDAP-1.1', 'deprecated': False},
537
+ 'oldap-1.2': {'id': 'OLDAP-1.2', 'deprecated': False},
538
+ 'oldap-1.3': {'id': 'OLDAP-1.3', 'deprecated': False},
539
+ 'oldap-1.4': {'id': 'OLDAP-1.4', 'deprecated': False},
540
+ 'oldap-2.0': {'id': 'OLDAP-2.0', 'deprecated': False},
541
+ 'oldap-2.0.1': {'id': 'OLDAP-2.0.1', 'deprecated': False},
542
+ 'oldap-2.1': {'id': 'OLDAP-2.1', 'deprecated': False},
543
+ 'oldap-2.2': {'id': 'OLDAP-2.2', 'deprecated': False},
544
+ 'oldap-2.2.1': {'id': 'OLDAP-2.2.1', 'deprecated': False},
545
+ 'oldap-2.2.2': {'id': 'OLDAP-2.2.2', 'deprecated': False},
546
+ 'oldap-2.3': {'id': 'OLDAP-2.3', 'deprecated': False},
547
+ 'oldap-2.4': {'id': 'OLDAP-2.4', 'deprecated': False},
548
+ 'oldap-2.5': {'id': 'OLDAP-2.5', 'deprecated': False},
549
+ 'oldap-2.6': {'id': 'OLDAP-2.6', 'deprecated': False},
550
+ 'oldap-2.7': {'id': 'OLDAP-2.7', 'deprecated': False},
551
+ 'oldap-2.8': {'id': 'OLDAP-2.8', 'deprecated': False},
552
+ 'olfl-1.3': {'id': 'OLFL-1.3', 'deprecated': False},
553
+ 'oml': {'id': 'OML', 'deprecated': False},
554
+ 'openpbs-2.3': {'id': 'OpenPBS-2.3', 'deprecated': False},
555
+ 'openssl': {'id': 'OpenSSL', 'deprecated': False},
556
+ 'openssl-standalone': {'id': 'OpenSSL-standalone', 'deprecated': False},
557
+ 'openvision': {'id': 'OpenVision', 'deprecated': False},
558
+ 'opl-1.0': {'id': 'OPL-1.0', 'deprecated': False},
559
+ 'opl-uk-3.0': {'id': 'OPL-UK-3.0', 'deprecated': False},
560
+ 'opubl-1.0': {'id': 'OPUBL-1.0', 'deprecated': False},
561
+ 'oset-pl-2.1': {'id': 'OSET-PL-2.1', 'deprecated': False},
562
+ 'osl-1.0': {'id': 'OSL-1.0', 'deprecated': False},
563
+ 'osl-1.1': {'id': 'OSL-1.1', 'deprecated': False},
564
+ 'osl-2.0': {'id': 'OSL-2.0', 'deprecated': False},
565
+ 'osl-2.1': {'id': 'OSL-2.1', 'deprecated': False},
566
+ 'osl-3.0': {'id': 'OSL-3.0', 'deprecated': False},
567
+ 'padl': {'id': 'PADL', 'deprecated': False},
568
+ 'parity-6.0.0': {'id': 'Parity-6.0.0', 'deprecated': False},
569
+ 'parity-7.0.0': {'id': 'Parity-7.0.0', 'deprecated': False},
570
+ 'pddl-1.0': {'id': 'PDDL-1.0', 'deprecated': False},
571
+ 'php-3.0': {'id': 'PHP-3.0', 'deprecated': False},
572
+ 'php-3.01': {'id': 'PHP-3.01', 'deprecated': False},
573
+ 'pixar': {'id': 'Pixar', 'deprecated': False},
574
+ 'pkgconf': {'id': 'pkgconf', 'deprecated': False},
575
+ 'plexus': {'id': 'Plexus', 'deprecated': False},
576
+ 'pnmstitch': {'id': 'pnmstitch', 'deprecated': False},
577
+ 'polyform-noncommercial-1.0.0': {'id': 'PolyForm-Noncommercial-1.0.0', 'deprecated': False},
578
+ 'polyform-small-business-1.0.0': {'id': 'PolyForm-Small-Business-1.0.0', 'deprecated': False},
579
+ 'postgresql': {'id': 'PostgreSQL', 'deprecated': False},
580
+ 'ppl': {'id': 'PPL', 'deprecated': False},
581
+ 'psf-2.0': {'id': 'PSF-2.0', 'deprecated': False},
582
+ 'psfrag': {'id': 'psfrag', 'deprecated': False},
583
+ 'psutils': {'id': 'psutils', 'deprecated': False},
584
+ 'python-2.0': {'id': 'Python-2.0', 'deprecated': False},
585
+ 'python-2.0.1': {'id': 'Python-2.0.1', 'deprecated': False},
586
+ 'python-ldap': {'id': 'python-ldap', 'deprecated': False},
587
+ 'qhull': {'id': 'Qhull', 'deprecated': False},
588
+ 'qpl-1.0': {'id': 'QPL-1.0', 'deprecated': False},
589
+ 'qpl-1.0-inria-2004': {'id': 'QPL-1.0-INRIA-2004', 'deprecated': False},
590
+ 'radvd': {'id': 'radvd', 'deprecated': False},
591
+ 'rdisc': {'id': 'Rdisc', 'deprecated': False},
592
+ 'rhecos-1.1': {'id': 'RHeCos-1.1', 'deprecated': False},
593
+ 'rpl-1.1': {'id': 'RPL-1.1', 'deprecated': False},
594
+ 'rpl-1.5': {'id': 'RPL-1.5', 'deprecated': False},
595
+ 'rpsl-1.0': {'id': 'RPSL-1.0', 'deprecated': False},
596
+ 'rsa-md': {'id': 'RSA-MD', 'deprecated': False},
597
+ 'rscpl': {'id': 'RSCPL', 'deprecated': False},
598
+ 'ruby': {'id': 'Ruby', 'deprecated': False},
599
+ 'ruby-pty': {'id': 'Ruby-pty', 'deprecated': False},
600
+ 'sax-pd': {'id': 'SAX-PD', 'deprecated': False},
601
+ 'sax-pd-2.0': {'id': 'SAX-PD-2.0', 'deprecated': False},
602
+ 'saxpath': {'id': 'Saxpath', 'deprecated': False},
603
+ 'scea': {'id': 'SCEA', 'deprecated': False},
604
+ 'schemereport': {'id': 'SchemeReport', 'deprecated': False},
605
+ 'sendmail': {'id': 'Sendmail', 'deprecated': False},
606
+ 'sendmail-8.23': {'id': 'Sendmail-8.23', 'deprecated': False},
607
+ 'sendmail-open-source-1.1': {'id': 'Sendmail-Open-Source-1.1', 'deprecated': False},
608
+ 'sgi-b-1.0': {'id': 'SGI-B-1.0', 'deprecated': False},
609
+ 'sgi-b-1.1': {'id': 'SGI-B-1.1', 'deprecated': False},
610
+ 'sgi-b-2.0': {'id': 'SGI-B-2.0', 'deprecated': False},
611
+ 'sgi-opengl': {'id': 'SGI-OpenGL', 'deprecated': False},
612
+ 'sgp4': {'id': 'SGP4', 'deprecated': False},
613
+ 'shl-0.5': {'id': 'SHL-0.5', 'deprecated': False},
614
+ 'shl-0.51': {'id': 'SHL-0.51', 'deprecated': False},
615
+ 'simpl-2.0': {'id': 'SimPL-2.0', 'deprecated': False},
616
+ 'sissl': {'id': 'SISSL', 'deprecated': False},
617
+ 'sissl-1.2': {'id': 'SISSL-1.2', 'deprecated': False},
618
+ 'sl': {'id': 'SL', 'deprecated': False},
619
+ 'sleepycat': {'id': 'Sleepycat', 'deprecated': False},
620
+ 'smail-gpl': {'id': 'SMAIL-GPL', 'deprecated': False},
621
+ 'smlnj': {'id': 'SMLNJ', 'deprecated': False},
622
+ 'smppl': {'id': 'SMPPL', 'deprecated': False},
623
+ 'snia': {'id': 'SNIA', 'deprecated': False},
624
+ 'snprintf': {'id': 'snprintf', 'deprecated': False},
625
+ 'sofa': {'id': 'SOFA', 'deprecated': False},
626
+ 'softsurfer': {'id': 'softSurfer', 'deprecated': False},
627
+ 'soundex': {'id': 'Soundex', 'deprecated': False},
628
+ 'spencer-86': {'id': 'Spencer-86', 'deprecated': False},
629
+ 'spencer-94': {'id': 'Spencer-94', 'deprecated': False},
630
+ 'spencer-99': {'id': 'Spencer-99', 'deprecated': False},
631
+ 'spl-1.0': {'id': 'SPL-1.0', 'deprecated': False},
632
+ 'ssh-keyscan': {'id': 'ssh-keyscan', 'deprecated': False},
633
+ 'ssh-openssh': {'id': 'SSH-OpenSSH', 'deprecated': False},
634
+ 'ssh-short': {'id': 'SSH-short', 'deprecated': False},
635
+ 'ssleay-standalone': {'id': 'SSLeay-standalone', 'deprecated': False},
636
+ 'sspl-1.0': {'id': 'SSPL-1.0', 'deprecated': False},
637
+ 'standardml-nj': {'id': 'StandardML-NJ', 'deprecated': True},
638
+ 'sugarcrm-1.1.3': {'id': 'SugarCRM-1.1.3', 'deprecated': False},
639
+ 'sul-1.0': {'id': 'SUL-1.0', 'deprecated': False},
640
+ 'sun-ppp': {'id': 'Sun-PPP', 'deprecated': False},
641
+ 'sun-ppp-2000': {'id': 'Sun-PPP-2000', 'deprecated': False},
642
+ 'sunpro': {'id': 'SunPro', 'deprecated': False},
643
+ 'swl': {'id': 'SWL', 'deprecated': False},
644
+ 'swrule': {'id': 'swrule', 'deprecated': False},
645
+ 'symlinks': {'id': 'Symlinks', 'deprecated': False},
646
+ 'tapr-ohl-1.0': {'id': 'TAPR-OHL-1.0', 'deprecated': False},
647
+ 'tcl': {'id': 'TCL', 'deprecated': False},
648
+ 'tcp-wrappers': {'id': 'TCP-wrappers', 'deprecated': False},
649
+ 'termreadkey': {'id': 'TermReadKey', 'deprecated': False},
650
+ 'tgppl-1.0': {'id': 'TGPPL-1.0', 'deprecated': False},
651
+ 'thirdeye': {'id': 'ThirdEye', 'deprecated': False},
652
+ 'threeparttable': {'id': 'threeparttable', 'deprecated': False},
653
+ 'tmate': {'id': 'TMate', 'deprecated': False},
654
+ 'torque-1.1': {'id': 'TORQUE-1.1', 'deprecated': False},
655
+ 'tosl': {'id': 'TOSL', 'deprecated': False},
656
+ 'tpdl': {'id': 'TPDL', 'deprecated': False},
657
+ 'tpl-1.0': {'id': 'TPL-1.0', 'deprecated': False},
658
+ 'trustedqsl': {'id': 'TrustedQSL', 'deprecated': False},
659
+ 'ttwl': {'id': 'TTWL', 'deprecated': False},
660
+ 'ttyp0': {'id': 'TTYP0', 'deprecated': False},
661
+ 'tu-berlin-1.0': {'id': 'TU-Berlin-1.0', 'deprecated': False},
662
+ 'tu-berlin-2.0': {'id': 'TU-Berlin-2.0', 'deprecated': False},
663
+ 'ubuntu-font-1.0': {'id': 'Ubuntu-font-1.0', 'deprecated': False},
664
+ 'ucar': {'id': 'UCAR', 'deprecated': False},
665
+ 'ucl-1.0': {'id': 'UCL-1.0', 'deprecated': False},
666
+ 'ulem': {'id': 'ulem', 'deprecated': False},
667
+ 'umich-merit': {'id': 'UMich-Merit', 'deprecated': False},
668
+ 'unicode-3.0': {'id': 'Unicode-3.0', 'deprecated': False},
669
+ 'unicode-dfs-2015': {'id': 'Unicode-DFS-2015', 'deprecated': False},
670
+ 'unicode-dfs-2016': {'id': 'Unicode-DFS-2016', 'deprecated': False},
671
+ 'unicode-tou': {'id': 'Unicode-TOU', 'deprecated': False},
672
+ 'unixcrypt': {'id': 'UnixCrypt', 'deprecated': False},
673
+ 'unlicense': {'id': 'Unlicense', 'deprecated': False},
674
+ 'unlicense-libtelnet': {'id': 'Unlicense-libtelnet', 'deprecated': False},
675
+ 'unlicense-libwhirlpool': {'id': 'Unlicense-libwhirlpool', 'deprecated': False},
676
+ 'upl-1.0': {'id': 'UPL-1.0', 'deprecated': False},
677
+ 'urt-rle': {'id': 'URT-RLE', 'deprecated': False},
678
+ 'vim': {'id': 'Vim', 'deprecated': False},
679
+ 'vostrom': {'id': 'VOSTROM', 'deprecated': False},
680
+ 'vsl-1.0': {'id': 'VSL-1.0', 'deprecated': False},
681
+ 'w3c': {'id': 'W3C', 'deprecated': False},
682
+ 'w3c-19980720': {'id': 'W3C-19980720', 'deprecated': False},
683
+ 'w3c-20150513': {'id': 'W3C-20150513', 'deprecated': False},
684
+ 'w3m': {'id': 'w3m', 'deprecated': False},
685
+ 'watcom-1.0': {'id': 'Watcom-1.0', 'deprecated': False},
686
+ 'widget-workshop': {'id': 'Widget-Workshop', 'deprecated': False},
687
+ 'wsuipa': {'id': 'Wsuipa', 'deprecated': False},
688
+ 'wtfpl': {'id': 'WTFPL', 'deprecated': False},
689
+ 'wwl': {'id': 'wwl', 'deprecated': False},
690
+ 'wxwindows': {'id': 'wxWindows', 'deprecated': True},
691
+ 'x11': {'id': 'X11', 'deprecated': False},
692
+ 'x11-distribute-modifications-variant': {'id': 'X11-distribute-modifications-variant', 'deprecated': False},
693
+ 'x11-swapped': {'id': 'X11-swapped', 'deprecated': False},
694
+ 'xdebug-1.03': {'id': 'Xdebug-1.03', 'deprecated': False},
695
+ 'xerox': {'id': 'Xerox', 'deprecated': False},
696
+ 'xfig': {'id': 'Xfig', 'deprecated': False},
697
+ 'xfree86-1.1': {'id': 'XFree86-1.1', 'deprecated': False},
698
+ 'xinetd': {'id': 'xinetd', 'deprecated': False},
699
+ 'xkeyboard-config-zinoviev': {'id': 'xkeyboard-config-Zinoviev', 'deprecated': False},
700
+ 'xlock': {'id': 'xlock', 'deprecated': False},
701
+ 'xnet': {'id': 'Xnet', 'deprecated': False},
702
+ 'xpp': {'id': 'xpp', 'deprecated': False},
703
+ 'xskat': {'id': 'XSkat', 'deprecated': False},
704
+ 'xzoom': {'id': 'xzoom', 'deprecated': False},
705
+ 'ypl-1.0': {'id': 'YPL-1.0', 'deprecated': False},
706
+ 'ypl-1.1': {'id': 'YPL-1.1', 'deprecated': False},
707
+ 'zed': {'id': 'Zed', 'deprecated': False},
708
+ 'zeeff': {'id': 'Zeeff', 'deprecated': False},
709
+ 'zend-2.0': {'id': 'Zend-2.0', 'deprecated': False},
710
+ 'zimbra-1.3': {'id': 'Zimbra-1.3', 'deprecated': False},
711
+ 'zimbra-1.4': {'id': 'Zimbra-1.4', 'deprecated': False},
712
+ 'zlib': {'id': 'Zlib', 'deprecated': False},
713
+ 'zlib-acknowledgement': {'id': 'zlib-acknowledgement', 'deprecated': False},
714
+ 'zpl-1.1': {'id': 'ZPL-1.1', 'deprecated': False},
715
+ 'zpl-2.0': {'id': 'ZPL-2.0', 'deprecated': False},
716
+ 'zpl-2.1': {'id': 'ZPL-2.1', 'deprecated': False},
717
+ }
718
+
719
+ EXCEPTIONS: dict[str, SPDXException] = {
720
+ '389-exception': {'id': '389-exception', 'deprecated': False},
721
+ 'asterisk-exception': {'id': 'Asterisk-exception', 'deprecated': False},
722
+ 'asterisk-linking-protocols-exception': {'id': 'Asterisk-linking-protocols-exception', 'deprecated': False},
723
+ 'autoconf-exception-2.0': {'id': 'Autoconf-exception-2.0', 'deprecated': False},
724
+ 'autoconf-exception-3.0': {'id': 'Autoconf-exception-3.0', 'deprecated': False},
725
+ 'autoconf-exception-generic': {'id': 'Autoconf-exception-generic', 'deprecated': False},
726
+ 'autoconf-exception-generic-3.0': {'id': 'Autoconf-exception-generic-3.0', 'deprecated': False},
727
+ 'autoconf-exception-macro': {'id': 'Autoconf-exception-macro', 'deprecated': False},
728
+ 'bison-exception-1.24': {'id': 'Bison-exception-1.24', 'deprecated': False},
729
+ 'bison-exception-2.2': {'id': 'Bison-exception-2.2', 'deprecated': False},
730
+ 'bootloader-exception': {'id': 'Bootloader-exception', 'deprecated': False},
731
+ 'cgal-linking-exception': {'id': 'CGAL-linking-exception', 'deprecated': False},
732
+ 'classpath-exception-2.0': {'id': 'Classpath-exception-2.0', 'deprecated': False},
733
+ 'clisp-exception-2.0': {'id': 'CLISP-exception-2.0', 'deprecated': False},
734
+ 'cryptsetup-openssl-exception': {'id': 'cryptsetup-OpenSSL-exception', 'deprecated': False},
735
+ 'digia-qt-lgpl-exception-1.1': {'id': 'Digia-Qt-LGPL-exception-1.1', 'deprecated': False},
736
+ 'digirule-foss-exception': {'id': 'DigiRule-FOSS-exception', 'deprecated': False},
737
+ 'ecos-exception-2.0': {'id': 'eCos-exception-2.0', 'deprecated': False},
738
+ 'erlang-otp-linking-exception': {'id': 'erlang-otp-linking-exception', 'deprecated': False},
739
+ 'fawkes-runtime-exception': {'id': 'Fawkes-Runtime-exception', 'deprecated': False},
740
+ 'fltk-exception': {'id': 'FLTK-exception', 'deprecated': False},
741
+ 'fmt-exception': {'id': 'fmt-exception', 'deprecated': False},
742
+ 'font-exception-2.0': {'id': 'Font-exception-2.0', 'deprecated': False},
743
+ 'freertos-exception-2.0': {'id': 'freertos-exception-2.0', 'deprecated': False},
744
+ 'gcc-exception-2.0': {'id': 'GCC-exception-2.0', 'deprecated': False},
745
+ 'gcc-exception-2.0-note': {'id': 'GCC-exception-2.0-note', 'deprecated': False},
746
+ 'gcc-exception-3.1': {'id': 'GCC-exception-3.1', 'deprecated': False},
747
+ 'gmsh-exception': {'id': 'Gmsh-exception', 'deprecated': False},
748
+ 'gnat-exception': {'id': 'GNAT-exception', 'deprecated': False},
749
+ 'gnome-examples-exception': {'id': 'GNOME-examples-exception', 'deprecated': False},
750
+ 'gnu-compiler-exception': {'id': 'GNU-compiler-exception', 'deprecated': False},
751
+ 'gnu-javamail-exception': {'id': 'gnu-javamail-exception', 'deprecated': False},
752
+ 'gpl-3.0-389-ds-base-exception': {'id': 'GPL-3.0-389-ds-base-exception', 'deprecated': False},
753
+ 'gpl-3.0-interface-exception': {'id': 'GPL-3.0-interface-exception', 'deprecated': False},
754
+ 'gpl-3.0-linking-exception': {'id': 'GPL-3.0-linking-exception', 'deprecated': False},
755
+ 'gpl-3.0-linking-source-exception': {'id': 'GPL-3.0-linking-source-exception', 'deprecated': False},
756
+ 'gpl-cc-1.0': {'id': 'GPL-CC-1.0', 'deprecated': False},
757
+ 'gstreamer-exception-2005': {'id': 'GStreamer-exception-2005', 'deprecated': False},
758
+ 'gstreamer-exception-2008': {'id': 'GStreamer-exception-2008', 'deprecated': False},
759
+ 'harbour-exception': {'id': 'harbour-exception', 'deprecated': False},
760
+ 'i2p-gpl-java-exception': {'id': 'i2p-gpl-java-exception', 'deprecated': False},
761
+ 'independent-modules-exception': {'id': 'Independent-modules-exception', 'deprecated': False},
762
+ 'kicad-libraries-exception': {'id': 'KiCad-libraries-exception', 'deprecated': False},
763
+ 'lgpl-3.0-linking-exception': {'id': 'LGPL-3.0-linking-exception', 'deprecated': False},
764
+ 'libpri-openh323-exception': {'id': 'libpri-OpenH323-exception', 'deprecated': False},
765
+ 'libtool-exception': {'id': 'Libtool-exception', 'deprecated': False},
766
+ 'linux-syscall-note': {'id': 'Linux-syscall-note', 'deprecated': False},
767
+ 'llgpl': {'id': 'LLGPL', 'deprecated': False},
768
+ 'llvm-exception': {'id': 'LLVM-exception', 'deprecated': False},
769
+ 'lzma-exception': {'id': 'LZMA-exception', 'deprecated': False},
770
+ 'mif-exception': {'id': 'mif-exception', 'deprecated': False},
771
+ 'mxml-exception': {'id': 'mxml-exception', 'deprecated': False},
772
+ 'nokia-qt-exception-1.1': {'id': 'Nokia-Qt-exception-1.1', 'deprecated': True},
773
+ 'ocaml-lgpl-linking-exception': {'id': 'OCaml-LGPL-linking-exception', 'deprecated': False},
774
+ 'occt-exception-1.0': {'id': 'OCCT-exception-1.0', 'deprecated': False},
775
+ 'openjdk-assembly-exception-1.0': {'id': 'OpenJDK-assembly-exception-1.0', 'deprecated': False},
776
+ 'openvpn-openssl-exception': {'id': 'openvpn-openssl-exception', 'deprecated': False},
777
+ 'pcre2-exception': {'id': 'PCRE2-exception', 'deprecated': False},
778
+ 'polyparse-exception': {'id': 'polyparse-exception', 'deprecated': False},
779
+ 'ps-or-pdf-font-exception-20170817': {'id': 'PS-or-PDF-font-exception-20170817', 'deprecated': False},
780
+ 'qpl-1.0-inria-2004-exception': {'id': 'QPL-1.0-INRIA-2004-exception', 'deprecated': False},
781
+ 'qt-gpl-exception-1.0': {'id': 'Qt-GPL-exception-1.0', 'deprecated': False},
782
+ 'qt-lgpl-exception-1.1': {'id': 'Qt-LGPL-exception-1.1', 'deprecated': False},
783
+ 'qwt-exception-1.0': {'id': 'Qwt-exception-1.0', 'deprecated': False},
784
+ 'romic-exception': {'id': 'romic-exception', 'deprecated': False},
785
+ 'rrdtool-floss-exception-2.0': {'id': 'RRDtool-FLOSS-exception-2.0', 'deprecated': False},
786
+ 'sane-exception': {'id': 'SANE-exception', 'deprecated': False},
787
+ 'shl-2.0': {'id': 'SHL-2.0', 'deprecated': False},
788
+ 'shl-2.1': {'id': 'SHL-2.1', 'deprecated': False},
789
+ 'stunnel-exception': {'id': 'stunnel-exception', 'deprecated': False},
790
+ 'swi-exception': {'id': 'SWI-exception', 'deprecated': False},
791
+ 'swift-exception': {'id': 'Swift-exception', 'deprecated': False},
792
+ 'texinfo-exception': {'id': 'Texinfo-exception', 'deprecated': False},
793
+ 'u-boot-exception-2.0': {'id': 'u-boot-exception-2.0', 'deprecated': False},
794
+ 'ubdl-exception': {'id': 'UBDL-exception', 'deprecated': False},
795
+ 'universal-foss-exception-1.0': {'id': 'Universal-FOSS-exception-1.0', 'deprecated': False},
796
+ 'vsftpd-openssl-exception': {'id': 'vsftpd-openssl-exception', 'deprecated': False},
797
+ 'wxwindows-exception-3.1': {'id': 'WxWindows-exception-3.1', 'deprecated': False},
798
+ 'x11vnc-openssl-exception': {'id': 'x11vnc-openssl-exception', 'deprecated': False},
799
+ }