From 8916b06777242eb6f5032346ea70f43a7641ce4f8e5c657588411a9671247e04 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 14 Sep 2022 15:50:45 +0000 Subject: [PATCH] Accepting request 1003385 from home:benoit_monin:branches:devel:languages:python - update to 0.10.1 - add BuildRequires for python >= 3.7 OBS-URL: https://build.opensuse.org/request/show/1003385 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=18 --- pathspec-0.10.1.tar.gz | 3 ++ pathspec-0.9.0.tar.gz | 3 -- python-pathspec.changes | 62 +++++++++++++++++++++++++++++++++++++++++ python-pathspec.spec | 3 +- 4 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 pathspec-0.10.1.tar.gz delete mode 100644 pathspec-0.9.0.tar.gz diff --git a/pathspec-0.10.1.tar.gz b/pathspec-0.10.1.tar.gz new file mode 100644 index 0000000..f0121bd --- /dev/null +++ b/pathspec-0.10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ace6161b621d31e7902eb6b5ae148d12cfd23f4a249b9ffb6b9fee12084323d +size 43155 diff --git a/pathspec-0.9.0.tar.gz b/pathspec-0.9.0.tar.gz deleted file mode 100644 index f904eb7..0000000 --- a/pathspec-0.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1 -size 29483 diff --git a/python-pathspec.changes b/python-pathspec.changes index 1726110..410a53d 100644 --- a/python-pathspec.changes +++ b/python-pathspec.changes @@ -1,3 +1,65 @@ +------------------------------------------------------------------- +Mon Sep 12 20:36:41 UTC 2022 - Benoît Monin + +- update to 0.10.1: + * Bug fixes: + + Fix documentation on pathspec.pattern.RegexPattern.match_file(). + + Issue #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. + * Improvements: + + Restore support for legacy installations using setup.py. See + Issue #61. +- additional changes from 0.10.0: + * Major changes: + + Dropped support of EOL Python 2.7, 3.5, 3.6. See Issue #47 + + The gitwildmatch pattern dir/* is now handled the same as + dir/ + + Added pathspec.GitIgnoreSpec class (see new features) + + Changed build system to pyproject.toml and build backend to + setuptools.build_meta which may have unforeseen consequences + + Renamed GitHub project from python-path-specification to + python-pathspec. See Issue #35. + * API changes: + + Deprecated: pathspec.util.match_files() is an old function no + longer used. + + Deprecated: pathspec.match_files() is an old function no + longer used. + + Deprecated: pathspec.util.normalize_files() is no longer used + + Deprecated: pathspec.util.iter_tree() is an alias for + pathspec.util.iter_tree_files(). + + Deprecated: pathspec.iter_tree() is an alias for + pathspec.util.iter_tree_files(). + + Deprecated: pathspec.pattern.Pattern.match() is no longer + used. Use or implement pathspec.pattern.Pattern.match_file(). + * New features: + + Added class pathspec.gitignore.GitIgnoreSpec (with alias + pathspec.GitIgnoreSpec) to implement gitignore behavior not + possible with standard PathSpec class + * Bug fixes: + + 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. + + 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 + + Issue #57: ! doesn't exclude files in directories if the + pattern doesn't have a trailing slash. + * Improvements: + + Support Python 3.10, 3.11. + + Modernize code to Python 3.7. + + Issue #52: match_files() is not a pure generator function, + and it impacts tree_*() gravely. +- add BuildRequires for python >= 3.7 + ------------------------------------------------------------------- Wed Jan 5 10:29:55 UTC 2022 - Dirk Müller diff --git a/python-pathspec.spec b/python-pathspec.spec index 7a58b4c..16f64d9 100644 --- a/python-pathspec.spec +++ b/python-pathspec.spec @@ -18,12 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pathspec -Version: 0.9.0 +Version: 0.10.1 Release: 0 Summary: Utility library for gitignore style pattern matching of file paths License: MPL-2.0 URL: https://github.com/cpburnz/python-path-specification Source: https://files.pythonhosted.org/packages/source/p/pathspec/pathspec-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros