Skip to content

Commit

Permalink
py-pathspec: update to 0.12.0.
Browse files Browse the repository at this point in the history
0.12.0 (2023-12-09)
-------------------

Major changes:

- Dropped support of EOL Python 3.7. See `Pull #82`_.


API changes:

- Signature of protected method `pathspec.pathspec.PathSpec._match_file()` 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]]`.

New features:

- 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).
- Added `pathspec.pattern.RegexPattern.pattern` attribute which stores the original, uncompiled pattern.

Bug fixes:

- `Issue #81`_: GitIgnoreSpec behaviors differ from git.
- `Pull #83`_: Fix ReadTheDocs builds.

Improvements:

- Mark Python 3.12 as supported. See `Pull #82`_.
- Improve test debugging.
- Improve type hint on *on_error* parameter on `pathspec.pathspec.PathSpec.match_tree_entries()`.
- Improve type hint on *on_error* parameter on `pathspec.util.iter_tree_entries()`.


.. _`Issue #81`: cpburnz/python-pathspec#81
.. _`Pull #82`: cpburnz/python-pathspec#82
.. _`Pull #83`: cpburnz/python-pathspec#83
  • Loading branch information
0-wiz-0 committed Dec 11, 2023
1 parent 8f85dfe commit 40689e6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
8 changes: 5 additions & 3 deletions devel/py-pathspec/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.17 2023/07/30 07:56:50 adam Exp $
# $NetBSD: Makefile,v 1.18 2023/12/11 09:59:52 wiz Exp $

DISTNAME= pathspec-0.11.2
DISTNAME= pathspec-0.12.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pathspec/}
Expand All @@ -10,9 +10,11 @@ HOMEPAGE= https://github.com/cpburnz/python-path-specification
COMMENT= Utility library for gitignore style pattern matching of file paths
LICENSE= mpl-2.0

TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core

USE_LANGUAGES= # none

PYTHON_VERSIONS_INCOMPATIBLE= 27

.include "../../lang/python/egg.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
10 changes: 5 additions & 5 deletions devel/py-pathspec/PLIST
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@comment $NetBSD: PLIST,v 1.4 2022/12/12 13:44:59 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
@comment $NetBSD: PLIST,v 1.5 2023/12/11 09:59:52 wiz Exp $
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/pathspec/__init__.py
${PYSITELIB}/pathspec/__init__.pyc
${PYSITELIB}/pathspec/__init__.pyo
Expand Down
8 changes: 4 additions & 4 deletions devel/py-pathspec/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.18 2023/07/30 07:56:50 adam Exp $
$NetBSD: distinfo,v 1.19 2023/12/11 09:59:52 wiz Exp $

BLAKE2s (pathspec-0.11.2.tar.gz) = b44c3218ddc6582805e51d456ebf9a42636a46616c52ec7af5c05f854d87ccd7
SHA512 (pathspec-0.11.2.tar.gz) = bb1a178db145fee8011f579fb3a87564245e94b22adfac42bda921d8e2b95cab32617379e22d8ec2bd6aa7e6f9d96c10df4503e638aabfe6b358050912ab98a8
Size (pathspec-0.11.2.tar.gz) = 47032 bytes
BLAKE2s (pathspec-0.12.0.tar.gz) = b90139cc8471dca2c8d67f2658402cb501446cd763261585dddd0b29ed593221
SHA512 (pathspec-0.12.0.tar.gz) = c95546a0301333ab42e2af63f0729c3b6ad9ec3b9d3773f3201912866d8544a233ffe8878d1cf96abc6cbb7b46743927cc78233c11812c8d5ffed38be8a4e328
Size (pathspec-0.12.0.tar.gz) = 50357 bytes

0 comments on commit 40689e6

Please sign in to comment.