Skip to content

build(deps): update unidiff requirement from <0.8.0,>=0.7.5 to >=0.7.5,<1.1.0 - #10

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/unidiff-gte-0.7.5-and-lt-1.1.0
Open

build(deps): update unidiff requirement from <0.8.0,>=0.7.5 to >=0.7.5,<1.1.0#10
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/unidiff-gte-0.7.5-and-lt-1.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 25, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on unidiff to permit the latest version.

Release notes

Sourced from unidiff's releases.

v1.0.0

Major modernization: Python 2 is dropped, the code is fully type-annotated, packaging moves to pyproject.toml, and several long-standing parser issues are fixed.

⚠️ Breaking

  • Minimum supported Python is now 3.9 (Python 2 dropped).
  • PatchedFile.path now also strips git mnemonic prefixes (c/ i/ o/ w/ and 1/ 2/), so git diff --cached paths resolve to the plain filename (c/README.mdREADME.md). Standard a//b/ diffs are unaffected. (#81, #27)

Highlights

  • File modes via source_mode/target_mode + an is_symlink property. (#125)
  • PatchedFile.diff_line_no to locate hunkless/binary entries. (#122)
  • Accept bytes input directly (decoded with the given encoding, default UTF-8). (#43)
  • Real PEP 484 type annotations + generics (typed iteration) and a py.typed marker. (#117)
  • Parse difflib empty-filename output (#115) and fix a trailing-newline error on hunkless git format-patch files (#73, #74); includes the quoted-filename fix missing from 0.7.5 (#113).
  • from_filename/from_string gain metadata_only; python -m unidiff works; packaging on pyproject.toml with GitHub Actions CI.

Thanks to @​danwald, @​cpina, @​tovrstra and @​huichen-cs.

Full changelog: matiasb/python-unidiff@v0.7.5...v1.0.0

Changelog

Sourced from unidiff's changelog.

1.0.0 - 2026-07-25

  • Dropped Python 2 support; the minimum supported version is now Python 3.9.
  • Converted to real PEP 484 type annotations and generic containers, and shipped a py.typed marker (#117).
  • Migrated packaging to pyproject.toml; the sdist now includes the tests (#99), and the unidiff command is also runnable as python -m unidiff.
  • Replaced Travis CI with GitHub Actions (tests + mypy).
  • Exposed git file modes via PatchedFile.source_mode / target_mode and an is_symlink property (#125).
  • Added support for git mnemonic source/target prefixes (i/ w/ c/ o/ and 1/ 2/), which also fixes git diff --cached paths (#81, #27).
  • Exposed PatchedFile.diff_line_no to locate hunkless (e.g. binary) file entries in the diff (#122).
  • PatchSet and PatchSet.from_string now accept bytes input directly, decoding with the given encoding (default UTF-8) (#43).
  • PatchSet.from_filename and PatchSet.from_string now accept the metadata_only argument.
  • Parse diffs with empty filenames, e.g. difflib.unified_diff output (#115).
  • Fixed a trailing-newline parse error on hunkless files in git format-patch output (#73, #74).
  • Documented parsing of content with embedded carriage returns / control characters (#120).
  • Rewrote the README in Markdown.

0.7.5 - 2023-03-09

  • Fixed issue with spaces in filename when using custom git prefix.
  • Support binary patch format.

0.7.4 - 2022-06-26

  • Fixed git diff parsing issues (filename with spaces, only one added/deleted file).

0.7.3 - 2022-02-06

  • Fixed RE_BINARY_DIFF regex to make it a raw string.

0.7.2 - 2022-01-28

  • Fixed issue when parsing git diff header generated with --no-prefix.

0.7.1 - 2022-01-27

... (truncated)

Commits
  • 5ff054b Merge pull request #139 from matiasb/release-1.0.0
  • 3182e41 Preparing 1.0.0 release
  • d08ddd2 Merge pull request #141 from matiasb/readme-markdown
  • b13996f Convert README from reStructuredText to Markdown
  • ff053b8 Merge pull request #140 from matiasb/metadata-only-and-examples
  • f7f4b3e Update README
  • b5d4cbc Merge pull request #138 from matiasb/review/13-hunkless-newline
  • 21400e2 Fix trailing newline error on hunkless files (#73, #74)
  • 6638235 Merge pull request #137 from matiasb/review/12-bytes-input
  • dea6675 Accept bytes input directly (#43)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [unidiff](https://github.com/matiasb/python-unidiff) to permit the latest version.
- [Release notes](https://github.com/matiasb/python-unidiff/releases)
- [Changelog](https://github.com/matiasb/python-unidiff/blob/main/HISTORY)
- [Commits](matiasb/python-unidiff@v0.7.5...v1.0.0)

---
updated-dependencies:
- dependency-name: unidiff
  dependency-version: 1.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants