Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pathspec for openSUSE:Factory checked in at 2022-12-15 19:24:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pathspec (Old) and /work/SRC/openSUSE:Factory/.python-pathspec.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pathspec" Thu Dec 15 19:24:08 2022 rev:12 rq:1042885 version:0.10.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pathspec/python-pathspec.changes 2022-12-05 18:00:32.688367130 +0100 +++ /work/SRC/openSUSE:Factory/.python-pathspec.new.1835/python-pathspec.changes 2022-12-15 19:24:10.523704758 +0100 @@ -1,0 +2,13 @@ +Tue Dec 13 15:46:35 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to version 0.10.3 + * New features: + Added utility function pathspec.util.append_dir_sep() to aid in distinguishing between directories and files on the file-system. See Issue #65. + * Bug fixes: + Issue #66/Pull #67: Package not marked as py.typed. + Issue #68: Exports are considered private. + Issue #70/Pull #71: 'Self' string literal type is Unknown in pyright. + * Improvements: + Issue #65: Checking directories via match_file() does not work on Path objects. + +------------------------------------------------------------------- Old: ---- pathspec-0.10.2.tar.gz New: ---- pathspec-0.10.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pathspec.spec ++++++ --- /var/tmp/diff_new_pack.AunmmI/_old 2022-12-15 19:24:11.119708149 +0100 +++ /var/tmp/diff_new_pack.AunmmI/_new 2022-12-15 19:24:11.123708171 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pathspec -Version: 0.10.2 +Version: 0.10.3 Release: 0 Summary: Utility library for gitignore style pattern matching of file paths License: MPL-2.0 ++++++ pathspec-0.10.2.tar.gz -> pathspec-0.10.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/CHANGES.rst new/pathspec-0.10.3/CHANGES.rst --- old/pathspec-0.10.2/CHANGES.rst 2022-11-13 04:31:41.000000000 +0100 +++ new/pathspec-0.10.3/CHANGES.rst 2022-12-10 05:43:40.000000000 +0100 @@ -3,6 +3,32 @@ ============== +0.10.3 (2022-12-09) +------------------- + +New features: + +- Added utility function `pathspec.util.append_dir_sep()` to aid in distinguishing between directories and files on the file-system. See `Issue #65`_. + +Bug fixes: + +- `Issue #66`_/`Pull #67`_: Package not marked as py.typed. +- `Issue #68`_: Exports are considered private. +- `Issue #70`_/`Pull #71`_: 'Self' string literal type is Unknown in pyright. + +Improvements: + +- `Issue #65`_: Checking directories via match_file() does not work on Path objects. + + +.. _`Issue #65`: https://github.com/cpburnz/python-pathspec/issues/65 +.. _`Issue #66`: https://github.com/cpburnz/python-pathspec/issues/66 +.. _`Pull #67`: https://github.com/cpburnz/python-pathspec/pull/67 +.. _`Issue #68`: https://github.com/cpburnz/python-pathspec/issues/68 +.. _`Issue #70`: https://github.com/cpburnz/python-pathspec/issues/70 +.. _`Pull #71`: https://github.com/cpburnz/python-pathspec/pull/71 + + 0.10.2 (2022-11-12) ------------------- @@ -17,10 +43,10 @@ Improvements: -- `Issue #58`_: CI: add GitHub Actions test workflow. +- `Pull #58`_: CI: add GitHub Actions test workflow. -.. _`Issue #58`: https://github.com/cpburnz/python-pathspec/pull/58 +.. _`Pull #58`: https://github.com/cpburnz/python-pathspec/pull/58 .. _`Issue #64`: https://github.com/cpburnz/python-pathspec/issues/64 @@ -30,7 +56,7 @@ Bug fixes: - Fix documentation on `pathspec.pattern.RegexPattern.match_file()`. -- `Issue #60`_: Remove redundant wheel dep from pyproject.toml. +- `Pull #60`_: Remove redundant wheel dep from pyproject.toml. - `Issue #61`_: Dist failure for Fedora, CentOS, EPEL. - `Issue #62`_: Since version 0.10.0 pure wildcard does not work in some cases. @@ -39,7 +65,7 @@ - Restore support for legacy installations using `setup.py`. See `Issue #61`_. -.. _`Issue #60`: https://github.com/cpburnz/python-pathspec/pull/60 +.. _`Pull #60`: https://github.com/cpburnz/python-pathspec/pull/60 .. _`Issue #61`: https://github.com/cpburnz/python-pathspec/issues/61 .. _`Issue #62`: https://github.com/cpburnz/python-pathspec/issues/62 @@ -73,11 +99,11 @@ - `Issue #19`_: Files inside an ignored sub-directory are not matched. - `Issue #41`_: Incorrectly (?) matches files inside directories that do match. -- `Issue #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility. +- `Pull #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility. - `Issue #53`_: Symlink pathspec_meta.py breaks Windows. - `Issue #54`_: test_util.py uses os.symlink which can fail on Windows. - `Issue #55`_: Backslashes at start of pattern not handled correctly. -- `Issue #56`_: pyproject.toml: include subpackages in setuptools config +- `Pull #56`_: pyproject.toml: include subpackages in setuptools config - `Issue #57`_: `!` doesn't exclude files in directories if the pattern doesn't have a trailing slash. Improvements: @@ -95,36 +121,36 @@ .. _`Issue #35`: https://github.com/cpburnz/python-pathspec/issues/35 .. _`Issue #41`: https://github.com/cpburnz/python-pathspec/issues/41 .. _`Issue #47`: https://github.com/cpburnz/python-pathspec/issues/47 -.. _`Issue #51`: https://github.com/cpburnz/python-pathspec/pull/51 +.. _`Pull #51`: https://github.com/cpburnz/python-pathspec/pull/51 .. _`Issue #52`: https://github.com/cpburnz/python-pathspec/issues/52 .. _`Issue #53`: https://github.com/cpburnz/python-pathspec/issues/53 .. _`Issue #54`: https://github.com/cpburnz/python-pathspec/issues/54 .. _`Issue #55`: https://github.com/cpburnz/python-pathspec/issues/55 -.. _`Issue #56`: https://github.com/cpburnz/python-pathspec/pull/56 +.. _`Pull #56`: https://github.com/cpburnz/python-pathspec/pull/56 .. _`Issue #57`: https://github.com/cpburnz/python-pathspec/issues/57 0.9.0 (2021-07-17) ------------------ -- `Issue #44`_/`Issue #50`_: Raise `GitWildMatchPatternError` for invalid git patterns. -- `Issue #45`_: Fix for duplicate leading double-asterisk, and edge cases. +- `Issue #44`_/`Pull #50`_: Raise `GitWildMatchPatternError` for invalid git patterns. +- `Pull #45`_: Fix for duplicate leading double-asterisk, and edge cases. - `Issue #46`_: Fix matching absolute paths. - API change: `util.normalize_files()` now returns a `Dict[str, List[pathlike]]` instead of a `Dict[str, pathlike]`. - Added type hinting. .. _`Issue #44`: https://github.com/cpburnz/python-pathspec/issues/44 -.. _`Issue #45`: https://github.com/cpburnz/python-pathspec/pull/45 +.. _`Pull #45`: https://github.com/cpburnz/python-pathspec/pull/45 .. _`Issue #46`: https://github.com/cpburnz/python-pathspec/issues/46 -.. _`Issue #50`: https://github.com/cpburnz/python-pathspec/pull/50 +.. _`Pull #50`: https://github.com/cpburnz/python-pathspec/pull/50 0.8.1 (2020-11-07) ------------------ -- `Issue #43`_: Add support for addition operator. +- `Pull #43`_: Add support for addition operator. -.. _`Issue #43`: https://github.com/cpburnz/python-pathspec/pull/43 +.. _`Pull #43`: https://github.com/cpburnz/python-pathspec/pull/43 0.8.0 (2020-04-09) @@ -145,23 +171,23 @@ 0.7.0 (2019-12-27) ------------------ -- `Issue #28`_: Add support for Python 3.8, and drop Python 3.4. -- `Issue #29`_: Publish bdist wheel. +- `Pull #28`_: Add support for Python 3.8, and drop Python 3.4. +- `Pull #29`_: Publish bdist wheel. -.. _`Issue #28`: https://github.com/cpburnz/python-pathspec/pull/28 -.. _`Issue #29`: https://github.com/cpburnz/python-pathspec/pull/29 +.. _`Pull #28`: https://github.com/cpburnz/python-pathspec/pull/28 +.. _`Pull #29`: https://github.com/cpburnz/python-pathspec/pull/29 0.6.0 (2019-10-03) ------------------ -- `Issue #24`_: Drop support for Python 2.6, 3.2, and 3.3. -- `Issue #25`_: Update README.rst. -- `Issue #26`_: Method to escape gitwildmatch. - -.. _`Issue #24`: https://github.com/cpburnz/python-pathspec/pull/24 -.. _`Issue #25`: https://github.com/cpburnz/python-pathspec/pull/25 -.. _`Issue #26`: https://github.com/cpburnz/python-pathspec/pull/26 +- `Pull #24`_: Drop support for Python 2.6, 3.2, and 3.3. +- `Pull #25`_: Update README.rst. +- `Pull #26`_: Method to escape gitwildmatch. + +.. _`Pull #24`: https://github.com/cpburnz/python-pathspec/pull/24 +.. _`Pull #25`: https://github.com/cpburnz/python-pathspec/pull/25 +.. _`Pull #26`: https://github.com/cpburnz/python-pathspec/pull/26 0.5.9 (2018-09-15) @@ -208,21 +234,21 @@ 0.5.4 (2017-09-09) ------------------ -- `Issue #17`_: Add link to Ruby implementation of *pathspec*. +- `Pull #17`_: Add link to Ruby implementation of *pathspec*. - Add sphinx documentation. -.. _`Issue #17`: https://github.com/cpburnz/python-pathspec/pull/17 +.. _`Pull #17`: https://github.com/cpburnz/python-pathspec/pull/17 0.5.3 (2017-07-01) ------------------ - `Issue #14`_: Fix byte strings for Python 3. -- `Issue #15`_: Include "LICENSE" in source package. +- `Pull #15`_: Include "LICENSE" in source package. - `Issue #16`_: Support Python 2.6. .. _`Issue #14`: https://github.com/cpburnz/python-pathspec/issues/14 -.. _`Issue #15`: https://github.com/cpburnz/python-pathspec/pull/15 +.. _`Pull #15`: https://github.com/cpburnz/python-pathspec/pull/15 .. _`Issue #16`: https://github.com/cpburnz/python-pathspec/issues/16 @@ -235,9 +261,9 @@ 0.5.1 (2017-04-04) ------------------ -- `Issue #13`_: Add equality methods to `PathSpec` and `RegexPattern`. +- `Pull #13`_: Add equality methods to `PathSpec` and `RegexPattern`. -.. _`Issue #13`: https://github.com/cpburnz/python-pathspec/pull/13 +.. _`Pull #13`: https://github.com/cpburnz/python-pathspec/pull/13 0.5.0 (2016-08-22) @@ -262,15 +288,15 @@ 0.3.4 (2015-08-24) ------------------ -- `Issue #7`_: Fixed non-recursive links. -- `Issue #8`_: Fixed edge cases in gitignore patterns. -- `Issue #9`_: Fixed minor usage documentation. +- `Pull #7`_: Fixed non-recursive links. +- `Pull #8`_: Fixed edge cases in gitignore patterns. +- `Pull #9`_: Fixed minor usage documentation. - Fixed recursion detection. - Fixed trivial incompatibility with Python 3.2. -.. _`Issue #7`: https://github.com/cpburnz/python-pathspec/pull/7 -.. _`Issue #8`: https://github.com/cpburnz/python-pathspec/pull/8 -.. _`Issue #9`: https://github.com/cpburnz/python-pathspec/pull/9 +.. _`Pull #7`: https://github.com/cpburnz/python-pathspec/pull/7 +.. _`Pull #8`: https://github.com/cpburnz/python-pathspec/pull/8 +.. _`Pull #9`: https://github.com/cpburnz/python-pathspec/pull/9 0.3.3 (2014-11-21) @@ -282,12 +308,12 @@ 0.3.2 (2014-11-08) ------------------ -- `Issue #5`_: Use tox for testing. +- `Pull #5`_: Use tox for testing. - `Issue #6`_: Fixed matching Windows paths. - Improved documentation. - API change: `spec.match_tree()` and `spec.match_files()` now return iterators instead of sets. -.. _`Issue #5`: https://github.com/cpburnz/python-pathspec/pull/5 +.. _`Pull #5`: https://github.com/cpburnz/python-pathspec/pull/5 .. _`Issue #6`: https://github.com/cpburnz/python-pathspec/issues/6 @@ -300,12 +326,12 @@ 0.3.0 (2014-09-17) ------------------ -- `Issue #3`_: Fixed trailing slash in gitignore patterns. -- `Issue #4`_: Fixed test for trailing slash in gitignore patterns. +- `Pull #3`_: Fixed trailing slash in gitignore patterns. +- `Pull #4`_: Fixed test for trailing slash in gitignore patterns. - Added registered patterns. -.. _`Issue #3`: https://github.com/cpburnz/python-pathspec/pull/3 -.. _`Issue #4`: https://github.com/cpburnz/python-pathspec/pull/4 +.. _`Pull #3`: https://github.com/cpburnz/python-pathspec/pull/3 +.. _`Pull #4`: https://github.com/cpburnz/python-pathspec/pull/4 0.2.2 (2013-12-17) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/MANIFEST.in new/pathspec-0.10.3/MANIFEST.in --- old/pathspec-0.10.2/MANIFEST.in 2022-08-13 04:06:31.000000000 +0200 +++ new/pathspec-0.10.3/MANIFEST.in 2022-12-01 14:52:47.000000000 +0100 @@ -2,6 +2,7 @@ include *.ini include *.py include *.rst +include pathspec/py.typed include LICENSE recursive-include doc * recursive-include tests * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/PKG-INFO new/pathspec-0.10.3/PKG-INFO --- old/pathspec-0.10.2/PKG-INFO 2022-11-13 04:34:39.965963100 +0100 +++ new/pathspec-0.10.3/PKG-INFO 2022-12-10 05:48:58.911429000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pathspec -Version: 0.10.2 +Version: 0.10.3 Summary: Utility library for gitignore style pattern matching of file paths. Home-page: https://github.com/cpburnz/python-pathspec Author: Caleb P. Burns @@ -202,6 +202,32 @@ ============== +0.10.3 (2022-12-09) +------------------- + +New features: + +- Added utility function `pathspec.util.append_dir_sep()` to aid in distinguishing between directories and files on the file-system. See `Issue #65`_. + +Bug fixes: + +- `Issue #66`_/`Pull #67`_: Package not marked as py.typed. +- `Issue #68`_: Exports are considered private. +- `Issue #70`_/`Pull #71`_: 'Self' string literal type is Unknown in pyright. + +Improvements: + +- `Issue #65`_: Checking directories via match_file() does not work on Path objects. + + +.. _`Issue #65`: https://github.com/cpburnz/python-pathspec/issues/65 +.. _`Issue #66`: https://github.com/cpburnz/python-pathspec/issues/66 +.. _`Pull #67`: https://github.com/cpburnz/python-pathspec/pull/67 +.. _`Issue #68`: https://github.com/cpburnz/python-pathspec/issues/68 +.. _`Issue #70`: https://github.com/cpburnz/python-pathspec/issues/70 +.. _`Pull #71`: https://github.com/cpburnz/python-pathspec/pull/71 + + 0.10.2 (2022-11-12) ------------------- @@ -216,10 +242,10 @@ Improvements: -- `Issue #58`_: CI: add GitHub Actions test workflow. +- `Pull #58`_: CI: add GitHub Actions test workflow. -.. _`Issue #58`: https://github.com/cpburnz/python-pathspec/pull/58 +.. _`Pull #58`: https://github.com/cpburnz/python-pathspec/pull/58 .. _`Issue #64`: https://github.com/cpburnz/python-pathspec/issues/64 @@ -229,7 +255,7 @@ Bug fixes: - Fix documentation on `pathspec.pattern.RegexPattern.match_file()`. -- `Issue #60`_: Remove redundant wheel dep from pyproject.toml. +- `Pull #60`_: Remove redundant wheel dep from pyproject.toml. - `Issue #61`_: Dist failure for Fedora, CentOS, EPEL. - `Issue #62`_: Since version 0.10.0 pure wildcard does not work in some cases. @@ -238,7 +264,7 @@ - Restore support for legacy installations using `setup.py`. See `Issue #61`_. -.. _`Issue #60`: https://github.com/cpburnz/python-pathspec/pull/60 +.. _`Pull #60`: https://github.com/cpburnz/python-pathspec/pull/60 .. _`Issue #61`: https://github.com/cpburnz/python-pathspec/issues/61 .. _`Issue #62`: https://github.com/cpburnz/python-pathspec/issues/62 @@ -272,11 +298,11 @@ - `Issue #19`_: Files inside an ignored sub-directory are not matched. - `Issue #41`_: Incorrectly (?) matches files inside directories that do match. -- `Issue #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility. +- `Pull #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility. - `Issue #53`_: Symlink pathspec_meta.py breaks Windows. - `Issue #54`_: test_util.py uses os.symlink which can fail on Windows. - `Issue #55`_: Backslashes at start of pattern not handled correctly. -- `Issue #56`_: pyproject.toml: include subpackages in setuptools config +- `Pull #56`_: pyproject.toml: include subpackages in setuptools config - `Issue #57`_: `!` doesn't exclude files in directories if the pattern doesn't have a trailing slash. Improvements: @@ -294,36 +320,36 @@ .. _`Issue #35`: https://github.com/cpburnz/python-pathspec/issues/35 .. _`Issue #41`: https://github.com/cpburnz/python-pathspec/issues/41 .. _`Issue #47`: https://github.com/cpburnz/python-pathspec/issues/47 -.. _`Issue #51`: https://github.com/cpburnz/python-pathspec/pull/51 +.. _`Pull #51`: https://github.com/cpburnz/python-pathspec/pull/51 .. _`Issue #52`: https://github.com/cpburnz/python-pathspec/issues/52 .. _`Issue #53`: https://github.com/cpburnz/python-pathspec/issues/53 .. _`Issue #54`: https://github.com/cpburnz/python-pathspec/issues/54 .. _`Issue #55`: https://github.com/cpburnz/python-pathspec/issues/55 -.. _`Issue #56`: https://github.com/cpburnz/python-pathspec/pull/56 +.. _`Pull #56`: https://github.com/cpburnz/python-pathspec/pull/56 .. _`Issue #57`: https://github.com/cpburnz/python-pathspec/issues/57 0.9.0 (2021-07-17) ------------------ -- `Issue #44`_/`Issue #50`_: Raise `GitWildMatchPatternError` for invalid git patterns. -- `Issue #45`_: Fix for duplicate leading double-asterisk, and edge cases. +- `Issue #44`_/`Pull #50`_: Raise `GitWildMatchPatternError` for invalid git patterns. +- `Pull #45`_: Fix for duplicate leading double-asterisk, and edge cases. - `Issue #46`_: Fix matching absolute paths. - API change: `util.normalize_files()` now returns a `Dict[str, List[pathlike]]` instead of a `Dict[str, pathlike]`. - Added type hinting. .. _`Issue #44`: https://github.com/cpburnz/python-pathspec/issues/44 -.. _`Issue #45`: https://github.com/cpburnz/python-pathspec/pull/45 +.. _`Pull #45`: https://github.com/cpburnz/python-pathspec/pull/45 .. _`Issue #46`: https://github.com/cpburnz/python-pathspec/issues/46 -.. _`Issue #50`: https://github.com/cpburnz/python-pathspec/pull/50 +.. _`Pull #50`: https://github.com/cpburnz/python-pathspec/pull/50 0.8.1 (2020-11-07) ------------------ -- `Issue #43`_: Add support for addition operator. +- `Pull #43`_: Add support for addition operator. -.. _`Issue #43`: https://github.com/cpburnz/python-pathspec/pull/43 +.. _`Pull #43`: https://github.com/cpburnz/python-pathspec/pull/43 0.8.0 (2020-04-09) @@ -344,23 +370,23 @@ 0.7.0 (2019-12-27) ------------------ -- `Issue #28`_: Add support for Python 3.8, and drop Python 3.4. -- `Issue #29`_: Publish bdist wheel. +- `Pull #28`_: Add support for Python 3.8, and drop Python 3.4. +- `Pull #29`_: Publish bdist wheel. -.. _`Issue #28`: https://github.com/cpburnz/python-pathspec/pull/28 -.. _`Issue #29`: https://github.com/cpburnz/python-pathspec/pull/29 +.. _`Pull #28`: https://github.com/cpburnz/python-pathspec/pull/28 +.. _`Pull #29`: https://github.com/cpburnz/python-pathspec/pull/29 0.6.0 (2019-10-03) ------------------ -- `Issue #24`_: Drop support for Python 2.6, 3.2, and 3.3. -- `Issue #25`_: Update README.rst. -- `Issue #26`_: Method to escape gitwildmatch. - -.. _`Issue #24`: https://github.com/cpburnz/python-pathspec/pull/24 -.. _`Issue #25`: https://github.com/cpburnz/python-pathspec/pull/25 -.. _`Issue #26`: https://github.com/cpburnz/python-pathspec/pull/26 +- `Pull #24`_: Drop support for Python 2.6, 3.2, and 3.3. +- `Pull #25`_: Update README.rst. +- `Pull #26`_: Method to escape gitwildmatch. + +.. _`Pull #24`: https://github.com/cpburnz/python-pathspec/pull/24 +.. _`Pull #25`: https://github.com/cpburnz/python-pathspec/pull/25 +.. _`Pull #26`: https://github.com/cpburnz/python-pathspec/pull/26 0.5.9 (2018-09-15) @@ -407,21 +433,21 @@ 0.5.4 (2017-09-09) ------------------ -- `Issue #17`_: Add link to Ruby implementation of *pathspec*. +- `Pull #17`_: Add link to Ruby implementation of *pathspec*. - Add sphinx documentation. -.. _`Issue #17`: https://github.com/cpburnz/python-pathspec/pull/17 +.. _`Pull #17`: https://github.com/cpburnz/python-pathspec/pull/17 0.5.3 (2017-07-01) ------------------ - `Issue #14`_: Fix byte strings for Python 3. -- `Issue #15`_: Include "LICENSE" in source package. +- `Pull #15`_: Include "LICENSE" in source package. - `Issue #16`_: Support Python 2.6. .. _`Issue #14`: https://github.com/cpburnz/python-pathspec/issues/14 -.. _`Issue #15`: https://github.com/cpburnz/python-pathspec/pull/15 +.. _`Pull #15`: https://github.com/cpburnz/python-pathspec/pull/15 .. _`Issue #16`: https://github.com/cpburnz/python-pathspec/issues/16 @@ -434,9 +460,9 @@ 0.5.1 (2017-04-04) ------------------ -- `Issue #13`_: Add equality methods to `PathSpec` and `RegexPattern`. +- `Pull #13`_: Add equality methods to `PathSpec` and `RegexPattern`. -.. _`Issue #13`: https://github.com/cpburnz/python-pathspec/pull/13 +.. _`Pull #13`: https://github.com/cpburnz/python-pathspec/pull/13 0.5.0 (2016-08-22) @@ -461,15 +487,15 @@ 0.3.4 (2015-08-24) ------------------ -- `Issue #7`_: Fixed non-recursive links. -- `Issue #8`_: Fixed edge cases in gitignore patterns. -- `Issue #9`_: Fixed minor usage documentation. +- `Pull #7`_: Fixed non-recursive links. +- `Pull #8`_: Fixed edge cases in gitignore patterns. +- `Pull #9`_: Fixed minor usage documentation. - Fixed recursion detection. - Fixed trivial incompatibility with Python 3.2. -.. _`Issue #7`: https://github.com/cpburnz/python-pathspec/pull/7 -.. _`Issue #8`: https://github.com/cpburnz/python-pathspec/pull/8 -.. _`Issue #9`: https://github.com/cpburnz/python-pathspec/pull/9 +.. _`Pull #7`: https://github.com/cpburnz/python-pathspec/pull/7 +.. _`Pull #8`: https://github.com/cpburnz/python-pathspec/pull/8 +.. _`Pull #9`: https://github.com/cpburnz/python-pathspec/pull/9 0.3.3 (2014-11-21) @@ -481,12 +507,12 @@ 0.3.2 (2014-11-08) ------------------ -- `Issue #5`_: Use tox for testing. +- `Pull #5`_: Use tox for testing. - `Issue #6`_: Fixed matching Windows paths. - Improved documentation. - API change: `spec.match_tree()` and `spec.match_files()` now return iterators instead of sets. -.. _`Issue #5`: https://github.com/cpburnz/python-pathspec/pull/5 +.. _`Pull #5`: https://github.com/cpburnz/python-pathspec/pull/5 .. _`Issue #6`: https://github.com/cpburnz/python-pathspec/issues/6 @@ -499,12 +525,12 @@ 0.3.0 (2014-09-17) ------------------ -- `Issue #3`_: Fixed trailing slash in gitignore patterns. -- `Issue #4`_: Fixed test for trailing slash in gitignore patterns. +- `Pull #3`_: Fixed trailing slash in gitignore patterns. +- `Pull #4`_: Fixed test for trailing slash in gitignore patterns. - Added registered patterns. -.. _`Issue #3`: https://github.com/cpburnz/python-pathspec/pull/3 -.. _`Issue #4`: https://github.com/cpburnz/python-pathspec/pull/4 +.. _`Pull #3`: https://github.com/cpburnz/python-pathspec/pull/3 +.. _`Pull #4`: https://github.com/cpburnz/python-pathspec/pull/4 0.2.2 (2013-12-17) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/README-dist.rst new/pathspec-0.10.3/README-dist.rst --- old/pathspec-0.10.2/README-dist.rst 2022-11-13 04:34:37.000000000 +0100 +++ new/pathspec-0.10.3/README-dist.rst 2022-12-10 05:48:56.000000000 +0100 @@ -172,6 +172,32 @@ ============== +0.10.3 (2022-12-09) +------------------- + +New features: + +- Added utility function `pathspec.util.append_dir_sep()` to aid in distinguishing between directories and files on the file-system. See `Issue #65`_. + +Bug fixes: + +- `Issue #66`_/`Pull #67`_: Package not marked as py.typed. +- `Issue #68`_: Exports are considered private. +- `Issue #70`_/`Pull #71`_: 'Self' string literal type is Unknown in pyright. + +Improvements: + +- `Issue #65`_: Checking directories via match_file() does not work on Path objects. + + +.. _`Issue #65`: https://github.com/cpburnz/python-pathspec/issues/65 +.. _`Issue #66`: https://github.com/cpburnz/python-pathspec/issues/66 +.. _`Pull #67`: https://github.com/cpburnz/python-pathspec/pull/67 +.. _`Issue #68`: https://github.com/cpburnz/python-pathspec/issues/68 +.. _`Issue #70`: https://github.com/cpburnz/python-pathspec/issues/70 +.. _`Pull #71`: https://github.com/cpburnz/python-pathspec/pull/71 + + 0.10.2 (2022-11-12) ------------------- @@ -186,10 +212,10 @@ Improvements: -- `Issue #58`_: CI: add GitHub Actions test workflow. +- `Pull #58`_: CI: add GitHub Actions test workflow. -.. _`Issue #58`: https://github.com/cpburnz/python-pathspec/pull/58 +.. _`Pull #58`: https://github.com/cpburnz/python-pathspec/pull/58 .. _`Issue #64`: https://github.com/cpburnz/python-pathspec/issues/64 @@ -199,7 +225,7 @@ Bug fixes: - Fix documentation on `pathspec.pattern.RegexPattern.match_file()`. -- `Issue #60`_: Remove redundant wheel dep from pyproject.toml. +- `Pull #60`_: Remove redundant wheel dep from pyproject.toml. - `Issue #61`_: Dist failure for Fedora, CentOS, EPEL. - `Issue #62`_: Since version 0.10.0 pure wildcard does not work in some cases. @@ -208,7 +234,7 @@ - Restore support for legacy installations using `setup.py`. See `Issue #61`_. -.. _`Issue #60`: https://github.com/cpburnz/python-pathspec/pull/60 +.. _`Pull #60`: https://github.com/cpburnz/python-pathspec/pull/60 .. _`Issue #61`: https://github.com/cpburnz/python-pathspec/issues/61 .. _`Issue #62`: https://github.com/cpburnz/python-pathspec/issues/62 @@ -242,11 +268,11 @@ - `Issue #19`_: Files inside an ignored sub-directory are not matched. - `Issue #41`_: Incorrectly (?) matches files inside directories that do match. -- `Issue #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility. +- `Pull #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility. - `Issue #53`_: Symlink pathspec_meta.py breaks Windows. - `Issue #54`_: test_util.py uses os.symlink which can fail on Windows. - `Issue #55`_: Backslashes at start of pattern not handled correctly. -- `Issue #56`_: pyproject.toml: include subpackages in setuptools config +- `Pull #56`_: pyproject.toml: include subpackages in setuptools config - `Issue #57`_: `!` doesn't exclude files in directories if the pattern doesn't have a trailing slash. Improvements: @@ -264,36 +290,36 @@ .. _`Issue #35`: https://github.com/cpburnz/python-pathspec/issues/35 .. _`Issue #41`: https://github.com/cpburnz/python-pathspec/issues/41 .. _`Issue #47`: https://github.com/cpburnz/python-pathspec/issues/47 -.. _`Issue #51`: https://github.com/cpburnz/python-pathspec/pull/51 +.. _`Pull #51`: https://github.com/cpburnz/python-pathspec/pull/51 .. _`Issue #52`: https://github.com/cpburnz/python-pathspec/issues/52 .. _`Issue #53`: https://github.com/cpburnz/python-pathspec/issues/53 .. _`Issue #54`: https://github.com/cpburnz/python-pathspec/issues/54 .. _`Issue #55`: https://github.com/cpburnz/python-pathspec/issues/55 -.. _`Issue #56`: https://github.com/cpburnz/python-pathspec/pull/56 +.. _`Pull #56`: https://github.com/cpburnz/python-pathspec/pull/56 .. _`Issue #57`: https://github.com/cpburnz/python-pathspec/issues/57 0.9.0 (2021-07-17) ------------------ -- `Issue #44`_/`Issue #50`_: Raise `GitWildMatchPatternError` for invalid git patterns. -- `Issue #45`_: Fix for duplicate leading double-asterisk, and edge cases. +- `Issue #44`_/`Pull #50`_: Raise `GitWildMatchPatternError` for invalid git patterns. +- `Pull #45`_: Fix for duplicate leading double-asterisk, and edge cases. - `Issue #46`_: Fix matching absolute paths. - API change: `util.normalize_files()` now returns a `Dict[str, List[pathlike]]` instead of a `Dict[str, pathlike]`. - Added type hinting. .. _`Issue #44`: https://github.com/cpburnz/python-pathspec/issues/44 -.. _`Issue #45`: https://github.com/cpburnz/python-pathspec/pull/45 +.. _`Pull #45`: https://github.com/cpburnz/python-pathspec/pull/45 .. _`Issue #46`: https://github.com/cpburnz/python-pathspec/issues/46 -.. _`Issue #50`: https://github.com/cpburnz/python-pathspec/pull/50 +.. _`Pull #50`: https://github.com/cpburnz/python-pathspec/pull/50 0.8.1 (2020-11-07) ------------------ -- `Issue #43`_: Add support for addition operator. +- `Pull #43`_: Add support for addition operator. -.. _`Issue #43`: https://github.com/cpburnz/python-pathspec/pull/43 +.. _`Pull #43`: https://github.com/cpburnz/python-pathspec/pull/43 0.8.0 (2020-04-09) @@ -314,23 +340,23 @@ 0.7.0 (2019-12-27) ------------------ -- `Issue #28`_: Add support for Python 3.8, and drop Python 3.4. -- `Issue #29`_: Publish bdist wheel. +- `Pull #28`_: Add support for Python 3.8, and drop Python 3.4. +- `Pull #29`_: Publish bdist wheel. -.. _`Issue #28`: https://github.com/cpburnz/python-pathspec/pull/28 -.. _`Issue #29`: https://github.com/cpburnz/python-pathspec/pull/29 +.. _`Pull #28`: https://github.com/cpburnz/python-pathspec/pull/28 +.. _`Pull #29`: https://github.com/cpburnz/python-pathspec/pull/29 0.6.0 (2019-10-03) ------------------ -- `Issue #24`_: Drop support for Python 2.6, 3.2, and 3.3. -- `Issue #25`_: Update README.rst. -- `Issue #26`_: Method to escape gitwildmatch. - -.. _`Issue #24`: https://github.com/cpburnz/python-pathspec/pull/24 -.. _`Issue #25`: https://github.com/cpburnz/python-pathspec/pull/25 -.. _`Issue #26`: https://github.com/cpburnz/python-pathspec/pull/26 +- `Pull #24`_: Drop support for Python 2.6, 3.2, and 3.3. +- `Pull #25`_: Update README.rst. +- `Pull #26`_: Method to escape gitwildmatch. + +.. _`Pull #24`: https://github.com/cpburnz/python-pathspec/pull/24 +.. _`Pull #25`: https://github.com/cpburnz/python-pathspec/pull/25 +.. _`Pull #26`: https://github.com/cpburnz/python-pathspec/pull/26 0.5.9 (2018-09-15) @@ -377,21 +403,21 @@ 0.5.4 (2017-09-09) ------------------ -- `Issue #17`_: Add link to Ruby implementation of *pathspec*. +- `Pull #17`_: Add link to Ruby implementation of *pathspec*. - Add sphinx documentation. -.. _`Issue #17`: https://github.com/cpburnz/python-pathspec/pull/17 +.. _`Pull #17`: https://github.com/cpburnz/python-pathspec/pull/17 0.5.3 (2017-07-01) ------------------ - `Issue #14`_: Fix byte strings for Python 3. -- `Issue #15`_: Include "LICENSE" in source package. +- `Pull #15`_: Include "LICENSE" in source package. - `Issue #16`_: Support Python 2.6. .. _`Issue #14`: https://github.com/cpburnz/python-pathspec/issues/14 -.. _`Issue #15`: https://github.com/cpburnz/python-pathspec/pull/15 +.. _`Pull #15`: https://github.com/cpburnz/python-pathspec/pull/15 .. _`Issue #16`: https://github.com/cpburnz/python-pathspec/issues/16 @@ -404,9 +430,9 @@ 0.5.1 (2017-04-04) ------------------ -- `Issue #13`_: Add equality methods to `PathSpec` and `RegexPattern`. +- `Pull #13`_: Add equality methods to `PathSpec` and `RegexPattern`. -.. _`Issue #13`: https://github.com/cpburnz/python-pathspec/pull/13 +.. _`Pull #13`: https://github.com/cpburnz/python-pathspec/pull/13 0.5.0 (2016-08-22) @@ -431,15 +457,15 @@ 0.3.4 (2015-08-24) ------------------ -- `Issue #7`_: Fixed non-recursive links. -- `Issue #8`_: Fixed edge cases in gitignore patterns. -- `Issue #9`_: Fixed minor usage documentation. +- `Pull #7`_: Fixed non-recursive links. +- `Pull #8`_: Fixed edge cases in gitignore patterns. +- `Pull #9`_: Fixed minor usage documentation. - Fixed recursion detection. - Fixed trivial incompatibility with Python 3.2. -.. _`Issue #7`: https://github.com/cpburnz/python-pathspec/pull/7 -.. _`Issue #8`: https://github.com/cpburnz/python-pathspec/pull/8 -.. _`Issue #9`: https://github.com/cpburnz/python-pathspec/pull/9 +.. _`Pull #7`: https://github.com/cpburnz/python-pathspec/pull/7 +.. _`Pull #8`: https://github.com/cpburnz/python-pathspec/pull/8 +.. _`Pull #9`: https://github.com/cpburnz/python-pathspec/pull/9 0.3.3 (2014-11-21) @@ -451,12 +477,12 @@ 0.3.2 (2014-11-08) ------------------ -- `Issue #5`_: Use tox for testing. +- `Pull #5`_: Use tox for testing. - `Issue #6`_: Fixed matching Windows paths. - Improved documentation. - API change: `spec.match_tree()` and `spec.match_files()` now return iterators instead of sets. -.. _`Issue #5`: https://github.com/cpburnz/python-pathspec/pull/5 +.. _`Pull #5`: https://github.com/cpburnz/python-pathspec/pull/5 .. _`Issue #6`: https://github.com/cpburnz/python-pathspec/issues/6 @@ -469,12 +495,12 @@ 0.3.0 (2014-09-17) ------------------ -- `Issue #3`_: Fixed trailing slash in gitignore patterns. -- `Issue #4`_: Fixed test for trailing slash in gitignore patterns. +- `Pull #3`_: Fixed trailing slash in gitignore patterns. +- `Pull #4`_: Fixed test for trailing slash in gitignore patterns. - Added registered patterns. -.. _`Issue #3`: https://github.com/cpburnz/python-pathspec/pull/3 -.. _`Issue #4`: https://github.com/cpburnz/python-pathspec/pull/4 +.. _`Pull #3`: https://github.com/cpburnz/python-pathspec/pull/3 +.. _`Pull #4`: https://github.com/cpburnz/python-pathspec/pull/4 0.2.2 (2013-12-17) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/pathspec/__init__.py new/pathspec-0.10.3/pathspec/__init__.py --- old/pathspec-0.10.2/pathspec/__init__.py 2022-08-31 04:30:13.000000000 +0200 +++ new/pathspec-0.10.3/pathspec/__init__.py 2022-12-06 05:10:10.000000000 +0100 @@ -6,27 +6,27 @@ The following classes are imported and made available from the root of the `pathspec` package: -- :class:`pathspec.gitignore.GitIgnoreSpec` +- :class:`pathspec.gitignore.GitIgnoreSpec` -- :class:`pathspec.pathspec.PathSpec` +- :class:`pathspec.pathspec.PathSpec` -- :class:`pathspec.pattern.Pattern` +- :class:`pathspec.pattern.Pattern` -- :class:`pathspec.pattern.RegexPattern` +- :class:`pathspec.pattern.RegexPattern` -- :class:`pathspec.util.RecursionError` +- :class:`pathspec.util.RecursionError` The following functions are also imported: -- :func:`pathspec.util.lookup_pattern` +- :func:`pathspec.util.lookup_pattern` The following deprecated functions are also imported to maintain backward compatibility: -- :func:`pathspec.util.iter_tree` which is an alias for - :func:`pathspec.util.iter_tree_files`. +- :func:`pathspec.util.iter_tree` which is an alias for + :func:`pathspec.util.iter_tree_files`. -- :func:`pathspec.util.match_files` +- :func:`pathspec.util.match_files` """ from .gitignore import ( @@ -53,6 +53,24 @@ # Load pattern implementations. from . import patterns -# Expose `GitIgnorePattern` class in the root module for backward -# compatibility with v0.4. +# DEPRECATED: Expose the `GitIgnorePattern` class in the root module for +# backward compatibility with v0.4. from .patterns.gitwildmatch import GitIgnorePattern + +# Declare private imports as part of the public interface. Deprecated +# imports are deliberately excluded. +__all__ = [ + 'GitIgnoreSpec', + 'PathSpec', + 'Pattern', + 'RecursionError', + 'RegexPattern', + '__author__', + '__copyright__', + '__credits__', + '__license__', + '__version__', + 'iter_tree', + 'lookup_pattern', + 'match_files', +] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/pathspec/_meta.py new/pathspec-0.10.3/pathspec/_meta.py --- old/pathspec-0.10.2/pathspec/_meta.py 2022-11-13 04:33:03.000000000 +0100 +++ new/pathspec-0.10.3/pathspec/_meta.py 2022-12-10 05:44:56.000000000 +0100 @@ -47,6 +47,8 @@ "mgorny <https://github.com/mgorny>", "bzakdd <https://github.com/bzakdd>", "haimat <https://github.com/haimat>", + "Avasam <https://github.com/Avasam>", + "yschroeder <https://github.com/yschroeder>", ] __license__ = "MPL 2.0" -__version__ = "0.10.2" +__version__ = "0.10.3" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/pathspec/gitignore.py new/pathspec-0.10.3/pathspec/gitignore.py --- old/pathspec-0.10.2/pathspec/gitignore.py 2022-11-12 17:34:39.000000000 +0100 +++ new/pathspec-0.10.3/pathspec/gitignore.py 2022-12-03 15:19:34.000000000 +0100 @@ -8,7 +8,8 @@ Callable, Collection, Iterable, - TYPE_CHECKING, + Type, + TypeVar, Union) from .pathspec import ( @@ -22,6 +23,12 @@ from .util import ( _is_iterable) +Self = TypeVar("Self", bound="GitIgnoreSpec") +""" +:class:`GitIgnoreSpec` self type hint to support Python v<3.11 using PEP +673 recommendation. +""" + class GitIgnoreSpec(PathSpec): """ @@ -29,7 +36,7 @@ replicate *.gitignore* behavior. """ - def __eq__(self, other: 'Self') -> bool: + def __eq__(self, other: object) -> bool: """ Tests the equality of this gitignore-spec with *other* (:class:`GitIgnoreSpec`) by comparing their :attr:`~PathSpec.patterns` @@ -44,10 +51,10 @@ @classmethod def from_lines( - cls, + cls: Type[Self], lines: Iterable[AnyStr], pattern_factory: Union[str, Callable[[AnyStr], Pattern], None] = None, - ) -> 'Self': + ) -> Self: """ Compiles the pattern lines. @@ -126,13 +133,3 @@ out_priority = priority return out_matched - - -if TYPE_CHECKING: - try: - from typing import Self - except ImportError: - try: - from typing_extensions import Self - except ImportError: - Self = GitIgnoreSpec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/pathspec/pathspec.py new/pathspec-0.10.3/pathspec/pathspec.py --- old/pathspec-0.10.2/pathspec/pathspec.py 2022-09-08 02:08:58.000000000 +0200 +++ new/pathspec-0.10.3/pathspec/pathspec.py 2022-12-03 15:46:23.000000000 +0100 @@ -16,7 +16,8 @@ Iterable, Iterator, Optional, - TYPE_CHECKING, + Type, + TypeVar, Union) from . import util @@ -29,6 +30,12 @@ match_file, normalize_file) +Self = TypeVar("Self", bound="PathSpec") +""" +:class:`PathSpec` self type hint to support Python v<3.11 using PEP 673 +recommendation. +""" + class PathSpec(object): """ @@ -50,7 +57,7 @@ contains the compiled patterns. """ - def __eq__(self, other: 'Self') -> bool: + def __eq__(self, other: object) -> bool: """ Tests the equality of this path-spec with *other* (:class:`PathSpec`) by comparing their :attr:`~PathSpec.patterns` attributes. @@ -68,7 +75,7 @@ """ return len(self.patterns) - def __add__(self, other: 'Self') -> 'Self': + def __add__(self: Self, other: "PathSpec") -> Self: """ Combines the :attr:`Pathspec.patterns` patterns from two :class:`PathSpec` instances. @@ -78,7 +85,7 @@ else: return NotImplemented - def __iadd__(self, other: 'Self') -> 'Self': + def __iadd__(self: Self, other: "PathSpec") -> Self: """ Adds the :attr:`Pathspec.patterns` patterns from one :class:`PathSpec` instance to this instance. @@ -91,10 +98,10 @@ @classmethod def from_lines( - cls, + cls: Type[Self], pattern_factory: Union[str, Callable[[AnyStr], Pattern]], lines: Iterable[AnyStr], - ) -> 'Self': + ) -> Self: """ Compiles the pattern lines. @@ -261,13 +268,3 @@ # Alias `match_tree_files()` as `match_tree()` for backward # compatibility before v0.3.2. match_tree = match_tree_files - - -if TYPE_CHECKING: - try: - from typing import Self - except ImportError: - try: - from typing_extensions import Self - except ImportError: - Self = PathSpec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/pathspec/patterns/__init__.py new/pathspec-0.10.3/pathspec/patterns/__init__.py --- old/pathspec-0.10.2/pathspec/patterns/__init__.py 2020-01-29 03:45:39.000000000 +0100 +++ new/pathspec-0.10.3/pathspec/patterns/__init__.py 2022-12-06 05:09:13.000000000 +0100 @@ -1,8 +1,11 @@ -# encoding: utf-8 """ The *pathspec.patterns* package contains the pattern matching implementations. """ # Load pattern implementations. +from . import gitwildmatch + +# DEPRECATED: Expose the `GitWildMatchPattern` class in this module for +# backward compatibility with v0.5. from .gitwildmatch import GitWildMatchPattern diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/pathspec/py.typed new/pathspec-0.10.3/pathspec/py.typed --- old/pathspec-0.10.2/pathspec/py.typed 1970-01-01 01:00:00.000000000 +0100 +++ new/pathspec-0.10.3/pathspec/py.typed 2022-12-01 14:52:47.000000000 +0100 @@ -0,0 +1 @@ +# Marker file for PEP 561. The pathspec package uses inline types. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/pathspec/util.py new/pathspec-0.10.3/pathspec/util.py --- old/pathspec-0.10.2/pathspec/util.py 2022-09-08 02:01:52.000000000 +0200 +++ new/pathspec-0.10.3/pathspec/util.py 2022-12-10 05:22:21.000000000 +0100 @@ -4,6 +4,7 @@ import os import os.path +import pathlib import posixpath import stat import warnings @@ -48,6 +49,24 @@ """ +def append_dir_sep(path: pathlib.Path) -> str: + """ + Appends the path separator to the path if the path is a directory. + This can be used to aid in distinguishing between directories and + files on the file-system by relying on the presence of a trailing path + separator. + + *path* (:class:`pathlib.path`) is the path to use. + + Returns the path (:class:`str`). + """ + str_path = str(path) + if path.is_dir(): + str_path += os.sep + + return str_path + + def detailed_match_files( patterns: Iterable[Pattern], files: Iterable[str], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/pathspec.egg-info/PKG-INFO new/pathspec-0.10.3/pathspec.egg-info/PKG-INFO --- old/pathspec-0.10.2/pathspec.egg-info/PKG-INFO 2022-11-13 04:34:39.000000000 +0100 +++ new/pathspec-0.10.3/pathspec.egg-info/PKG-INFO 2022-12-10 05:48:58.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pathspec -Version: 0.10.2 +Version: 0.10.3 Summary: Utility library for gitignore style pattern matching of file paths. Home-page: https://github.com/cpburnz/python-pathspec Author: Caleb P. Burns @@ -202,6 +202,32 @@ ============== +0.10.3 (2022-12-09) +------------------- + +New features: + +- Added utility function `pathspec.util.append_dir_sep()` to aid in distinguishing between directories and files on the file-system. See `Issue #65`_. + +Bug fixes: + +- `Issue #66`_/`Pull #67`_: Package not marked as py.typed. +- `Issue #68`_: Exports are considered private. +- `Issue #70`_/`Pull #71`_: 'Self' string literal type is Unknown in pyright. + +Improvements: + +- `Issue #65`_: Checking directories via match_file() does not work on Path objects. + + +.. _`Issue #65`: https://github.com/cpburnz/python-pathspec/issues/65 +.. _`Issue #66`: https://github.com/cpburnz/python-pathspec/issues/66 +.. _`Pull #67`: https://github.com/cpburnz/python-pathspec/pull/67 +.. _`Issue #68`: https://github.com/cpburnz/python-pathspec/issues/68 +.. _`Issue #70`: https://github.com/cpburnz/python-pathspec/issues/70 +.. _`Pull #71`: https://github.com/cpburnz/python-pathspec/pull/71 + + 0.10.2 (2022-11-12) ------------------- @@ -216,10 +242,10 @@ Improvements: -- `Issue #58`_: CI: add GitHub Actions test workflow. +- `Pull #58`_: CI: add GitHub Actions test workflow. -.. _`Issue #58`: https://github.com/cpburnz/python-pathspec/pull/58 +.. _`Pull #58`: https://github.com/cpburnz/python-pathspec/pull/58 .. _`Issue #64`: https://github.com/cpburnz/python-pathspec/issues/64 @@ -229,7 +255,7 @@ Bug fixes: - Fix documentation on `pathspec.pattern.RegexPattern.match_file()`. -- `Issue #60`_: Remove redundant wheel dep from pyproject.toml. +- `Pull #60`_: Remove redundant wheel dep from pyproject.toml. - `Issue #61`_: Dist failure for Fedora, CentOS, EPEL. - `Issue #62`_: Since version 0.10.0 pure wildcard does not work in some cases. @@ -238,7 +264,7 @@ - Restore support for legacy installations using `setup.py`. See `Issue #61`_. -.. _`Issue #60`: https://github.com/cpburnz/python-pathspec/pull/60 +.. _`Pull #60`: https://github.com/cpburnz/python-pathspec/pull/60 .. _`Issue #61`: https://github.com/cpburnz/python-pathspec/issues/61 .. _`Issue #62`: https://github.com/cpburnz/python-pathspec/issues/62 @@ -272,11 +298,11 @@ - `Issue #19`_: Files inside an ignored sub-directory are not matched. - `Issue #41`_: Incorrectly (?) matches files inside directories that do match. -- `Issue #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility. +- `Pull #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility. - `Issue #53`_: Symlink pathspec_meta.py breaks Windows. - `Issue #54`_: test_util.py uses os.symlink which can fail on Windows. - `Issue #55`_: Backslashes at start of pattern not handled correctly. -- `Issue #56`_: pyproject.toml: include subpackages in setuptools config +- `Pull #56`_: pyproject.toml: include subpackages in setuptools config - `Issue #57`_: `!` doesn't exclude files in directories if the pattern doesn't have a trailing slash. Improvements: @@ -294,36 +320,36 @@ .. _`Issue #35`: https://github.com/cpburnz/python-pathspec/issues/35 .. _`Issue #41`: https://github.com/cpburnz/python-pathspec/issues/41 .. _`Issue #47`: https://github.com/cpburnz/python-pathspec/issues/47 -.. _`Issue #51`: https://github.com/cpburnz/python-pathspec/pull/51 +.. _`Pull #51`: https://github.com/cpburnz/python-pathspec/pull/51 .. _`Issue #52`: https://github.com/cpburnz/python-pathspec/issues/52 .. _`Issue #53`: https://github.com/cpburnz/python-pathspec/issues/53 .. _`Issue #54`: https://github.com/cpburnz/python-pathspec/issues/54 .. _`Issue #55`: https://github.com/cpburnz/python-pathspec/issues/55 -.. _`Issue #56`: https://github.com/cpburnz/python-pathspec/pull/56 +.. _`Pull #56`: https://github.com/cpburnz/python-pathspec/pull/56 .. _`Issue #57`: https://github.com/cpburnz/python-pathspec/issues/57 0.9.0 (2021-07-17) ------------------ -- `Issue #44`_/`Issue #50`_: Raise `GitWildMatchPatternError` for invalid git patterns. -- `Issue #45`_: Fix for duplicate leading double-asterisk, and edge cases. +- `Issue #44`_/`Pull #50`_: Raise `GitWildMatchPatternError` for invalid git patterns. +- `Pull #45`_: Fix for duplicate leading double-asterisk, and edge cases. - `Issue #46`_: Fix matching absolute paths. - API change: `util.normalize_files()` now returns a `Dict[str, List[pathlike]]` instead of a `Dict[str, pathlike]`. - Added type hinting. .. _`Issue #44`: https://github.com/cpburnz/python-pathspec/issues/44 -.. _`Issue #45`: https://github.com/cpburnz/python-pathspec/pull/45 +.. _`Pull #45`: https://github.com/cpburnz/python-pathspec/pull/45 .. _`Issue #46`: https://github.com/cpburnz/python-pathspec/issues/46 -.. _`Issue #50`: https://github.com/cpburnz/python-pathspec/pull/50 +.. _`Pull #50`: https://github.com/cpburnz/python-pathspec/pull/50 0.8.1 (2020-11-07) ------------------ -- `Issue #43`_: Add support for addition operator. +- `Pull #43`_: Add support for addition operator. -.. _`Issue #43`: https://github.com/cpburnz/python-pathspec/pull/43 +.. _`Pull #43`: https://github.com/cpburnz/python-pathspec/pull/43 0.8.0 (2020-04-09) @@ -344,23 +370,23 @@ 0.7.0 (2019-12-27) ------------------ -- `Issue #28`_: Add support for Python 3.8, and drop Python 3.4. -- `Issue #29`_: Publish bdist wheel. +- `Pull #28`_: Add support for Python 3.8, and drop Python 3.4. +- `Pull #29`_: Publish bdist wheel. -.. _`Issue #28`: https://github.com/cpburnz/python-pathspec/pull/28 -.. _`Issue #29`: https://github.com/cpburnz/python-pathspec/pull/29 +.. _`Pull #28`: https://github.com/cpburnz/python-pathspec/pull/28 +.. _`Pull #29`: https://github.com/cpburnz/python-pathspec/pull/29 0.6.0 (2019-10-03) ------------------ -- `Issue #24`_: Drop support for Python 2.6, 3.2, and 3.3. -- `Issue #25`_: Update README.rst. -- `Issue #26`_: Method to escape gitwildmatch. - -.. _`Issue #24`: https://github.com/cpburnz/python-pathspec/pull/24 -.. _`Issue #25`: https://github.com/cpburnz/python-pathspec/pull/25 -.. _`Issue #26`: https://github.com/cpburnz/python-pathspec/pull/26 +- `Pull #24`_: Drop support for Python 2.6, 3.2, and 3.3. +- `Pull #25`_: Update README.rst. +- `Pull #26`_: Method to escape gitwildmatch. + +.. _`Pull #24`: https://github.com/cpburnz/python-pathspec/pull/24 +.. _`Pull #25`: https://github.com/cpburnz/python-pathspec/pull/25 +.. _`Pull #26`: https://github.com/cpburnz/python-pathspec/pull/26 0.5.9 (2018-09-15) @@ -407,21 +433,21 @@ 0.5.4 (2017-09-09) ------------------ -- `Issue #17`_: Add link to Ruby implementation of *pathspec*. +- `Pull #17`_: Add link to Ruby implementation of *pathspec*. - Add sphinx documentation. -.. _`Issue #17`: https://github.com/cpburnz/python-pathspec/pull/17 +.. _`Pull #17`: https://github.com/cpburnz/python-pathspec/pull/17 0.5.3 (2017-07-01) ------------------ - `Issue #14`_: Fix byte strings for Python 3. -- `Issue #15`_: Include "LICENSE" in source package. +- `Pull #15`_: Include "LICENSE" in source package. - `Issue #16`_: Support Python 2.6. .. _`Issue #14`: https://github.com/cpburnz/python-pathspec/issues/14 -.. _`Issue #15`: https://github.com/cpburnz/python-pathspec/pull/15 +.. _`Pull #15`: https://github.com/cpburnz/python-pathspec/pull/15 .. _`Issue #16`: https://github.com/cpburnz/python-pathspec/issues/16 @@ -434,9 +460,9 @@ 0.5.1 (2017-04-04) ------------------ -- `Issue #13`_: Add equality methods to `PathSpec` and `RegexPattern`. +- `Pull #13`_: Add equality methods to `PathSpec` and `RegexPattern`. -.. _`Issue #13`: https://github.com/cpburnz/python-pathspec/pull/13 +.. _`Pull #13`: https://github.com/cpburnz/python-pathspec/pull/13 0.5.0 (2016-08-22) @@ -461,15 +487,15 @@ 0.3.4 (2015-08-24) ------------------ -- `Issue #7`_: Fixed non-recursive links. -- `Issue #8`_: Fixed edge cases in gitignore patterns. -- `Issue #9`_: Fixed minor usage documentation. +- `Pull #7`_: Fixed non-recursive links. +- `Pull #8`_: Fixed edge cases in gitignore patterns. +- `Pull #9`_: Fixed minor usage documentation. - Fixed recursion detection. - Fixed trivial incompatibility with Python 3.2. -.. _`Issue #7`: https://github.com/cpburnz/python-pathspec/pull/7 -.. _`Issue #8`: https://github.com/cpburnz/python-pathspec/pull/8 -.. _`Issue #9`: https://github.com/cpburnz/python-pathspec/pull/9 +.. _`Pull #7`: https://github.com/cpburnz/python-pathspec/pull/7 +.. _`Pull #8`: https://github.com/cpburnz/python-pathspec/pull/8 +.. _`Pull #9`: https://github.com/cpburnz/python-pathspec/pull/9 0.3.3 (2014-11-21) @@ -481,12 +507,12 @@ 0.3.2 (2014-11-08) ------------------ -- `Issue #5`_: Use tox for testing. +- `Pull #5`_: Use tox for testing. - `Issue #6`_: Fixed matching Windows paths. - Improved documentation. - API change: `spec.match_tree()` and `spec.match_files()` now return iterators instead of sets. -.. _`Issue #5`: https://github.com/cpburnz/python-pathspec/pull/5 +.. _`Pull #5`: https://github.com/cpburnz/python-pathspec/pull/5 .. _`Issue #6`: https://github.com/cpburnz/python-pathspec/issues/6 @@ -499,12 +525,12 @@ 0.3.0 (2014-09-17) ------------------ -- `Issue #3`_: Fixed trailing slash in gitignore patterns. -- `Issue #4`_: Fixed test for trailing slash in gitignore patterns. +- `Pull #3`_: Fixed trailing slash in gitignore patterns. +- `Pull #4`_: Fixed test for trailing slash in gitignore patterns. - Added registered patterns. -.. _`Issue #3`: https://github.com/cpburnz/python-pathspec/pull/3 -.. _`Issue #4`: https://github.com/cpburnz/python-pathspec/pull/4 +.. _`Pull #3`: https://github.com/cpburnz/python-pathspec/pull/3 +.. _`Pull #4`: https://github.com/cpburnz/python-pathspec/pull/4 0.2.2 (2013-12-17) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pathspec-0.10.2/pathspec.egg-info/SOURCES.txt new/pathspec-0.10.3/pathspec.egg-info/SOURCES.txt --- old/pathspec-0.10.2/pathspec.egg-info/SOURCES.txt 2022-11-13 04:34:39.000000000 +0100 +++ new/pathspec-0.10.3/pathspec.egg-info/SOURCES.txt 2022-12-10 05:48:58.000000000 +0100 @@ -19,6 +19,7 @@ pathspec/gitignore.py pathspec/pathspec.py pathspec/pattern.py +pathspec/py.typed pathspec/util.py pathspec.egg-info/PKG-INFO pathspec.egg-info/SOURCES.txt