Skip to content

Commit

Permalink
Merge pull request #72 from matiasb/preparing-release-0.6.0
Browse files Browse the repository at this point in the history
Prepare 0.6.0 release.
  • Loading branch information
matiasb authored May 7, 2020
2 parents d611fe6 + 6c1e39a commit 286826e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ Contributors
* Dan Callaghan (`@danc86`_)
* Max Bittker (`@MaxBittker`_)
* Volo Zyko (`@volo-zyko`_)
* Robert Estelle (`@erydo`_)
* Dylan Grafmyre
* Povilas Kanapickas (`@p12tic`_)
* Snowhite (`@CirQ`_)
* earonesty (`@earonesty`_)
9 changes: 9 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
History
-------

0.6.0 - 2020-05-07
----------------

* Updated PatchSet constructor to accept an optional (default to False)
metadata_only parameter to only keep diff metadata information without
the diff text data (better performance).
* Identify and track changed binary files.
* Added support for git rename syntax.

0.5.5 - 2018-01-03
------------------

Expand Down
9 changes: 9 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ Finally, you can also instantiate :code:`PatchSet` passing any iterable (and enc
>>> patch
<PatchSet: [<PatchedFile: added_file>, <PatchedFile: modified_file>, <PatchedFile: removed_file>]>

If you don't need to be able to rebuild the original unified diff input, you can pass
:code:`metadata_only=True` (defaults to :code:`False`), which should help making the
parsing more efficient:

::

>>> from unidiff import PatchSet
>>> patch = PatchSet.from_filename('tests/samples/bzr.diff', encoding='utf-8', metadata_only=True)


References
----------
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
test_suite='tests',
)

0 comments on commit 286826e

Please sign in to comment.