pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-pathspec



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Dec 11 09:59:52 UTC 2023

Modified Files:
        pkgsrc/devel/py-pathspec: Makefile PLIST distinfo

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/py-pathspec/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-pathspec/PLIST
cvs rdiff -u -r1.18 -r1.19 pkgsrc/devel/py-pathspec/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-pathspec/Makefile
diff -u pkgsrc/devel/py-pathspec/Makefile:1.17 pkgsrc/devel/py-pathspec/Makefile:1.18
--- pkgsrc/devel/py-pathspec/Makefile:1.17      Sun Jul 30 07:56:50 2023
+++ pkgsrc/devel/py-pathspec/Makefile   Mon Dec 11 09:59:52 2023
@@ -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/pyt
 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"

Index: pkgsrc/devel/py-pathspec/PLIST
diff -u pkgsrc/devel/py-pathspec/PLIST:1.4 pkgsrc/devel/py-pathspec/PLIST:1.5
--- pkgsrc/devel/py-pathspec/PLIST:1.4  Mon Dec 12 13:44:59 2022
+++ pkgsrc/devel/py-pathspec/PLIST      Mon Dec 11 09:59:52 2023
@@ -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

Index: pkgsrc/devel/py-pathspec/distinfo
diff -u pkgsrc/devel/py-pathspec/distinfo:1.18 pkgsrc/devel/py-pathspec/distinfo:1.19
--- pkgsrc/devel/py-pathspec/distinfo:1.18      Sun Jul 30 07:56:50 2023
+++ pkgsrc/devel/py-pathspec/distinfo   Mon Dec 11 09:59:52 2023
@@ -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



Home | Main Index | Thread Index | Old Index