py-pathspec: updated to 0.10.1 0.10.1 (2022-09-02) ------------------- Bug fixes: - Fix documentation on `pathspec.pattern.RegexPattern.match_file()`. - Remove redundant wheel dep from pyproject.toml. - Dist failure for Fedora, CentOS, EPEL. - Since version 0.10.0 pure wildcard does not work in some cases. Improvements: - Restore support for legacy installations using `setup.py`. 0.10.0 (2022-08-30) ------------------- Major changes: - Dropped support of EOL Python 2.7, 3.5, 3.6. - The *gitwildmatch* pattern `dir/*` is now handled the same as `dir/`. This means `dir/*` will now match all descendants rather than only direct children. - Added `pathspec.GitIgnoreSpec` class (see new features). - Changed build system to `pyproject.toml`_ and build backend to `setuptools.build_meta`_ which may have unforeseen consequences. - Renamed GitHub project from `python-path-specification`_ to `python-pathspec`_. API changes: - Deprecated: `pathspec.util.match_files()` is an old function no longer used. - Deprecated: `pathspec.match_files()` is an old function no longer used. - Deprecated: `pathspec.util.normalize_files()` is no longer used. - Deprecated: `pathspec.util.iter_tree()` is an alias for `pathspec.util.iter_tree_files()`. - Deprecated: `pathspec.iter_tree()` is an alias for `pathspec.util.iter_tree_files()`. - Deprecated: `pathspec.pattern.Pattern.match()` is no longer used. Use or implement `pathspec.pattern.Pattern.match_file()`. New features: - 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. Bug fixes: - Files inside an ignored sub-directory are not matched. - Incorrectly (?) matches files inside directories that do match. - Refactor deprecated unittest aliases for Python 3.11 compatibility. - Symlink pathspec_meta.py breaks Windows. - test_util.py uses os.symlink which can fail on Windows. - Backslashes at start of pattern not handled correctly. - pyproject.toml: include subpackages in setuptools config - `!` doesn't exclude files in directories if the pattern doesn't have a trailing slash. Improvements: - Support Python 3.10, 3.11. - Modernize code to Python 3.7. - match_files() is not a pure generator function, and it impacts tree_*() gravely.diff -r1.11 -r1.12 pkgsrc/devel/py-pathspec/Makefile
(adam)
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.11 2022/01/04 20:53:20 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.12 2022/09/14 10:31:36 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= pathspec-0.9.0 | 3 | DISTNAME= pathspec-0.10.1 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | PKGREVISION= 1 | |||
6 | CATEGORIES= devel python | 5 | CATEGORIES= devel python | |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pathspec/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pathspec/} | |
8 | 7 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://github.com/cpburnz/python-path-specification | 9 | HOMEPAGE= https://github.com/cpburnz/python-path-specification | |
11 | COMMENT= Utility library for gitignore style pattern matching of file paths | 10 | COMMENT= Utility library for gitignore style pattern matching of file paths | |
12 | LICENSE= mpl-2.0 | 11 | LICENSE= mpl-2.0 | |
13 | 12 | |||
14 | USE_LANGUAGES= # none | 13 | USE_LANGUAGES= # none | |
15 | 14 | |||
15 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |||
16 | ||||
16 | .include "../../lang/python/egg.mk" | 17 | .include "../../lang/python/egg.mk" | |
17 | .include "../../mk/bsd.pkg.mk" | 18 | .include "../../mk/bsd.pkg.mk" |
@@ -1,41 +1,29 @@ | @@ -1,41 +1,29 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2021/07/19 19:50:10 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2022/09/14 10:31:36 adam Exp $ | |
2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
5 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 5 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
6 | ${PYSITELIB}/pathspec/__init__.py | 6 | ${PYSITELIB}/pathspec/__init__.py | |
7 | ${PYSITELIB}/pathspec/__init__.pyc | 7 | ${PYSITELIB}/pathspec/__init__.pyc | |
8 | ${PYSITELIB}/pathspec/__init__.pyo | 8 | ${PYSITELIB}/pathspec/__init__.pyo | |
9 | ${PYSITELIB}/pathspec/_meta.py | 9 | ${PYSITELIB}/pathspec/_meta.py | |
10 | ${PYSITELIB}/pathspec/_meta.pyc | 10 | ${PYSITELIB}/pathspec/_meta.pyc | |
11 | ${PYSITELIB}/pathspec/_meta.pyo | 11 | ${PYSITELIB}/pathspec/_meta.pyo | |
12 | ${PYSITELIB}/pathspec/compat.py | 12 | ${PYSITELIB}/pathspec/gitignore.py | |
13 | ${PYSITELIB}/pathspec/compat.pyc | 13 | ${PYSITELIB}/pathspec/gitignore.pyc | |
14 | ${PYSITELIB}/pathspec/compat.pyo | 14 | ${PYSITELIB}/pathspec/gitignore.pyo | |
15 | ${PYSITELIB}/pathspec/pathspec.py | 15 | ${PYSITELIB}/pathspec/pathspec.py | |
16 | ${PYSITELIB}/pathspec/pathspec.pyc | 16 | ${PYSITELIB}/pathspec/pathspec.pyc | |
17 | ${PYSITELIB}/pathspec/pathspec.pyo | 17 | ${PYSITELIB}/pathspec/pathspec.pyo | |
18 | ${PYSITELIB}/pathspec/pattern.py | 18 | ${PYSITELIB}/pathspec/pattern.py | |
19 | ${PYSITELIB}/pathspec/pattern.pyc | 19 | ${PYSITELIB}/pathspec/pattern.pyc | |
20 | ${PYSITELIB}/pathspec/pattern.pyo | 20 | ${PYSITELIB}/pathspec/pattern.pyo | |
21 | ${PYSITELIB}/pathspec/patterns/__init__.py | 21 | ${PYSITELIB}/pathspec/patterns/__init__.py | |
22 | ${PYSITELIB}/pathspec/patterns/__init__.pyc | 22 | ${PYSITELIB}/pathspec/patterns/__init__.pyc | |
23 | ${PYSITELIB}/pathspec/patterns/__init__.pyo | 23 | ${PYSITELIB}/pathspec/patterns/__init__.pyo | |
24 | ${PYSITELIB}/pathspec/patterns/gitwildmatch.py | 24 | ${PYSITELIB}/pathspec/patterns/gitwildmatch.py | |
25 | ${PYSITELIB}/pathspec/patterns/gitwildmatch.pyc | 25 | ${PYSITELIB}/pathspec/patterns/gitwildmatch.pyc | |
26 | ${PYSITELIB}/pathspec/patterns/gitwildmatch.pyo | 26 | ${PYSITELIB}/pathspec/patterns/gitwildmatch.pyo | |
27 | ${PYSITELIB}/pathspec/tests/__init__.py | |||
28 | ${PYSITELIB}/pathspec/tests/__init__.pyc | |||
29 | ${PYSITELIB}/pathspec/tests/__init__.pyo | |||
30 | ${PYSITELIB}/pathspec/tests/test_gitwildmatch.py | |||
31 | ${PYSITELIB}/pathspec/tests/test_gitwildmatch.pyc | |||
32 | ${PYSITELIB}/pathspec/tests/test_gitwildmatch.pyo | |||
33 | ${PYSITELIB}/pathspec/tests/test_pathspec.py | |||
34 | ${PYSITELIB}/pathspec/tests/test_pathspec.pyc | |||
35 | ${PYSITELIB}/pathspec/tests/test_pathspec.pyo | |||
36 | ${PYSITELIB}/pathspec/tests/test_util.py | |||
37 | ${PYSITELIB}/pathspec/tests/test_util.pyc | |||
38 | ${PYSITELIB}/pathspec/tests/test_util.pyo | |||
39 | ${PYSITELIB}/pathspec/util.py | 27 | ${PYSITELIB}/pathspec/util.py | |
40 | ${PYSITELIB}/pathspec/util.pyc | 28 | ${PYSITELIB}/pathspec/util.pyc | |
41 | ${PYSITELIB}/pathspec/util.pyo | 29 | ${PYSITELIB}/pathspec/util.pyo |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.12 2021/10/26 10:18:44 nia Exp $ | 1 | $NetBSD: distinfo,v 1.13 2022/09/14 10:31:36 adam Exp $ | |
2 | 2 | |||
3 | BLAKE2s (pathspec-0.9.0.tar.gz) = ed0cd8150c1661563ef445c79db88cb227e78cc4077d588ae93cfd27929df267 | 3 | BLAKE2s (pathspec-0.10.1.tar.gz) = dc56d6aa4622ffc3de9b15d2d24f9a2917e7c7a85a9cd76b436b920bca1701d0 | |
4 | SHA512 (pathspec-0.9.0.tar.gz) = 660f13525325c27b598048a3576fd704c3843e0b07770187d005f0e93996a90cee44e9a0725b6bf775982f586ed3b4ba7cccee966d7149e71e2b95d48030b2f2 | 4 | SHA512 (pathspec-0.10.1.tar.gz) = 886c16ba9a221720a9fbac6a2aead5a16de62988afbf0ed976f28c312fe524f41ccfb139e0b9699942ca32aa90f183e20656986ed631cf2435818c082d58115d | |
5 | Size (pathspec-0.9.0.tar.gz) = 29483 bytes | 5 | Size (pathspec-0.10.1.tar.gz) = 43155 bytes |