Debian Codegraph @

CHANGES_0.in.rst

raw
1
2 0.12.1 (2023-12-10)
3 -------------------
4
5 Bug fixes:
6
7 - `Issue #84`_: PathSpec.match_file() returns None since 0.12.0.
8
9
10 .. _`Issue #84`: https://github.com/cpburnz/python-pathspec/issues/84
11
12
13 0.12.0 (2023-12-09)
14 -------------------
15
16 Major changes:
17
18 - Dropped support of EoL Python 3.7. See `Pull #82`_.
19
20 API changes:
21
22 - Signature of protected method `pathspec.pathspec.PathSpec._match_file()` (with a leading underscore) has been changed from `def _match_file(patterns: Iterable[Pattern], file: str) -> bool` to `def _match_file(patterns: Iterable[Tuple[int, Pattern]], file: str) -> Tuple[Optional[bool], Optional[int]]`.
23
24 New features:
25
26 - Added `pathspec.pathspec.PathSpec.check_*()` methods. These methods behave similarly to `.match_*()` but return additional information in the `pathspec.util.CheckResult` objects (e.g., `CheckResult.index` indicates the index of the last pattern that matched the file).
27 - Added `pathspec.pattern.RegexPattern.pattern` attribute which stores the original, uncompiled pattern.
28
29 Bug fixes:
30
31 - `Issue #81`_: GitIgnoreSpec behaviors differ from git.
32 - `Pull #83`_: Fix ReadTheDocs builds.
33
34 Improvements:
35
36 - Mark Python 3.12 as supported. See `Pull #82`_.
37 - Improve test debugging.
38 - Improve type hint on *on_error* parameter on `pathspec.pathspec.PathSpec.match_tree_entries()`.
39 - Improve type hint on *on_error* parameter on `pathspec.util.iter_tree_entries()`.
40
41
42 .. _`Issue #81`: https://github.com/cpburnz/python-pathspec/issues/81
43 .. _`Pull #82`: https://github.com/cpburnz/python-pathspec/pull/82
44 .. _`Pull #83`: https://github.com/cpburnz/python-pathspec/pull/83
45
46
47 0.11.2 (2023-07-28)
48 -------------------
49
50 New features:
51
52 - `Issue #80`_: match_files with negated path spec. `pathspec.PathSpec.match_*()` now have a `negate` parameter to make using *.gitignore* logic easier and more efficient.
53
54 Bug fixes:
55
56 - `Pull #76`_: Add edge case: patterns that end with an escaped space
57 - `Issue #77`_/`Pull #78`_: Negate with caret symbol as with the exclamation mark.
58
59
60 .. _`Pull #76`: https://github.com/cpburnz/python-pathspec/pull/76
61 .. _`Issue #77`: https://github.com/cpburnz/python-pathspec/issues/77
62 .. _`Pull #78`: https://github.com/cpburnz/python-pathspec/pull/78/
63 .. _`Issue #80`: https://github.com/cpburnz/python-pathspec/issues/80
64
65
66 0.11.1 (2023-03-14)
67 -------------------
68
69 Bug fixes:
70
71 - `Issue #74`_: Include directory should override exclude file.
72
73 Improvements:
74
75 - `Pull #75`_: Fix partially unknown PathLike type.
76 - Convert `os.PathLike` to a string properly using `os.fspath`.
77
78
79 .. _`Issue #74`: https://github.com/cpburnz/python-pathspec/issues/74
80 .. _`Pull #75`: https://github.com/cpburnz/python-pathspec/pull/75
81
82
83 0.11.0 (2023-01-24)
84 -------------------
85
86 Major changes:
87
88 - Changed build backend to `flit_core.buildapi`_ from `setuptools.build_meta`_. Building with `setuptools` through `setup.py` is still supported for distributions that need it. See `Issue #72`_.
89
90 Improvements:
91
92 - `Issue #72`_/`Pull #73`_: Please consider switching the build-system to flit_core to ease setuptools bootstrap.
93
94
95 .. _`flit_core.buildapi`: https://flit.pypa.io/en/latest/index.html
96 .. _`Issue #72`: https://github.com/cpburnz/python-pathspec/issues/72
97 .. _`Pull #73`: https://github.com/cpburnz/python-pathspec/pull/73
98
99
100 0.10.3 (2022-12-09)
101 -------------------
102
103 New features:
104
105 - Added utility function `pathspec.util.append_dir_sep()` to aid in distinguishing between directories and files on the file-system. See `Issue #65`_.
106
107 Bug fixes:
108
109 - `Issue #66`_/`Pull #67`_: Package not marked as py.typed.
110 - `Issue #68`_: Exports are considered private.
111 - `Issue #70`_/`Pull #71`_: 'Self' string literal type is Unknown in pyright.
112
113 Improvements:
114
115 - `Issue #65`_: Checking directories via match_file() does not work on Path objects.
116
117
118 .. _`Issue #65`: https://github.com/cpburnz/python-pathspec/issues/65
119 .. _`Issue #66`: https://github.com/cpburnz/python-pathspec/issues/66
120 .. _`Pull #67`: https://github.com/cpburnz/python-pathspec/pull/67
121 .. _`Issue #68`: https://github.com/cpburnz/python-pathspec/issues/68
122 .. _`Issue #70`: https://github.com/cpburnz/python-pathspec/issues/70
123 .. _`Pull #71`: https://github.com/cpburnz/python-pathspec/pull/71
124
125
126 0.10.2 (2022-11-12)
127 -------------------
128
129 Bug fixes:
130
131 - Fix failing tests on Windows.
132 - Type hint on *root* parameter on `pathspec.pathspec.PathSpec.match_tree_entries()`.
133 - Type hint on *root* parameter on `pathspec.pathspec.PathSpec.match_tree_files()`.
134 - Type hint on *root* parameter on `pathspec.util.iter_tree_entries()`.
135 - Type hint on *root* parameter on `pathspec.util.iter_tree_files()`.
136 - `Issue #64`_: IndexError with my .gitignore file when trying to build a Python package.
137
138 Improvements:
139
140 - `Pull #58`_: CI: add GitHub Actions test workflow.
141
142
143 .. _`Pull #58`: https://github.com/cpburnz/python-pathspec/pull/58
144 .. _`Issue #64`: https://github.com/cpburnz/python-pathspec/issues/64
145
146
147 0.10.1 (2022-09-02)
148 -------------------
149
150 Bug fixes:
151
152 - Fix documentation on `pathspec.pattern.RegexPattern.match_file()`.
153 - `Pull #60`_: Remove redundant wheel dep from pyproject.toml.
154 - `Issue #61`_: Dist failure for Fedora, CentOS, EPEL.
155 - `Issue #62`_: Since version 0.10.0 pure wildcard does not work in some cases.
156
157 Improvements:
158
159 - Restore support for legacy installations using `setup.py`. See `Issue #61`_.
160
161
162 .. _`Pull #60`: https://github.com/cpburnz/python-pathspec/pull/60
163 .. _`Issue #61`: https://github.com/cpburnz/python-pathspec/issues/61
164 .. _`Issue #62`: https://github.com/cpburnz/python-pathspec/issues/62
165
166
167 0.10.0 (2022-08-30)
168 -------------------
169
170 Major changes:
171
172 - Dropped support of EoL Python 2.7, 3.5, 3.6. See `Issue #47`_.
173 - The *gitwildmatch* pattern `dir/*` is now handled the same as `dir/`. This means `dir/*` will now match all descendants rather than only direct children. See `Issue #19`_.
174 - Added `pathspec.GitIgnoreSpec` class (see new features).
175 - Changed build system to `pyproject.toml`_ and build backend to `setuptools.build_meta`_ which may have unforeseen consequences.
176 - Renamed GitHub project from `python-path-specification`_ to `python-pathspec`_. See `Issue #35`_.
177
178 API changes:
179
180 - Deprecated: `pathspec.util.match_files()` is an old function no longer used.
181 - Deprecated: `pathspec.match_files()` is an old function no longer used.
182 - Deprecated: `pathspec.util.normalize_files()` is no longer used.
183 - Deprecated: `pathspec.util.iter_tree()` is an alias for `pathspec.util.iter_tree_files()`.
184 - Deprecated: `pathspec.iter_tree()` is an alias for `pathspec.util.iter_tree_files()`.
185 - Deprecated: `pathspec.pattern.Pattern.match()` is no longer used. Use or implement
186 `pathspec.pattern.Pattern.match_file()`.
187
188 New features:
189
190 - Added class `pathspec.gitignore.GitIgnoreSpec` (with alias `pathspec.GitIgnoreSpec`) to implement *gitignore* behavior not possible with standard `PathSpec` class. The particular *gitignore* behavior implemented is prioritizing patterns matching the file directly over matching an ancestor directory.
191
192 Bug fixes:
193
194 - `Issue #19`_: Files inside an ignored sub-directory are not matched.
195 - `Issue #41`_: Incorrectly (?) matches files inside directories that do match.
196 - `Pull #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility.
197 - `Issue #53`_: Symlink pathspec_meta.py breaks Windows.
198 - `Issue #54`_: test_util.py uses os.symlink which can fail on Windows.
199 - `Issue #55`_: Backslashes at start of pattern not handled correctly.
200 - `Pull #56`_: pyproject.toml: include subpackages in setuptools config
201 - `Issue #57`_: `!` doesn't exclude files in directories if the pattern doesn't have a trailing slash.
202
203 Improvements:
204
205 - Support Python 3.10, 3.11.
206 - Modernize code to Python 3.7.
207 - `Issue #52`_: match_files() is not a pure generator function, and it impacts tree_*() gravely.
208
209
210 .. _`python-path-specification`: https://github.com/cpburnz/python-path-specification
211 .. _`python-pathspec`: https://github.com/cpburnz/python-pathspec
212 .. _`pyproject.toml`: https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
213 .. _`setuptools.build_meta`: https://setuptools.pypa.io/en/latest/build_meta.html
214 .. _`Issue #19`: https://github.com/cpburnz/python-pathspec/issues/19
215 .. _`Issue #35`: https://github.com/cpburnz/python-pathspec/issues/35
216 .. _`Issue #41`: https://github.com/cpburnz/python-pathspec/issues/41
217 .. _`Issue #47`: https://github.com/cpburnz/python-pathspec/issues/47
218 .. _`Pull #51`: https://github.com/cpburnz/python-pathspec/pull/51
219 .. _`Issue #52`: https://github.com/cpburnz/python-pathspec/issues/52
220 .. _`Issue #53`: https://github.com/cpburnz/python-pathspec/issues/53
221 .. _`Issue #54`: https://github.com/cpburnz/python-pathspec/issues/54
222 .. _`Issue #55`: https://github.com/cpburnz/python-pathspec/issues/55
223 .. _`Pull #56`: https://github.com/cpburnz/python-pathspec/pull/56
224 .. _`Issue #57`: https://github.com/cpburnz/python-pathspec/issues/57
225
226
227 0.9.0 (2021-07-17)
228 ------------------
229
230 - `Issue #44`_/`Pull #50`_: Raise `GitWildMatchPatternError` for invalid git patterns.
231 - `Pull #45`_: Fix for duplicate leading double-asterisk, and edge cases.
232 - `Issue #46`_: Fix matching absolute paths.
233 - API change: `util.normalize_files()` now returns a `Dict[str, List[pathlike]]` instead of a `Dict[str, pathlike]`.
234 - Added type hinting.
235
236 .. _`Issue #44`: https://github.com/cpburnz/python-pathspec/issues/44
237 .. _`Pull #45`: https://github.com/cpburnz/python-pathspec/pull/45
238 .. _`Issue #46`: https://github.com/cpburnz/python-pathspec/issues/46
239 .. _`Pull #50`: https://github.com/cpburnz/python-pathspec/pull/50
240
241
242 0.8.1 (2020-11-07)
243 ------------------
244
245 - `Pull #43`_: Add support for addition operator.
246
247 .. _`Pull #43`: https://github.com/cpburnz/python-pathspec/pull/43
248
249
250 0.8.0 (2020-04-09)
251 ------------------
252
253 - `Issue #30`_: Expose what patterns matched paths. Added `util.detailed_match_files()`.
254 - `Issue #31`_: `match_tree()` doesn't return symlinks.
255 - `Issue #34`_: Support `pathlib.Path`\ s.
256 - Add `PathSpec.match_tree_entries` and `util.iter_tree_entries()` to support directories and symlinks.
257 - API change: `match_tree()` has been renamed to `match_tree_files()`. The old name `match_tree()` is still available as an alias.
258 - API change: `match_tree_files()` now returns symlinks. This is a bug fix but it will change the returned results.
259
260 .. _`Issue #30`: https://github.com/cpburnz/python-pathspec/issues/30
261 .. _`Issue #31`: https://github.com/cpburnz/python-pathspec/issues/31
262 .. _`Issue #34`: https://github.com/cpburnz/python-pathspec/issues/34
263
264
265 0.7.0 (2019-12-27)
266 ------------------
267
268 - `Pull #28`_: Add support for Python 3.8, and drop Python 3.4.
269 - `Pull #29`_: Publish bdist wheel.
270
271 .. _`Pull #28`: https://github.com/cpburnz/python-pathspec/pull/28
272 .. _`Pull #29`: https://github.com/cpburnz/python-pathspec/pull/29
273
274
275 0.6.0 (2019-10-03)
276 ------------------
277
278 - `Pull #24`_: Drop support for Python 2.6, 3.2, and 3.3.
279 - `Pull #25`_: Update README.rst.
280 - `Pull #26`_: Method to escape gitwildmatch.
281
282 .. _`Pull #24`: https://github.com/cpburnz/python-pathspec/pull/24
283 .. _`Pull #25`: https://github.com/cpburnz/python-pathspec/pull/25
284 .. _`Pull #26`: https://github.com/cpburnz/python-pathspec/pull/26
285
286
287 0.5.9 (2018-09-15)
288 ------------------
289
290 - Fixed file system error handling.
291
292
293 0.5.8 (2018-09-15)
294 ------------------
295
296 - Improved type checking.
297 - Created scripts to test Python 2.6 because Tox removed support for it.
298 - Improved byte string handling in Python 3.
299 - `Issue #22`_: Handle dangling symlinks.
300
301 .. _`Issue #22`: https://github.com/cpburnz/python-pathspec/issues/22
302
303
304 0.5.7 (2018-08-14)
305 ------------------
306
307 - `Issue #21`_: Fix collections deprecation warning.
308
309 .. _`Issue #21`: https://github.com/cpburnz/python-pathspec/issues/21
310
311
312 0.5.6 (2018-04-06)
313 ------------------
314
315 - Improved unit tests.
316 - Improved type checking.
317 - `Issue #20`_: Support current directory prefix.
318
319 .. _`Issue #20`: https://github.com/cpburnz/python-pathspec/issues/20
320
321
322 0.5.5 (2017-09-09)
323 ------------------
324
325 - Add documentation link to README.
326
327
328 0.5.4 (2017-09-09)
329 ------------------
330
331 - `Pull #17`_: Add link to Ruby implementation of *pathspec*.
332 - Add sphinx documentation.
333
334 .. _`Pull #17`: https://github.com/cpburnz/python-pathspec/pull/17
335
336
337 0.5.3 (2017-07-01)
338 ------------------
339
340 - `Issue #14`_: Fix byte strings for Python 3.
341 - `Pull #15`_: Include "LICENSE" in source package.
342 - `Issue #16`_: Support Python 2.6.
343
344 .. _`Issue #14`: https://github.com/cpburnz/python-pathspec/issues/14
345 .. _`Pull #15`: https://github.com/cpburnz/python-pathspec/pull/15
346 .. _`Issue #16`: https://github.com/cpburnz/python-pathspec/issues/16
347
348
349 0.5.2 (2017-04-04)
350 ------------------
351
352 - Fixed change log.
353
354
355 0.5.1 (2017-04-04)
356 ------------------
357
358 - `Pull #13`_: Add equality methods to `PathSpec` and `RegexPattern`.
359
360 .. _`Pull #13`: https://github.com/cpburnz/python-pathspec/pull/13
361
362
363 0.5.0 (2016-08-22)
364 ------------------
365
366 - `Issue #12`_: Add `PathSpec.match_file()`.
367 - Renamed `gitignore.GitIgnorePattern` to `patterns.gitwildmatch.GitWildMatchPattern`.
368 - Deprecated `gitignore.GitIgnorePattern`.
369
370 .. _`Issue #12`: https://github.com/cpburnz/python-pathspec/issues/12
371
372
373 0.4.0 (2016-07-15)
374 ------------------
375
376 - `Issue #11`_: Support converting patterns into regular expressions without compiling them.
377 - API change: Subclasses of `RegexPattern` should implement `pattern_to_regex()`.
378
379 .. _`Issue #11`: https://github.com/cpburnz/python-pathspec/issues/11
380
381
382 0.3.4 (2015-08-24)
383 ------------------
384
385 - `Pull #7`_: Fixed non-recursive links.
386 - `Pull #8`_: Fixed edge cases in gitignore patterns.
387 - `Pull #9`_: Fixed minor usage documentation.
388 - Fixed recursion detection.
389 - Fixed trivial incompatibility with Python 3.2.
390
391 .. _`Pull #7`: https://github.com/cpburnz/python-pathspec/pull/7
392 .. _`Pull #8`: https://github.com/cpburnz/python-pathspec/pull/8
393 .. _`Pull #9`: https://github.com/cpburnz/python-pathspec/pull/9
394
395
396 0.3.3 (2014-11-21)
397 ------------------
398
399 - Improved documentation.
400
401
402 0.3.2 (2014-11-08)
403 ------------------
404
405 - `Pull #5`_: Use tox for testing.
406 - `Issue #6`_: Fixed matching Windows paths.
407 - Improved documentation.
408 - API change: `spec.match_tree()` and `spec.match_files()` now return iterators instead of sets.
409
410 .. _`Pull #5`: https://github.com/cpburnz/python-pathspec/pull/5
411 .. _`Issue #6`: https://github.com/cpburnz/python-pathspec/issues/6
412
413
414 0.3.1 (2014-09-17)
415 ------------------
416
417 - Updated README.
418
419
420 0.3.0 (2014-09-17)
421 ------------------
422
423 - `Pull #3`_: Fixed trailing slash in gitignore patterns.
424 - `Pull #4`_: Fixed test for trailing slash in gitignore patterns.
425 - Added registered patterns.
426
427 .. _`Pull #3`: https://github.com/cpburnz/python-pathspec/pull/3
428 .. _`Pull #4`: https://github.com/cpburnz/python-pathspec/pull/4
429
430
431 0.2.2 (2013-12-17)
432 ------------------
433
434 - Fixed setup.py.
435
436
437 0.2.1 (2013-12-17)
438 ------------------
439
440 - Added tests.
441 - Fixed comment gitignore patterns.
442 - Fixed relative path gitignore patterns.
443
444
445 0.2.0 (2013-12-07)
446 ------------------
447
448 - Initial release.