From 40689e662d31cf9e909d25057f5835167f022977 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 11 Dec 2023 09:59:52 +0000 Subject: [PATCH] py-pathspec: update to 0.12.0. 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`: https://github.com/cpburnz/python-pathspec/issues/81 .. _`Pull #82`: https://github.com/cpburnz/python-pathspec/pull/82 .. _`Pull #83`: https://github.com/cpburnz/python-pathspec/pull/83 --- devel/py-pathspec/Makefile | 8 +++++--- devel/py-pathspec/PLIST | 10 +++++----- devel/py-pathspec/distinfo | 8 ++++---- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/devel/py-pathspec/Makefile b/devel/py-pathspec/Makefile index 40b644b8b07d..39363a0eddfb 100644 --- a/devel/py-pathspec/Makefile +++ b/devel/py-pathspec/Makefile @@ -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/} @@ -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" diff --git a/devel/py-pathspec/PLIST b/devel/py-pathspec/PLIST index 53ae29e37c4e..ab87824105b3 100644 --- a/devel/py-pathspec/PLIST +++ b/devel/py-pathspec/PLIST @@ -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 diff --git a/devel/py-pathspec/distinfo b/devel/py-pathspec/distinfo index c1b9d2c49760..5a927cbe4a98 100644 --- a/devel/py-pathspec/distinfo +++ b/devel/py-pathspec/distinfo @@ -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