1
0

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
This commit is contained in:
Matej Cepl 2022-09-14 15:50:45 +00:00 committed by Git OBS Bridge
parent ad55002a19
commit 8916b06777
4 changed files with 67 additions and 4 deletions

3
pathspec-0.10.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ace6161b621d31e7902eb6b5ae148d12cfd23f4a249b9ffb6b9fee12084323d
size 43155

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1
size 29483

View File

@ -1,3 +1,65 @@
-------------------------------------------------------------------
Mon Sep 12 20:36:41 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
- 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 <dmueller@suse.com>

View File

@ -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