1
0
Commit Graph

32 Commits

Author SHA256 Message Date
Ana Guerrero
11ba307734 Accepting request 1132675 from devel:languages:python
- update to 0.12.1:
  * `Issue #84`_: PathSpec.match_file() returns None since
    0.12.0.
  * Major changes:
  * Dropped support of EOL Python 3.7. See `Pull #82`_.
  * API changes:
  * Signature of protected method
    `pathspec.pathspec.PathSpec._match_file()` (with a leading
    underscore) has been changed from `def _match_file(patterns:
    Iterable[Pattern], file: str) -> bool` to `def
    _match_file(patterns: Iterable[Tuple[int, Pattern]], file:
    str) -> Tuple[Optional[bool], Optional[int]]`.
  * Added `pathspec.pathspec.PathSpec.check_*()` methods. These
    methods behave similarly to `.match_*()` but return
    additional information in the `pathspec.util.CheckResult`
    objects (e.g., `CheckResult.index` indicates the index of the
    last pattern that matched the file).
  * Added `pathspec.pattern.RegexPattern.pattern` attribute which
    stores the original, uncompiled pattern.
  * Mark Python 3.12 as supported.
  * Improve test debugging.
  * Improve type hint on *on_error* parameter on
    `pathspec.pathspec.PathSpec.match_tree_entries()`.
  * Improve type hint on *on_error* parameter on
    `pathspec.util.iter_tree_entries()`.

OBS-URL: https://build.opensuse.org/request/show/1132675
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=16
2023-12-13 17:34:06 +00:00
627b1cd12d - update to 0.12.1:
* `Issue #84`_: PathSpec.match_file() returns None since
    0.12.0.
  * Major changes:
  * Dropped support of EOL Python 3.7. See `Pull #82`_.
  * API changes:
  * Signature of protected method
    `pathspec.pathspec.PathSpec._match_file()` (with a leading
    underscore) has been changed from `def _match_file(patterns:
    Iterable[Pattern], file: str) -> bool` to `def
    _match_file(patterns: Iterable[Tuple[int, Pattern]], file:
    str) -> Tuple[Optional[bool], Optional[int]]`.
  * Added `pathspec.pathspec.PathSpec.check_*()` methods. These
    methods behave similarly to `.match_*()` but return
    additional information in the `pathspec.util.CheckResult`
    objects (e.g., `CheckResult.index` indicates the index of the
    last pattern that matched the file).
  * Added `pathspec.pattern.RegexPattern.pattern` attribute which
    stores the original, uncompiled pattern.
  * Mark Python 3.12 as supported.
  * Improve test debugging.
  * Improve type hint on *on_error* parameter on
    `pathspec.pathspec.PathSpec.match_tree_entries()`.
  * Improve type hint on *on_error* parameter on
    `pathspec.util.iter_tree_entries()`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=30
2023-12-12 13:14:49 +00:00
Ana Guerrero
85a8250992 Accepting request 1109524 from devel:languages:python
- update to 0.11.2:
  * `Issue #80`_: match_files with negated path spec.
    `pathspec.PathSpec.match_*()` now have a `negate` parameter
    to make using *.gitignore* logic easier and more efficient.
  * Add edge case: patterns that end with an escaped
    space
  * Negate with caret symbol as with the exclamation mark.

- Update to version 0.10.3
- Update to version 0.10.2:
  * `Issue #43`_: Add support for addition operator

OBS-URL: https://build.opensuse.org/request/show/1109524
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=15
2023-09-08 19:15:05 +00:00
79a5cc0e5c - update to 0.11.2:
* `Issue #80`_: match_files with negated path spec.
    `pathspec.PathSpec.match_*()` now have a `negate` parameter
    to make using *.gitignore* logic easier and more efficient.
  * Add edge case: patterns that end with an escaped
    space
  * Negate with caret symbol as with the exclamation mark.
- Update to version 0.10.3
- Update to version 0.10.2:
  * `Issue #43`_: Add support for addition operator

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=28
2023-09-07 11:28:09 +00:00
Dominique Leuenberger
13384bbc68 Accepting request 1081842 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081842
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=14
2023-04-22 19:59:49 +00:00
788088654e Accepting request 1081513 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081513
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=26
2023-04-21 14:16:26 +00:00
Dominique Leuenberger
895b46c1c5 Accepting request 1074507 from devel:languages:python
- update to 0.11.1:
  * `Issue #74`_: Include directory should override exclude file.
  * `Pull #75`_: Fix partially unknown PathLike type.
  * Convert `os.PathLike` to a string properly using `os.fspath`.
  * Major changes:
  * Changed build backend to `flit_core.buildapi`_ from
    `setuptools.build_meta`_. Building with `setuptools` through
    `setup.py` is still supported for distributions that need it.
  * `Issue #72`_/`Pull #73`_: Please consider switching the
    build-system to flit_core to ease setuptools bootstrap.

OBS-URL: https://build.opensuse.org/request/show/1074507
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=13
2023-03-29 21:26:10 +00:00
d519617927 - update to 0.11.1:
* `Issue #74`_: Include directory should override exclude file.
  * `Pull #75`_: Fix partially unknown PathLike type.
  * Convert `os.PathLike` to a string properly using `os.fspath`.
  * Major changes:
  * Changed build backend to `flit_core.buildapi`_ from
    `setuptools.build_meta`_. Building with `setuptools` through
    `setup.py` is still supported for distributions that need it.
  * `Issue #72`_/`Pull #73`_: Please consider switching the
    build-system to flit_core to ease setuptools bootstrap.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=24
2023-03-26 19:51:05 +00:00
Dominique Leuenberger
ed8f9b72ad Accepting request 1042885 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1042885
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=12
2022-12-15 18:24:08 +00:00
e1715ee9e7 Accepting request 1042720 from home:yarunachalam:branches:devel:languages:python
- Update to version 0.10.3 
  * New features:
  Added utility function pathspec.util.append_dir_sep() to aid in distinguishing between directories and files on the file-system. See Issue #65.
  * Bug fixes:
  Issue #66/Pull #67: Package not marked as py.typed.
  Issue #68: Exports are considered private.
  Issue #70/Pull #71: 'Self' string literal type is Unknown in pyright.
  * Improvements:
  Issue #65: Checking directories via match_file() does not work on Path objects.

OBS-URL: https://build.opensuse.org/request/show/1042720
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=22
2022-12-14 10:10:39 +00:00
Dominique Leuenberger
c7a4a2b983 Accepting request 1039910 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1039910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=11
2022-12-05 17:00:30 +00:00
892f4176e8 Accepting request 1039863 from home:yarunachalam:branches:devel:languages:python
- Update to version 0.10.2: 
  Bug fixes:
  * Fix failing tests on Windows.
  * Type hint on root parameter on pathspec.pathspec.PathSpec.match_tree_entries().
  * Type hint on root parameter on pathspec.pathspec.PathSpec.match_tree_files().
  * Type hint on root parameter on pathspec.util.iter_tree_entries().
  * Type hint on root parameter on pathspec.util.iter_tree_files().
  * Issue #64: IndexError with my .gitignore file when trying to build a Python package.
  Improvements:
  * Issue #58: CI: add GitHub Actions test workflow.

OBS-URL: https://build.opensuse.org/request/show/1039863
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=20
2022-12-03 22:35:33 +00:00
Dominique Leuenberger
c382d8bdf6 Accepting request 1003577 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1003577
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=10
2022-09-16 11:31:58 +00:00
8916b06777 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
2022-09-14 15:50:45 +00:00
Dominique Leuenberger
dd1cc1d3e0 Accepting request 943953 from devel:languages:python
- update to 0.9.0:
  * Raise `GitWildMatchPatternError` for invalid git patterns.
  * Fix for duplicate leading double-asterisk, and edge cases.
  * Fix matching absolute paths.
  * API change: `util.normalize_files()` now returns a
    `Dict[str, List[pathlike]]` instead of a `Dict[str, pathlike]`.
  * Added type hinting.

OBS-URL: https://build.opensuse.org/request/show/943953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=9
2022-01-07 11:44:54 +00:00
ad55002a19 - update to 0.9.0:
* Raise `GitWildMatchPatternError` for invalid git patterns.
  * Fix for duplicate leading double-asterisk, and edge cases.
  * Fix matching absolute paths.
  * API change: `util.normalize_files()` now returns a
    `Dict[str, List[pathlike]]` instead of a `Dict[str, pathlike]`.
  * Added type hinting.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=17
2022-01-05 10:30:49 +00:00
Dominique Leuenberger
b6800f6765 Accepting request 896588 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/896588
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=8
2021-06-11 20:29:51 +00:00
4cc38a8f63 Accepting request 896584 from home:pgajdos:python
- %check: use %pyunittest rpm macro

OBS-URL: https://build.opensuse.org/request/show/896584
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=15
2021-06-01 07:55:51 +00:00
Dominique Leuenberger
54f0e40200 Accepting request 856973 from devel:languages:python
- update to 0.8.1:
  * `Issue #43`_: Add support for addition operator

OBS-URL: https://build.opensuse.org/request/show/856973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=7
2020-12-23 13:18:53 +00:00
a486a3c015 - update to 0.8.1:
* `Issue #43`_: Add support for addition operator

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=13
2020-12-19 10:49:50 +00:00
Dominique Leuenberger
574bdfdcf7 Accepting request 839941 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/839941
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=6
2020-10-29 08:46:48 +00:00
Tomáš Chvátal
25a1bafe4d Accepting request 839910 from home:jayvdb:branches:devel:languages:python
- Update to v0.8.0
  * Expose what patterns matched paths. Added `util.detailed_match_files()`
  * `match_tree()` doesn't return symlinks
    - Add `PathSpec.match_tree_entries` and `util.iter_tree_entries()` to
      support directories and symlinks
    - API change: `match_tree()` has been renamed to `match_tree_files()`
      The old name `match_tree()` is still available as an alias
    - API change: `match_tree_files()` now returns symlinks

OBS-URL: https://build.opensuse.org/request/show/839910
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=11
2020-10-07 06:15:59 +00:00
Dominique Leuenberger
c8fb8c928c Accepting request 783955 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/783955
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=5
2020-03-11 17:55:54 +00:00
Tomáš Chvátal
98d160cce0 Accepting request 783949 from home:mcalabkova:branches:devel:languages:python
- update to 0.7.0
  * Add support for Python 3.8, and drop Python 3.4.
  * Publish bdist wheel.

OBS-URL: https://build.opensuse.org/request/show/783949
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=9
2020-03-11 15:59:25 +00:00
Dominique Leuenberger
5b5c56a8f3 Accepting request 736800 from devel:languages:python
- Update to 0.6.0:
  * Issue #24: Drop support for Python 2.6, 3.2, and 3.3.
  * Issue #25: Update README.rst.
  * Issue #26: Method to escape gitwildmatch.

OBS-URL: https://build.opensuse.org/request/show/736800
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=4
2019-10-10 09:53:32 +00:00
Tomáš Chvátal
cb0b956b80 - Update to 0.6.0:
* Issue #24: Drop support for Python 2.6, 3.2, and 3.3.
  * Issue #25: Update README.rst.
  * Issue #26: Method to escape gitwildmatch.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=7
2019-10-10 08:26:46 +00:00
Dominique Leuenberger
b4005cd325 Accepting request 674890 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/674890
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=3
2019-02-27 16:28:07 +00:00
Tomáš Chvátal
14fe40cd3c Accepting request 674877 from home:jayvdb:coala:python3-bears
- Update to v0.5.9
  * Fixed file system error handling.
- from v0.5.8
  * Improved type checking.
  * Created scripts to test Python 2.6 because Tox removed support for it.
  * Improved byte string handling in Python 3.
  * Handle dangling symlinks.
- from v0.5.7
  * Fix collections deprecation warning.

OBS-URL: https://build.opensuse.org/request/show/674877
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=5
2019-02-14 08:37:56 +00:00
Dominique Leuenberger
d096831808 Accepting request 659542 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659542
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=2
2018-12-24 10:40:56 +00:00
2b94049b23 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=3
2018-12-04 13:45:37 +00:00
Dominique Leuenberger
77573ac055 Accepting request 605992 from devel:languages:python
Utility library for gitignore style pattern matching of file paths

OBS-URL: https://build.opensuse.org/request/show/605992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathspec?expand=0&rev=1
2018-05-15 08:12:35 +00:00
Todd R
51a5522988 Accepting request 605991 from devel:languages:python:misc
Utility library for gitignore style pattern matching of file paths

OBS-URL: https://build.opensuse.org/request/show/605991
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=1
2018-05-10 00:23:54 +00:00