pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-wcmatch



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Nov 13 09:47:03 UTC 2026

Modified Files:
        pkgsrc/textproc/py-wcmatch: Makefile distinfo

Log Message:
py-wcmatch: updated to 12.0.1

12.0.1

-   **FIX**: Require `bracex` 3.2.2 for bug fixes.
-   **FIX**: Fix a non-terminal globstar consuming the final filename when the following extended group can match
    nothing, e.g. `**/?(a)` matching `b`. This also affects the implicit globstar used by `MATCHBASE` and
    `pathlib.match`.
-   **FIX**: Fix `globmatch` with `REALPATH` rejecting a symlinked file when it is matched by a trailing `**`
    (e.g. `**` or `dir/**`), disagreeing with `glob` and Bash, which both return such files.
-   **FIX**: Preserve directory symlink traversal when collapsing adjacent `**` and `***` components with
    `GLOBSTARLONG`, regardless of their order.

12.0

-   **BREAK**: Various fixes to `!(...)` patterns to more closely align to Bash. 100% Bash behavior is impossible with
    regular expression, but behavior in many ways was improved, but there may be some surprising behavior changes.

    -   **FIX**: Fix an `EXTGLOB`/`EXTMATCH` inverse group, `!(...)`, inside another group ignoring the rest of its
        alternative and the text that follows the group, e.g. `@(!(a)b)` and `@(x|!(a))b` matched `ab`. They now follow
        the same rule as inverse groups that are not in a group. Inside `+(...)` and `*(...)` groups, the rest is the
        remainder of the alternative and the text after the loop. The rest of the alternative was ignored since 7.0.1,
        and the text after the group since 2.2.1.
    -   **FIX**: Fix an `EXTGLOB`/`EXTMATCH` inverse group, `!(...)`, inside another inverse group not ending where the
        text consumed by the outer group ends, e.g. `!(!(a)|b)` matched `aa` and `!(a!(b))` matched `aba`. This also
        caused `translate()` with `CAPTURE` to match differently than without it for these patterns. This was a
        regression in 7.0.1.
    -   **FIX**: An `EXTGLOB`/`EXTMATCH` inverse group, `!(...)`, whose patterns can only match text up to some length,
        e.g. `!(foo)`, `!(a|bc)`, or `!(?(a)b)`, now matches any other text, whatever follows it, as it does in Bash.
        For instance, `!(foo)*.txt` now matches `foo.txt` and `foobar.txt`, `!(a)*` matches `a`, and `+(!(foo))` matches
        `foo`. Inverse groups with patterns that can match text of any length, e.g. `!(*.js)`, still need to know what
        follows them and behave as before. Inverse groups inside other inverse groups follow the same rules, e.g.
        `!(!(a)|b)*` matches `a` and `ab`, `!(!(a)*)` matches nothing, and `!(a!(b)*)` no longer matches `ab`.
    -   **FIX**: An `EXTGLOB`/`EXTMATCH` inverse group, `!(...)`, whose patterns cannot match nothing can now match
        nothing whenever the rest of the pattern matches, as it does in Bash, even when its patterns can match text of
        any length. For instance, `!(*.js)*` and `!(a*)*` now match any name (following dot rules), where
        `!(*.js)*` rejected `a.js` and `a.json`.

-   **BREAK**: Match Bash logic such that `@(*|.a).b` can match `.b` in an extended pattern if the pattern contains an
    explicit leading `.` in one of the alternatives exists. In this scenario, `*` is allowed to match nothing before
    `.b`, but `*` won't physically match the `.`.
-   **NEW**: Generate tighter regular expressions with the same behavior.
-   **FIX**: A leading `*` can no longer match nothing so that a literal dot can match the leading dot of a file name,
    e.g. `*.env` no longer matches `.env` unless `DOTGLOB`/`DOTMATCH` is enabled. This agrees with Bash, Python's
    `glob`, and `fnmatch`, which already behaved this way. Use `.*env` to explicitly match hidden names.
-   **FIX**: Fix `glob` and `iglob` missing a file name without a directory part, e.g. `a.txt`, when `dir_fd` is file
    descriptor `0`, which a directory can get when it is opened while standard input is closed.
-   **FIX**: Fix `WcMatch` returning a file after `kill` is called from a directory validation hook or its error
    handler.
-   **FIX**: Preserve bare drive roots such as `D:` in `WcMatch` on Windows, so searches use that drive's current
    directory instead of its root directory.
-   **FIX**: Fix a `?` or bracket expression after a leading `*` matching the leading dot of a file name, e.g. `*?a`
    matching `.a`.
-   **FIX**: Fix a wildcard in an `EXTGLOB`/`EXTMATCH` group, such as `?(old-)@(*)`, matching the leading dot of a file
    name when the text before it, e.g. an optional group or the start of another group slot, matched nothing. Wildcards
    in later iterations of a repeated group, e.g. `+(.?|*)` and `.a.`, are no longer wrongly restricted.
-   **FIX**: Fix an `EXTGLOB`/`EXTMATCH` `@(...)` or `+(...)` group that can match nothing, e.g. `@(?(a))`,
    `+(*(a))` or `@(a|?(b))`, letting a literal dot after it match the leading dot of a file name, e.g.
    `@(?(a)).hidden` matching `.hidden`. Such a group must match something, so it can no longer be skipped to reach
    the dot, as in Bash, unless `DOTGLOB`/`DOTMATCH` is enabled or an alternative starts with a dot.
-   **FIX**: Fix a `?` or bracket expression at the start of a repeated `EXTGLOB` group matching a path separator in
    `globmatch` and related functions, e.g. `+(?)` matching `a/b`. This was a regression in 11.0.1.
-   **FIX**: Fix an `EXTGLOB`/`EXTMATCH` group that is simplified to a different group type, e.g. `@(+(b))` or
    `@(!(b))`, losing its meaning when it is then reduced into its parent group. Repeats and negations were dropped,
    e.g. `@(a|@(!(b)))` matched `b` and not `c`, and `!(@(+(a)))` matched `aa`. This was a regression in 11.0.
-   **FIX**: Preserve byte file names when globbing with `dir_fd`, including names requiring surrogate escaping.
-   **FIX**: Use the same case-insensitive matching for literal and wildcard path components in `glob` and `iglob`,
    including Unicode case equivalences.
-   **FIX**: Preserve a terminal directory separator after `GLOBSTAR` patterns in `globmatch`, `globfilter`, and
    translated patterns. Patterns such as `**/` and `dir/**/` no longer match regular files.
-   **FIX**: Require the literal prefix of recursive `glob` and `iglob` patterns such as `file/**` to name a directory.
-   **FIX**: Count duplicate exclusion expansions toward the shared pattern limit in compiled matchers and translation.
-   **FIX**: Treat an empty `root_dir` (`''` or `b''`) as the current directory in `glob` and `iglob`, including when
    the directory is selected with `dir_fd`.
-   **FIX**: Fix `glob` and `iglob` returning synthetic `.` and `..` matches with `SCANDOTDIR` when a directory
    cannot be opened for scanning.
-   **FIX**: Require `bracex` 3.2.1 which contains a number of brace related bug fixes.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/textproc/py-wcmatch/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/textproc/py-wcmatch/distinfo

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

Modified files:

Index: pkgsrc/textproc/py-wcmatch/Makefile
diff -u pkgsrc/textproc/py-wcmatch/Makefile:1.20 pkgsrc/textproc/py-wcmatch/Makefile:1.21
--- pkgsrc/textproc/py-wcmatch/Makefile:1.20    Thu Oct 22 14:22:07 2026
+++ pkgsrc/textproc/py-wcmatch/Makefile Fri Nov 13 09:47:02 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2026/10/22 14:22:07 adam Exp $
+# $NetBSD: Makefile,v 1.21 2026/11/13 09:47:02 adam Exp $
 
-DISTNAME=      wcmatch-11.2
+DISTNAME=      wcmatch-12.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/wcmatch/}
@@ -11,7 +11,7 @@ COMMENT=      Wildcard/glob file name matcher
 LICENSE=       mit
 
 TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=0.21.1:../../devel/py-hatchling
-DEPENDS+=      ${PYPKGPREFIX}-bracex>=3.2:../../textproc/py-bracex
+DEPENDS+=      ${PYPKGPREFIX}-bracex>=3.2.2:../../textproc/py-bracex
 
 USE_LANGUAGES= # none
 

Index: pkgsrc/textproc/py-wcmatch/distinfo
diff -u pkgsrc/textproc/py-wcmatch/distinfo:1.18 pkgsrc/textproc/py-wcmatch/distinfo:1.19
--- pkgsrc/textproc/py-wcmatch/distinfo:1.18    Thu Oct 22 14:22:07 2026
+++ pkgsrc/textproc/py-wcmatch/distinfo Fri Nov 13 09:47:02 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2026/10/22 14:22:07 adam Exp $
+$NetBSD: distinfo,v 1.19 2026/11/13 09:47:02 adam Exp $
 
-BLAKE2s (wcmatch-11.2.tar.gz) = 08bf4758073a86a8388e4177f02082e3a2ac1cf6912aaf15546b18475de442ae
-SHA512 (wcmatch-11.2.tar.gz) = 947dcfd8d371ab7c7acaaa55e4252690ae17f688bec27a9cf10eb5b9ea05ce405b70b6d75f46a9e2bd7d90f38e8ee806884c2e4850d0a60f9f6304a347f2722e
-Size (wcmatch-11.2.tar.gz) = 134939 bytes
+BLAKE2s (wcmatch-12.0.1.tar.gz) = b4d2f81e37b897d5c5ac48ad7774574e3a6ed1d3b7bc32780f3b81bc6e9262aa
+SHA512 (wcmatch-12.0.1.tar.gz) = cffa0eb2aad97e3577269fad6ddeb4230cfca6171806bcaf4efd8a283da75ec9d08774554328e2d38ba377dcea802a0477f2128824a78318b5e1e5e751ee82e7
+Size (wcmatch-12.0.1.tar.gz) = 163680 bytes



Home | Main Index | Thread Index | Old Index