forked from pool/python-pathspec
Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 67c94fd8f4 |
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -1,4 +1,4 @@
|
|||||||
## Default LFS
|
*.changes merge=merge-changes
|
||||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
*.png filter=lfs diff=lfs merge=lfs -text
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1 +1,4 @@
|
|||||||
.osc
|
*.obscpio
|
||||||
|
*.osc
|
||||||
|
_build.*
|
||||||
|
.pbuild
|
||||||
|
|||||||
BIN
pathspec-0.12.1.tar.gz
LFS
BIN
pathspec-0.12.1.tar.gz
LFS
Binary file not shown.
BIN
pathspec-1.0.4.tar.gz
LFS
Normal file
BIN
pathspec-1.0.4.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,105 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 9 11:10:52 UTC 2026 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Add pythons_for_pypi macro. This macro will help to build the python
|
||||||
|
minimal stack for different python versions.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 3 03:42:05 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.0.4:
|
||||||
|
* Using re2 fails if pyre2 is also installed.
|
||||||
|
- Remove unneeded BuildRequires on setuptools.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 16 06:46:33 UTC 2026 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||||
|
|
||||||
|
- update to 1.0.3:
|
||||||
|
* Bug fixes:
|
||||||
|
- Issue #101: pyright strict errors with pathspec >= 1.0.0.
|
||||||
|
- Issue #102: No module named 'tomllib'.
|
||||||
|
* - update to 1.0.2:
|
||||||
|
* Bug fixes:
|
||||||
|
- Type hint collections.abc.Callable does not properly replace
|
||||||
|
typing.Callable until Python 3.9.2.
|
||||||
|
* - update to 1.0.1:
|
||||||
|
* Bug fixes:
|
||||||
|
- Issue #100: ValueError(f"{patterns=!r} cannot be empty.")
|
||||||
|
when using black.
|
||||||
|
* - update to 1.0.0:
|
||||||
|
* Major changes:
|
||||||
|
- Issue #91: Dropped support of EoL Python 3.8.
|
||||||
|
- Added concept of backends to allow for faster regular
|
||||||
|
expression matching. The backend can be controlled using the
|
||||||
|
backend argument to PathSpec(), PathSpec.from_lines(),
|
||||||
|
GitIgnoreSpec(), and GitIgnoreSpec.from_lines().
|
||||||
|
- Renamed "gitwildmatch" pattern back to "gitignore". The
|
||||||
|
"gitignore" pattern behaves slightly differently when used
|
||||||
|
with PathSpec (gitignore as documented) than with
|
||||||
|
GitIgnoreSpec (replicates Git's edge cases).
|
||||||
|
* API changes:
|
||||||
|
- Breaking: protected method
|
||||||
|
pathspec.pathspec.PathSpec._match_file() (with a leading
|
||||||
|
underscore) has been removed and replaced by backends. This
|
||||||
|
does not affect normal usage of PathSpec or GitIgnoreSpec.
|
||||||
|
Only custom subclasses will be affected. If this breaks your
|
||||||
|
usage, let me know by opening an issue.
|
||||||
|
- Deprecated: "gitwildmatch" is now an alias for "gitignore".
|
||||||
|
- Deprecated: pathspec.patterns.GitWildMatchPattern is now an
|
||||||
|
alias for
|
||||||
|
pathspec.patterns.gitignore.spec.GitIgnoreSpecPattern.
|
||||||
|
- Deprecated: pathspec.patterns.gitwildmatch module has been
|
||||||
|
replaced by the pathspec.patterns.gitignore package.
|
||||||
|
- Deprecated:
|
||||||
|
pathspec.patterns.gitwildmatch.GitWildMatchPattern is now an
|
||||||
|
alias for
|
||||||
|
pathspec.patterns.gitignore.spec.GitIgnoreSpecPattern.
|
||||||
|
- Deprecated:
|
||||||
|
pathspec.patterns.gitwildmatch.GitWildMatchPatternError is
|
||||||
|
now an alias for
|
||||||
|
pathspec.patterns.gitignore.GitIgnorePatternError.
|
||||||
|
- Removed: pathspec.patterns.gitwildmatch.GitIgnorePattern has
|
||||||
|
been deprecated since v0.4 (2016-07-15).
|
||||||
|
- Signature of method
|
||||||
|
pathspec.pattern.RegexPattern.match_file() has been changed
|
||||||
|
from def match_file(self, file: str) -> RegexMatchResult |
|
||||||
|
None to def match_file(self, file: AnyStr) ->
|
||||||
|
RegexMatchResult | None to reflect usage.
|
||||||
|
- Signature of class method
|
||||||
|
pathspec.pattern.RegexPattern.pattern_to_regex() has been
|
||||||
|
changed from def pattern_to_regex(cls, pattern: str) ->
|
||||||
|
tuple[str, bool] to def pattern_to_regex(cls, pattern:
|
||||||
|
AnyStr) -> tuple[AnyStr | None, bool | None] to reflect usage
|
||||||
|
and documentation.
|
||||||
|
* New features:
|
||||||
|
- Added optional "hyperscan" backend using hyperscan library.
|
||||||
|
It will automatically be used when installed. This dependency
|
||||||
|
can be installed with pip install 'pathspec[hyperscan]'.
|
||||||
|
- Added optional "re2" backend using the google-re2 library. It
|
||||||
|
will automatically be used when installed. This dependency
|
||||||
|
can be installed with pip install 'pathspec[re2]'.
|
||||||
|
- Added optional dependency on typing-extensions library to
|
||||||
|
improve some type hints.
|
||||||
|
* Bug fixes:
|
||||||
|
- Issue #93: Do not remove leading spaces.
|
||||||
|
- Issue #95: Matching for files inside folder does not seem to
|
||||||
|
behave like .gitignore's.
|
||||||
|
- Issue #98: UnboundLocalError in RegexPattern when initialized
|
||||||
|
with pattern=None.
|
||||||
|
- Type hint on return value of
|
||||||
|
pathspec.pattern.RegexPattern.match_file() to match
|
||||||
|
documentation.
|
||||||
|
* Improvements:
|
||||||
|
- Mark Python 3.13 and 3.14 as supported.
|
||||||
|
- No-op patterns are now filtered out when matching files,
|
||||||
|
slightly improving performance.
|
||||||
|
- Fix performance regression in iter_tree_files() from v0.10.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 3 09:05:14 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 12 13:14:15 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Tue Dec 12 13:14:15 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pathspec
|
# spec file for package python-pathspec
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2026 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,16 +16,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?pythons_for_pypi}
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pathspec
|
Name: python-pathspec
|
||||||
Version: 0.12.1
|
Version: 1.0.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Utility library for gitignore style pattern matching of file paths
|
Summary: Utility library for gitignore style pattern matching of file paths
|
||||||
License: MPL-2.0
|
License: MPL-2.0
|
||||||
URL: https://github.com/cpburnz/python-path-specification
|
URL: https://github.com/cpburnz/python-path-specification
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pathspec/pathspec-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pathspec/pathspec-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.9}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module flit-core}
|
||||||
|
BuildRequires: %{python_module packaging}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -41,10 +44,10 @@ files.
|
|||||||
%setup -q -n pathspec-%{version}
|
%setup -q -n pathspec-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -53,6 +56,7 @@ files.
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pathspec
|
||||||
|
%{python_sitelib}/pathspec-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user