./devel/py-pathspec, Utility library for gitignore style pattern matching of file paths

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.12.1nb1, Package name: py312-pathspec-0.12.1nb1, Maintainer: pkgsrc-users

pathspec is a utility library for pattern matching of file paths. So far this
only includes Git's wildmatch pattern matching which itself is derived from
Rsync's wildmatch. Git uses wildmatch for its gitignore files.


Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 49.847 KB

Version history: (Expand)


CVS history: (Expand)


   2025-02-23 19:37:07 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-pathspec: require new flit_core
   2025-02-23 19:27:27 by Thomas Klausner | Files touched by this commit (2)
Log message:
py-pathspec: adapt for flit_core 3.11

Bump PKGREVISION.
   2023-12-11 12:01:45 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pathspec: updated to 0.12.1

0.12.1 (2023-12-10)

Bug fixes:
- PathSpec.match_file() returns None since 0.12.0.
   2023-12-11 10:59:52 by Thomas Klausner | Files touched by this commit (3) | Package updated
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
   2023-07-30 09:56:50 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pathspec: updated to 0.11.2

0.11.2 (2023-07-28)

New features:
- match_files with negated path spec. `pathspec.PathSpec.match_*()` now have a \ 
`negate` parameter to make using *.gitignore* logic easier and more efficient.

Bug fixes:
- Add edge case: patterns that end with an escaped space
- Negate with caret symbol as with the exclamation mark.
   2023-03-15 13:58:51 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pathspec: updated to 0.11.1

0.11.1 (2023-03-14)

Bug fixes:
- Include directory should override exclude file.

Improvements:
- Fix partially unknown PathLike type.
- Convert `os.PathLike` to a string properly using `os.fspath`.
   2023-03-09 08:41:18 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pathspec: updated to 0.11.0

0.11.0

Major changes:
- Changed build backend to `flit_core.buildapi`_ from `setuptools.build_meta`_. \ 
Building with `setuptools` through `setup.py` is still supported for \ 
distributions that need it.

Improvements:
- Please consider switching the build-system to flit_core to ease setuptools \ 
bootstrap.
   2022-12-12 14:44:59 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-pathspec: updated to 0.10.3

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.

Bug fixes:
- Package not marked as py.typed.
- Exports are considered private.
- 'Self' string literal type is Unknown in pyright.

Improvements:
- Checking directories via match_file() does not work on Path objects.