Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency pathspec to v0.12.1 - autoclosed #16

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Nov 7, 2020

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pathspec ==0.8.0 -> ==0.12.1 age adoption passing confidence

Release Notes

cpburnz/python-pathspec (pathspec)

v0.12.1

Compare Source

Bug fixes:

  • Issue #​84_: PathSpec.match_file() returns None since 0.12.0.

.. _Issue #​84: https://github.com/cpburnz/python-pathspec/issues/84

v0.12.0

Compare Source

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]].

New features:

  • 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.

Bug fixes:

  • Issue #​81_: GitIgnoreSpec behaviors differ from git.
  • Pull #​83_: Fix ReadTheDocs builds.

Improvements:

  • Mark Python 3.12 as supported. See Pull #​82_.
  • 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().

.. _Issue #​81: https://github.com/cpburnz/python-pathspec/issues/81
.. _Pull #​82: https://github.com/cpburnz/python-pathspec/pull/82
.. _Pull #​83: https://github.com/cpburnz/python-pathspec/pull/83

v0.11.2

Compare Source

New features:

  • 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.

Bug fixes:

  • Pull #​76_: Add edge case: patterns that end with an escaped space
  • Issue #​77/Pull #​78: Negate with caret symbol as with the exclamation mark.

.. _Pull #​76: https://github.com/cpburnz/python-pathspec/pull/76
.. _Issue #​77: https://github.com/cpburnz/python-pathspec/issues/77
.. _Pull #​78: https://github.com/cpburnz/python-pathspec/pull/78/
.. _Issue #​80: https://github.com/cpburnz/python-pathspec/issues/80

v0.11.1

Compare Source

Bug fixes:

  • Issue #​74_: Include directory should override exclude file.

Improvements:

  • Pull #​75_: Fix partially unknown PathLike type.
  • Convert os.PathLike to a string properly using os.fspath.

.. _Issue #​74: https://github.com/cpburnz/python-pathspec/issues/74
.. _Pull #​75: https://github.com/cpburnz/python-pathspec/pull/75

v0.11.0

Compare Source

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. See Issue #​72.

Improvements:

  • Issue #​72/Pull #​73: Please consider switching the build-system to flit_core to ease setuptools bootstrap.

.. _flit_core.buildapi: https://flit.pypa.io/en/latest/index.html
.. _Issue #​72: https://github.com/cpburnz/python-pathspec/issues/72
.. _Pull #​73: https://github.com/cpburnz/python-pathspec/pull/73

v0.10.3

Compare Source

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.

.. _Issue #​65: https://github.com/cpburnz/python-pathspec/issues/65
.. _Issue #​66: https://github.com/cpburnz/python-pathspec/issues/66
.. _Pull #​67: https://github.com/cpburnz/python-pathspec/pull/67
.. _Issue #​68: https://github.com/cpburnz/python-pathspec/issues/68
.. _Issue #​70: https://github.com/cpburnz/python-pathspec/issues/70
.. _Pull #​71: https://github.com/cpburnz/python-pathspec/pull/71

v0.10.2

Compare Source

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:

  • Pull #​58_: CI: add GitHub Actions test workflow.

.. _Pull #​58: https://github.com/cpburnz/python-pathspec/pull/58
.. _Issue #​64: https://github.com/cpburnz/python-pathspec/issues/64

v0.10.1

Compare Source

Bug fixes:

  • Fix documentation on pathspec.pattern.RegexPattern.match_file().
  • Pull #​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_.

.. _Pull #​60: https://github.com/cpburnz/python-pathspec/pull/60
.. _Issue #​61: https://github.com/cpburnz/python-pathspec/issues/61
.. _Issue #​62: https://github.com/cpburnz/python-pathspec/issues/62

v0.10.0

Compare Source

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/. This means dir/* will now match all descendants rather than only direct children. See Issue #​19_.
  • 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. The particular gitignore behavior implemented is prioritizing patterns matching the file directly over matching an ancestor directory.

Bug fixes:

  • Issue #​19_: Files inside an ignored sub-directory are not matched.
  • Issue #​41_: Incorrectly (?) matches files inside directories that do match.
  • Pull #​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.
  • Pull #​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.

.. _python-path-specification: https://github.com/cpburnz/python-path-specification
.. _python-pathspec: https://github.com/cpburnz/python-pathspec
.. _pyproject.toml: https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
.. _setuptools.build_meta: https://setuptools.pypa.io/en/latest/build_meta.html
.. _Issue #​19: https://github.com/cpburnz/python-pathspec/issues/19
.. _Issue #​35: https://github.com/cpburnz/python-pathspec/issues/35
.. _Issue #​41: https://github.com/cpburnz/python-pathspec/issues/41
.. _Issue #​47: https://github.com/cpburnz/python-pathspec/issues/47
.. _Pull #​51: https://github.com/cpburnz/python-pathspec/pull/51
.. _Issue #​52: https://github.com/cpburnz/python-pathspec/issues/52
.. _Issue #​53: https://github.com/cpburnz/python-pathspec/issues/53
.. _Issue #​54: https://github.com/cpburnz/python-pathspec/issues/54
.. _Issue #​55: https://github.com/cpburnz/python-pathspec/issues/55
.. _Pull #​56: https://github.com/cpburnz/python-pathspec/pull/56
.. _Issue #​57: https://github.com/cpburnz/python-pathspec/issues/57

v0.9.0

Compare Source

  • Issue #​44/Pull #​50: Raise GitWildMatchPatternError for invalid git patterns.
  • Pull #​45_: Fix for duplicate leading double-asterisk, and edge cases.
  • Issue #​46_: 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.

.. _Issue #​44: https://github.com/cpburnz/python-pathspec/issues/44
.. _Pull #​45: https://github.com/cpburnz/python-pathspec/pull/45
.. _Issue #​46: https://github.com/cpburnz/python-pathspec/issues/46
.. _Pull #​50: https://github.com/cpburnz/python-pathspec/pull/50

v0.8.1

  • Pull #​43_: Add support for addition operator.

.. _Pull #​43: https://github.com/cpburnz/python-pathspec/pull/43


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/pathspec-0.x branch from 96a8fab to 63e1e02 Compare October 20, 2021 06:41
@renovate renovate bot changed the title Update dependency pathspec to v0.8.1 Update dependency pathspec to v0.9.0 Oct 20, 2021
@renovate renovate bot force-pushed the renovate/pathspec-0.x branch from 63e1e02 to 8b492fc Compare September 25, 2022 14:47
@renovate renovate bot changed the title Update dependency pathspec to v0.9.0 Update dependency pathspec to v0.10.1 Sep 25, 2022
@renovate renovate bot force-pushed the renovate/pathspec-0.x branch from 8b492fc to ceabf11 Compare November 20, 2022 07:28
@renovate renovate bot changed the title Update dependency pathspec to v0.10.1 Update dependency pathspec to v0.10.2 Nov 20, 2022
@renovate renovate bot changed the title Update dependency pathspec to v0.10.2 Update dependency pathspec to v0.11.1 Mar 19, 2023
@renovate renovate bot force-pushed the renovate/pathspec-0.x branch from ceabf11 to d9d6f86 Compare March 19, 2023 01:56
@renovate renovate bot changed the title Update dependency pathspec to v0.11.1 Update dependency pathspec to v0.11.2 Jul 29, 2023
@renovate renovate bot force-pushed the renovate/pathspec-0.x branch from d9d6f86 to 0e22394 Compare July 29, 2023 04:22
@renovate renovate bot changed the title Update dependency pathspec to v0.11.2 Update dependency pathspec to v0.12.0 Dec 10, 2023
@renovate renovate bot force-pushed the renovate/pathspec-0.x branch from 0e22394 to 0d5d9ec Compare December 10, 2023 00:30
@renovate renovate bot changed the title Update dependency pathspec to v0.12.0 Update dependency pathspec to v0.12.1 Dec 11, 2023
@renovate renovate bot force-pushed the renovate/pathspec-0.x branch from 0d5d9ec to 2602a69 Compare December 11, 2023 00:04
@renovate renovate bot changed the title Update dependency pathspec to v0.12.1 Update dependency pathspec to v0.12.1 - autoclosed Dec 17, 2023
@renovate renovate bot closed this Dec 17, 2023
@renovate renovate bot deleted the renovate/pathspec-0.x branch December 17, 2023 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants