Skip to content

Commit b3a67ce

Browse files
Bump pathspec from 0.12.1 to 1.0.1 (aio-libs#11931)
Bumps [pathspec](https://github.com/cpburnz/python-pathspec) from 0.12.1 to 1.0.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cpburnz/python-pathspec/releases">pathspec's releases</a>.</em></p> <blockquote> <h2>v1.0.1</h2> <p>Release v1.0.1. See <a href="https://github.com/cpburnz/python-pathspec/blob/v1.0.1/CHANGES.rst">CHANGES.rst</a>.</p> <h2>v1.0.0</h2> <p>Release v1.0.0. See <a href="https://github.com/cpburnz/python-pathspec/blob/v1.0.0/CHANGES.rst">CHANGES.rst</a>.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/cpburnz/python-pathspec/blob/master/CHANGES.rst">pathspec's changelog</a>.</em></p> <blockquote> <h2>1.0.1 (2026-01-06)</h2> <p>Bug fixes:</p> <ul> <li><code>Issue [#100](https://github.com/cpburnz/python-pathspec/issues/100)</code>_: ValueError(f&quot;{patterns=!r} cannot be empty.&quot;) when using black.</li> </ul> <p>.. _<code>Issue [#100](https://github.com/cpburnz/python-pathspec/issues/100)</code>: <a href="https://redirect.github.com/cpburnz/python-pathspec/issues/100">cpburnz/python-pathspec#100</a></p> <h2>1.0.0 (2026-01-05)</h2> <p>Major changes:</p> <ul> <li><code>Issue [#91](https://github.com/cpburnz/python-pathspec/issues/91)</code>_: Dropped support of EoL Python 3.8.</li> <li>Added concept of backends to allow for faster regular expression matching. The backend can be controlled using the <code>backend</code> argument to <code>PathSpec()</code>, <code>PathSpec.from_lines()</code>, <code>GitIgnoreSpec()</code>, and <code>GitIgnoreSpec.from_lines()</code>.</li> <li>Renamed &quot;gitwildmatch&quot; pattern back to &quot;gitignore&quot;. The &quot;gitignore&quot; pattern behaves slightly differently when used with <code>PathSpec</code> (<em>gitignore</em> as documented) than with <code>GitIgnoreSpec</code> (replicates <em>Git</em>'s edge cases).</li> </ul> <p>API changes:</p> <ul> <li>Breaking: protected method <code>pathspec.pathspec.PathSpec._match_file()</code> (with a leading underscore) has been removed and replaced by backends. This does not affect normal usage of <code>PathSpec</code> or <code>GitIgnoreSpec</code>. Only custom subclasses will be affected. If this breaks your usage, let me know by <code>opening an issue &lt;https://github.com/cpburnz/python-pathspec/issues&gt;</code>_.</li> <li>Deprecated: &quot;gitwildmatch&quot; is now an alias for &quot;gitignore&quot;.</li> <li>Deprecated: <code>pathspec.patterns.GitWildMatchPattern</code> is now an alias for <code>pathspec.patterns.gitignore.spec.GitIgnoreSpecPattern</code>.</li> <li>Deprecated: <code>pathspec.patterns.gitwildmatch</code> module has been replaced by the <code>pathspec.patterns.gitignore</code> package.</li> <li>Deprecated: <code>pathspec.patterns.gitwildmatch.GitWildMatchPattern</code> is now an alias for <code>pathspec.patterns.gitignore.spec.GitIgnoreSpecPattern</code>.</li> <li>Deprecated: <code>pathspec.patterns.gitwildmatch.GitWildMatchPatternError</code> is now an alias for <code>pathspec.patterns.gitignore.GitIgnorePatternError</code>.</li> <li>Removed: <code>pathspec.patterns.gitwildmatch.GitIgnorePattern</code> has been deprecated since v0.4 (2016-07-15).</li> <li>Signature of method <code>pathspec.pattern.RegexPattern.match_file()</code> has been changed from <code>def match_file(self, file: str) -&gt; RegexMatchResult | None</code> to <code>def match_file(self, file: AnyStr) -&gt; RegexMatchResult | None</code> to reflect usage.</li> <li>Signature of class method <code>pathspec.pattern.RegexPattern.pattern_to_regex()</code> has been changed from <code>def pattern_to_regex(cls, pattern: str) -&gt; tuple[str, bool]</code> to <code>def pattern_to_regex(cls, pattern: AnyStr) -&gt; tuple[AnyStr | None, bool | None]</code> to reflect usage and documentation.</li> </ul> <p>New features:</p> <ul> <li>Added optional &quot;hyperscan&quot; backend using <code>hyperscan</code>_ library. It will automatically be used when installed. This dependency can be installed with <code>pip install 'pathspec[hyperscan]'</code>.</li> <li>Added optional &quot;re2&quot; backend using the <code>google-re2</code>_ library. It will automatically be used when installed. This dependency can be installed with <code>pip install 'pathspec[re2]'</code>.</li> <li>Added optional dependency on <code>typing-extensions</code>_ library to improve some type hints.</li> </ul> <p>Bug fixes:</p> <ul> <li><code>Issue [#93](https://github.com/cpburnz/python-pathspec/issues/93)</code>_: Do not remove leading spaces.</li> <li><code>Issue [#95](https://github.com/cpburnz/python-pathspec/issues/95)</code>_: Matching for files inside folder does not seem to behave like .gitignore's.</li> <li><code>Issue [#98](https://github.com/cpburnz/python-pathspec/issues/98)</code>_: UnboundLocalError in RegexPattern when initialized with <code>pattern=None</code>.</li> <li>Type hint on return value of <code>pathspec.pattern.RegexPattern.match_file()</code> to match documentation.</li> </ul> <p>Improvements:</p> <ul> <li>Mark Python 3.13 and 3.14 as supported.</li> <li>No-op patterns are now filtered out when matching files, slightly improving performance.</li> <li>Fix performance regression in <code>iter_tree_files()</code> from v0.10.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/cpburnz/python-pathspec/commit/75f4d0672305dfe3d0a6f182b870c3edec29f316"><code>75f4d06</code></a> Release v1.0.1</li> <li><a href="https://github.com/cpburnz/python-pathspec/commit/3d942b5e2d00fd757593d89bf8c8b2ff2d6028b4"><code>3d942b5</code></a> Fix publish</li> <li><a href="https://github.com/cpburnz/python-pathspec/commit/6bcf1511216892e2290bc2f205115c42552cbabe"><code>6bcf151</code></a> Allow empty pattern list</li> <li><a href="https://github.com/cpburnz/python-pathspec/commit/24374bee15a7144558e7d84756b674ea61a0e73d"><code>24374be</code></a> Allow empty pattern list</li> <li><a href="https://github.com/cpburnz/python-pathspec/commit/3a946678cbf0b634ee7a9b94447b315a7b69cddd"><code>3a94667</code></a> Release v1.0.0</li> <li><a href="https://github.com/cpburnz/python-pathspec/commit/c8750218560b9c157c010e9339f3ba529bf79804"><code>c875021</code></a> Prepare for v1</li> <li><a href="https://github.com/cpburnz/python-pathspec/commit/5ab7e605f51a78fb126cad9f08b23fcc6c113a94"><code>5ab7e60</code></a> Prepare for v1</li> <li><a href="https://github.com/cpburnz/python-pathspec/commit/bc81a7dbd7bcaa1173d4d4fc20014237782fc5b1"><code>bc81a7d</code></a> PyPI</li> <li><a href="https://github.com/cpburnz/python-pathspec/commit/8869cbf092ab2262d7957698dc6e09602cf9ab23"><code>8869cbf</code></a> Misc</li> <li><a href="https://github.com/cpburnz/python-pathspec/commit/fcdf4770d474e24780e1d668a978c2f76a835df6"><code>fcdf477</code></a> TestPyPI</li> <li>Additional commits viewable in <a href="https://github.com/cpburnz/python-pathspec/compare/v0.12.1...v1.0.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pathspec&package-manager=pip&previous-version=0.12.1&new-version=1.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 120c6e8 commit b3a67ce

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

requirements/constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ packaging==25.0
130130
# pytest
131131
# sphinx
132132
# wheel
133-
pathspec==0.12.1
133+
pathspec==1.0.1
134134
# via mypy
135135
pip-tools==7.5.2
136136
# via -r requirements/dev.in

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ packaging==25.0
127127
# pytest
128128
# sphinx
129129
# wheel
130-
pathspec==0.12.1
130+
pathspec==1.0.1
131131
# via mypy
132132
pip-tools==7.5.2
133133
# via -r requirements/dev.in

requirements/lint.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ nodeenv==1.10.0
5757
# via pre-commit
5858
packaging==25.0
5959
# via pytest
60-
pathspec==0.12.1
60+
pathspec==1.0.1
6161
# via mypy
6262
platformdirs==4.5.1
6363
# via virtualenv

requirements/test-common.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ mypy-extensions==1.1.0
4646
# via mypy
4747
packaging==25.0
4848
# via pytest
49-
pathspec==0.12.1
49+
pathspec==1.0.1
5050
# via mypy
5151
pkgconfig==1.5.5
5252
# via -r requirements/test-common.in

requirements/test-ft.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ packaging==25.0
7373
# via
7474
# gunicorn
7575
# pytest
76-
pathspec==0.12.1
76+
pathspec==1.0.1
7777
# via mypy
7878
pkgconfig==1.5.5
7979
# via -r requirements/test-common.in

requirements/test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ packaging==25.0
7373
# via
7474
# gunicorn
7575
# pytest
76-
pathspec==0.12.1
76+
pathspec==1.0.1
7777
# via mypy
7878
pkgconfig==1.5.5
7979
# via -r requirements/test-common.in

0 commit comments

Comments
 (0)