diff --git a/AUTHORS b/AUTHORS index 8f31204..1f98b00 100644 --- a/AUTHORS +++ b/AUTHORS @@ -35,3 +35,6 @@ Contributors * David Leen (`@dleen`) * Martin Liška (`@marxin`) * Tushar Sadhwani (`@tushar-deepsource`) + * Toon Verstraelen (`@tovrstra`) + * Danny Crasto (`@danwald`) + * Carles Pina Estany (`@cpina`) diff --git a/HISTORY b/HISTORY index 338cf4a..64afa7e 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,32 @@ History ------- +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 ------------------ diff --git a/unidiff/__version__.py b/unidiff/__version__.py index bc76575..ab2b683 100644 --- a/unidiff/__version__.py +++ b/unidiff/__version__.py @@ -21,4 +21,4 @@ # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE # OR OTHER DEALINGS IN THE SOFTWARE. -__version__ = '0.7.5' +__version__ = '1.0.0'