From 5ed7264c75afd5cefa0e50061745ed00523d64055055da8ac4e9e6e4cda731b6 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 2 Jul 2025 13:24:23 +0000 Subject: [PATCH] Accepting request 1289950 from home:glaubitz:branches:devel:languages:python - Update to 10.1 * NEW: Drop support for Python 3.8 which is "end of life". * NEW: Add support for Python 3.14. * NEW: Add wcmatch.glob.compile(pattern) and wcmatch.fnmatch.compile(pattern) to allow for precompiled matcher objects that can be reused. OBS-URL: https://build.opensuse.org/request/show/1289950 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcmatch?expand=0&rev=16 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-wcmatch.changes | 78 ++++++++++++++++++++++++++++++++++++++++++ python-wcmatch.spec | 73 +++++++++++++++++++++++++++++++++++++++ wcmatch-10.0.tar.gz | 3 ++ wcmatch-10.1.tar.gz | 3 ++ wcmatch-8.5.2.tar.gz | 3 ++ 7 files changed, 184 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-wcmatch.changes create mode 100644 python-wcmatch.spec create mode 100644 wcmatch-10.0.tar.gz create mode 100644 wcmatch-10.1.tar.gz create mode 100644 wcmatch-8.5.2.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-wcmatch.changes b/python-wcmatch.changes new file mode 100644 index 0000000..facb742 --- /dev/null +++ b/python-wcmatch.changes @@ -0,0 +1,78 @@ +------------------------------------------------------------------- +Wed Jul 2 12:16:23 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 10.1 + * NEW: Drop support for Python 3.8 which is "end of life". + * NEW: Add support for Python 3.14. + * NEW: Add wcmatch.glob.compile(pattern) and wcmatch.fnmatch.compile(pattern) + to allow for precompiled matcher objects that can be reused. + +------------------------------------------------------------------- +Wed Nov 20 14:08:52 UTC 2024 - Johannes Kastl + +- update to 10.0: + * NEW: Added GLOBSTARLONG which adds support for the Zsh style + *** which acts like ** with GLOBSTAR but but traverses + symlinks. + * NEW: pathlib.match will respect symlink rules (when the + REALPATH flag is given). Hidden file rules will be respected at + all times. Enable DOTALL to match hidden files. + * NEW: Symlinks should not be traversed when GLOBSTAR is enabled + unless FOLLOW is also enabled, but they should still be + matched. Prior to this change, symlinks were not traversed and + they were ignored from matching which contradicts how Bash + works and could be confusing to users. + * FIX: Fix some inconsistencies with globmatch and symlink + handling when REALPATH is enabled. +- update to 9.0: + * NEW: Remove deprecated function glob.raw_escape. + * NEW: Officially support Python 3.13. + +------------------------------------------------------------------- +Mon Jun 10 08:27:22 UTC 2024 - Dirk Müller + +- update to 8.5.2: + * Fix `pathlib` issue with inheritance on Python + versions greater than 3.12. + * Fix `EXTMATCH` case with `!(...)` patterns. + +------------------------------------------------------------------- +Wed Mar 13 19:02:53 UTC 2024 - Dirk Müller + +- update to 8.5.1: + * Fix issue with type check failure in `wcmatch.glob`. + +------------------------------------------------------------------- +Tue Jan 2 21:47:43 UTC 2024 - Dirk Müller + +- update to 8.5: + * Formally support Python 3.11 (no change). + * Add support for Python 3.12 (`pathlib` changes). + * Drop Python 3.7 support. + * Fix handling of current directory when magic and + non-magic patterns are mixed in `glob` pattern list. + +------------------------------------------------------------------- +Fri May 5 10:40:25 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Mon Nov 21 10:22:07 UTC 2022 - Johannes Kastl + +- update to 8.4.1: + - FIX: Windows drive path separators should normalize like other path separators. + - FIX: Fix a Windows pattern parsing issue that caused absolute paths with ambiguous drives to not parse correctly. +- update to 8.4.0: + - NEW: Drop support for Python 3.6. + - NEW: Switch to Hatch backend instead of Setuptools. + - NEW: Add new exclude option to fnmatch, pathlib, and glob methods that allows exclusion patterns to be + specified directly without needing to enable NEGATE and prepend patterns with !. exclude accepts a separate + pattern or pattern list. exclude should not be used in conjunction with NEGATE. One or the other should be used. +- add _service file to easily download this +- change %build to use hatchling + +------------------------------------------------------------------- +Sun Jan 23 11:53:51 UTC 2022 - Sebastian Wagner + +- initial package for version 8.3. diff --git a/python-wcmatch.spec b/python-wcmatch.spec new file mode 100644 index 0000000..05aea4a --- /dev/null +++ b/python-wcmatch.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-wcmatch +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +%{?python_enable_dependency_generator} +Name: python-wcmatch +Version: 10.1 +Release: 0 +Summary: Wildcard/glob file name matcher +License: MIT +URL: https://github.com/facelessuser/wcmatch +Source: https://files.pythonhosted.org/packages/source/w/wcmatch/wcmatch-%{version}.tar.gz +BuildRequires: %{python_module base > 3.6} +BuildRequires: %{python_module bracex} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Wildcard Match provides an enhanced `fnmatch`, `glob`, and `pathlib` library in order to provide file matching and +globbing that more closely follows the features found in Bash. In some ways these libraries are similar to Python's +builtin libraries as they provide a similar interface to match, filter, and glob the file system. But they also include +a number of features found in Bash's globbing such as backslash escaping, brace expansion, extended glob pattern groups, +etc. They also add a number of new useful functions as well, such as `globmatch` which functions like `fnmatch`, but for +paths. + +Wildcard Match also adds a file search utility called `wcmatch` that is built on top of `fnmatch` and `globmatch`. It +was originally written for [Rummage](https://github.com/facelessuser/Rummage), but split out into this project to be +used by other projects that may find its approach useful. + +Bash is used as a guide when making decisions on behavior for `fnmatch` and `glob`. Behavior may differ from Bash +version to Bash version, but an attempt is made to keep Wildcard Match up with the latest relevant changes. With all of +this said, there may be a few corner cases in which we've intentionally chosen to not *exactly* mirror Bash. If an issue +is found where Wildcard Match seems to deviate in an illogical way, we'd love to hear about it in the +[issue tracker](https://github.com/facelessuser/wcmatch/issues). + +%prep +%setup -q -n wcmatch-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%{python_sitelib}/wcmatch +%{python_sitelib}/wcmatch-%{version}.dist-info + +%changelog diff --git a/wcmatch-10.0.tar.gz b/wcmatch-10.0.tar.gz new file mode 100644 index 0000000..61c68db --- /dev/null +++ b/wcmatch-10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e72f0de09bba6a04e0de70937b0cf06e55f36f37b3deb422dfaf854b867b840a +size 115578 diff --git a/wcmatch-10.1.tar.gz b/wcmatch-10.1.tar.gz new file mode 100644 index 0000000..f1cca00 --- /dev/null +++ b/wcmatch-10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f11f94208c8c8484a16f4f48638a85d771d9513f4ab3f37595978801cb9465af +size 117421 diff --git a/wcmatch-8.5.2.tar.gz b/wcmatch-8.5.2.tar.gz new file mode 100644 index 0000000..4c52711 --- /dev/null +++ b/wcmatch-8.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a70222b86dea82fb382dd87b73278c10756c138bd6f8f714e2183128887b9eb2 +size 114983