Debian Codegraph @

testing/web-platform/tests/tools/third_party/importlib_metadata/docs/changelog.rst

raw
1 =========================
2 importlib_metadata NEWS
3 =========================
4
5 v2.1.0
6 ======
7
8 * #253: When querying for package metadata, the lookup
9 now honors
10 `package normalization rules <https://packaging.python.org/specifications/recording-installed-packages/>`_.
11
12 v2.0.0
13 ======
14
15 * ``importlib_metadata`` no longer presents a
16 ``__version__`` attribute. Consumers wishing to
17 resolve the version of the package should query it
18 directly with
19 ``importlib_metadata.version('importlib-metadata')``.
20 Closes #71.
21
22 v1.7.0
23 ======
24
25 * ``PathNotFoundError`` now has a custom ``__str__``
26 mentioning "package metadata" being missing to help
27 guide users to the cause when the package is installed
28 but no metadata is present. Closes #124.
29
30 v1.6.1
31 ======
32
33 * Added ``Distribution._local()`` as a provisional
34 demonstration of how to load metadata for a local
35 package. Implicitly requires that
36 `pep517 <https://pypi.org/project/pep517>`_ is
37 installed. Ref #42.
38 * Ensure inputs to FastPath are Unicode. Closes #121.
39 * Tests now rely on ``importlib.resources.files`` (and
40 backport) instead of the older ``path`` function.
41 * Support any iterable from ``find_distributions``.
42 Closes #122.
43
44 v1.6.0
45 ======
46
47 * Added ``module`` and ``attr`` attributes to ``EntryPoint``
48
49 v1.5.2
50 ======
51
52 * Fix redundant entries from ``FastPath.zip_children``.
53 Closes #117.
54
55 v1.5.1
56 ======
57
58 * Improve reliability and consistency of compatibility
59 imports for contextlib and pathlib when running tests.
60 Closes #116.
61
62 v1.5.0
63 ======
64
65 * Additional performance optimizations in FastPath now
66 saves an additional 20% on a typical call.
67 * Correct for issue where PyOxidizer finder has no
68 ``__module__`` attribute. Closes #110.
69
70 v1.4.0
71 ======
72
73 * Through careful optimization, ``distribution()`` is
74 3-4x faster. Thanks to Antony Lee for the
75 contribution. Closes #95.
76
77 * When searching through ``sys.path``, if any error
78 occurs attempting to list a path entry, that entry
79 is skipped, making the system much more lenient
80 to errors. Closes #94.
81
82 v1.3.0
83 ======
84
85 * Improve custom finders documentation. Closes #105.
86
87 v1.2.0
88 ======
89
90 * Once again, drop support for Python 3.4. Ref #104.
91
92 v1.1.3
93 ======
94
95 * Restored support for Python 3.4 due to improper version
96 compatibility declarations in the v1.1.0 and v1.1.1
97 releases. Closes #104.
98
99 v1.1.2
100 ======
101
102 * Repaired project metadata to correctly declare the
103 ``python_requires`` directive. Closes #103.
104
105 v1.1.1
106 ======
107
108 * Fixed ``repr(EntryPoint)`` on PyPy 3 also. Closes #102.
109
110 v1.1.0
111 ======
112
113 * Dropped support for Python 3.4.
114 * EntryPoints are now pickleable. Closes #96.
115 * Fixed ``repr(EntryPoint)`` on PyPy 2. Closes #97.
116
117 v1.0.0
118 ======
119
120 * Project adopts semver for versioning.
121
122 * Removed compatibility shim introduced in 0.23.
123
124 * For better compatibility with the stdlib implementation and to
125 avoid the same distributions being discovered by the stdlib and
126 backport implementations, the backport now disables the
127 stdlib DistributionFinder during initialization (import time).
128 Closes #91 and closes #100.
129
130 0.23
131 ====
132 * Added a compatibility shim to prevent failures on beta releases
133 of Python before the signature changed to accept the
134 "context" parameter on find_distributions. This workaround
135 will have a limited lifespan, not to extend beyond release of
136 Python 3.8 final.
137
138 0.22
139 ====
140 * Renamed ``package`` parameter to ``distribution_name``
141 as `recommended <https://bugs.python.org/issue34632#msg349423>`_
142 in the following functions: ``distribution``, ``metadata``,
143 ``version``, ``files``, and ``requires``. This
144 backward-incompatible change is expected to have little impact
145 as these functions are assumed to be primarily used with
146 positional parameters.
147
148 0.21
149 ====
150 * ``importlib.metadata`` now exposes the ``DistributionFinder``
151 metaclass and references it in the docs for extending the
152 search algorithm.
153 * Add ``Distribution.at`` for constructing a Distribution object
154 from a known metadata directory on the file system. Closes #80.
155 * Distribution finders now receive a context object that
156 supplies ``.path`` and ``.name`` properties. This change
157 introduces a fundamental backward incompatibility for
158 any projects implementing a ``find_distributions`` method
159 on a ``MetaPathFinder``. This new layer of abstraction
160 allows this context to be supplied directly or constructed
161 on demand and opens the opportunity for a
162 ``find_distributions`` method to solicit additional
163 context from the caller. Closes #85.
164
165 0.20
166 ====
167 * Clarify in the docs that calls to ``.files`` could return
168 ``None`` when the metadata is not present. Closes #69.
169 * Return all requirements and not just the first for dist-info
170 packages. Closes #67.
171
172 0.19
173 ====
174 * Restrain over-eager egg metadata resolution.
175 * Add support for entry points with colons in the name. Closes #75.
176
177 0.18
178 ====
179 * Parse entry points case sensitively. Closes #68
180 * Add a version constraint on the backport configparser package. Closes #66
181
182 0.17
183 ====
184 * Fix a permission problem in the tests on Windows.
185
186 0.16
187 ====
188 * Don't crash if there exists an EGG-INFO directory on sys.path.
189
190 0.15
191 ====
192 * Fix documentation.
193
194 0.14
195 ====
196 * Removed ``local_distribution`` function from the API.
197 **This backward-incompatible change removes this
198 behavior summarily**. Projects should remove their
199 reliance on this behavior. A replacement behavior is
200 under review in the `pep517 project
201 <https://github.com/pypa/pep517>`_. Closes #42.
202
203 0.13
204 ====
205 * Update docstrings to match PEP 8. Closes #63.
206 * Merged modules into one module. Closes #62.
207
208 0.12
209 ====
210 * Add support for eggs. !65; Closes #19.
211
212 0.11
213 ====
214 * Support generic zip files (not just wheels). Closes #59
215 * Support zip files with multiple distributions in them. Closes #60
216 * Fully expose the public API in ``importlib_metadata.__all__``.
217
218 0.10
219 ====
220 * The ``Distribution`` ABC is now officially part of the public API.
221 Closes #37.
222 * Fixed support for older single file egg-info formats. Closes #43.
223 * Fixed a testing bug when ``$CWD`` has spaces in the path. Closes #50.
224 * Add Python 3.8 to the ``tox`` testing matrix.
225
226 0.9
227 ===
228 * Fixed issue where entry points without an attribute would raise an
229 Exception. Closes #40.
230 * Removed unused ``name`` parameter from ``entry_points()``. Closes #44.
231 * ``DistributionFinder`` classes must now be instantiated before
232 being placed on ``sys.meta_path``.
233
234 0.8
235 ===
236 * This library can now discover/enumerate all installed packages. **This
237 backward-incompatible change alters the protocol finders must
238 implement to support distribution package discovery.** Closes #24.
239 * The signature of ``find_distributions()`` on custom installer finders
240 should now accept two parameters, ``name`` and ``path`` and
241 these parameters must supply defaults.
242 * The ``entry_points()`` method no longer accepts a package name
243 but instead returns all entry points in a dictionary keyed by the
244 ``EntryPoint.group``. The ``resolve`` method has been removed. Instead,
245 call ``EntryPoint.load()``, which has the same semantics as
246 ``pkg_resources`` and ``entrypoints``. **This is a backward incompatible
247 change.**
248 * Metadata is now always returned as Unicode text regardless of
249 Python version. Closes #29.
250 * This library can now discover metadata for a 'local' package (found
251 in the current-working directory). Closes #27.
252 * Added ``files()`` function for resolving files from a distribution.
253 * Added a new ``requires()`` function, which returns the requirements
254 for a package suitable for parsing by
255 ``packaging.requirements.Requirement``. Closes #18.
256 * The top-level ``read_text()`` function has been removed. Use
257 ``PackagePath.read_text()`` on instances returned by the ``files()``
258 function. **This is a backward incompatible change.**
259 * Release dates are now automatically injected into the changelog
260 based on SCM tags.
261
262 0.7
263 ===
264 * Fixed issue where packages with dashes in their names would
265 not be discovered. Closes #21.
266 * Distribution lookup is now case-insensitive. Closes #20.
267 * Wheel distributions can no longer be discovered by their module
268 name. Like Path distributions, they must be indicated by their
269 distribution package name.
270
271 0.6
272 ===
273 * Removed ``importlib_metadata.distribution`` function. Now
274 the public interface is primarily the utility functions exposed
275 in ``importlib_metadata.__all__``. Closes #14.
276 * Added two new utility functions ``read_text`` and
277 ``metadata``.
278
279 0.5
280 ===
281 * Updated README and removed details about Distribution
282 class, now considered private. Closes #15.
283 * Added test suite support for Python 3.4+.
284 * Fixed SyntaxErrors on Python 3.4 and 3.5. !12
285 * Fixed errors on Windows joining Path elements. !15
286
287 0.4
288 ===
289 * Housekeeping.
290
291 0.3
292 ===
293 * Added usage documentation. Closes #8
294 * Add support for getting metadata from wheels on ``sys.path``. Closes #9
295
296 0.2
297 ===
298 * Added ``importlib_metadata.entry_points()``. Closes #1
299 * Added ``importlib_metadata.resolve()``. Closes #12
300 * Add support for Python 2.7. Closes #4
301
302 0.1
303 ===
304 * Initial release.
305
306
307 ..
308 Local Variables:
309 mode: change-log-mode
310 indent-tabs-mode: nil
311 sentence-end-double-space: t
312 fill-column: 78
313 coding: utf-8
314 End: