./textproc/py-deepdiff, Deep Difference and Search of any Python object/data

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 8.1.1, Package name: py312-deepdiff-8.1.1, Maintainer: sep

Deep Difference of dictionaries, iterables, strings and other
objects. It will recursively look for all the changes.


Required to run:
[devel/py-setuptools] [textproc/py-jsonpickle] [devel/py-ordered-set] [lang/python310]

Master sites:

Filesize: 423.398 KB

Version history: (Expand)


CVS history: (Expand)


   2025-01-06 11:30:17 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-deepdiff: updated to 8.1.1

- v8-1-0

  - Removing deprecated lines from setup.py
  - Added ``prefix`` option to ``pretty()``
  - Fixes hashing of numpy boolean values.
  - Fixes **slots** comparison when the attribute doesn’t exist.
  - Relaxing orderly-set reqs
  - Added Python 3.13 support
  - Only lower if clean_key is instance of str
  - Fixes issue where the key deep_distance is not returned when both
    compared items are equal
  - Fixes exclude_paths fails to work in certain cases
  - exclude_paths fails to work
  - Fixes to_json() method chokes on standard json.dumps() kwargs such as
    sort_keys
  - to_dict() method chokes on standard json.dumps() kwargs
  - Fixes accessing the affected_root_keys property on the diff object
    returned by DeepDiff fails when one of the dicts is empty
  - Fixes accessing the affected_root_keys property on the
    diff object returned by DeepDiff fails when one of the dicts is empty

- v8-0-1

  - Bugfix. Numpy should be optional.

- v8-0-0

   - With the introduction of `threshold_to_diff_deeper`, the values returned \ 
are different than in previous versions of DeepDiff. You can still get the older \ 
values by setting `threshold_to_diff_deeper=0`. However to signify that enough \ 
has changed in this release that the users need to update the parameters passed \ 
to DeepDiff, we will be doing a major version update.
   - `use_enum_value=True` makes it so when diffing enum, we use the enum's \ 
value. It makes it so comparing an enum to a string or any other value is not \ 
reported as a type change.
   - `threshold_to_diff_deeper=float` is a number between 0 and 1. When \ 
comparing dictionaries that have a small intersection of keys, we will report \ 
the dictionary as a `new_value` instead of reporting individual keys changed. If \ 
you set it to zero, you get the same results as DeepDiff 7.0.1 and earlier, \ 
which means this feature is disabled. The new default is 0.33 which means if \ 
less that one third of keys between dictionaries intersect, report it as a new \ 
object.
   - Deprecated `ordered-set` and switched to `orderly-set`. The `ordered-set` \ 
package was not being maintained anymore and starting Python 3.6, there were \ 
better options for sets that ordered. I forked one of the new implementations, \ 
modified it, and published it as `orderly-set`.
   - Added `use_log_scale:bool` and `log_scale_similarity_threshold:float`. They \ 
can be used to ignore small changes in numbers by comparing their differences in \ 
logarithmic space. This is different than ignoring the difference based on \ 
significant digits.
   - json serialization of reversed lists.
   - Fix for iterable moved items when `iterable_compare_func` is used.
   - Pandas and Polars support
   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-10-14 08:46:10 by Thomas Klausner | Files touched by this commit (325)
Log message:
*: clean-up after python38 removal
   2024-01-28 22:00:06 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-deepdiff: updated to 6.7.1

v6-7-1

-  Support for subtracting delta objects when iterable_compare_func
   is used.
-  Better handling of force adding a delta to an object.
-  Fix for
   ```Can't compare dicts with both single and double quotes in keys`` \ 
<https://github.com/seperman/deepdiff/issues/430>`__
-  Updated docs for Inconsistent Behavior with math_epsilon and
   ignore_order = True

v6-7-0

-  Delta can be subtracted from other objects now.
-  verify_symmetry is deprecated. Use bidirectional instead.
-  always_include_values flag in Delta can be enabled to include
   values in the delta for every change.
-  Fix for Delta.\__add\_\_ breaks with esoteric dict keys.

v6-6-1

 -  Fix for `DeepDiff raises decimal exception when using significant
    digits <https://github.com/seperman/deepdiff/issues/426>`__
 -  Introducing group_by_sort_key
 -  Adding group_by 2D. For example
    ``group_by=['last_name', 'zip_code']``

v6-6-0

-  Numpy 2.0 support
-  Adding
   `Delta.to_flat_dicts \ 
<https://zepworks.com/deepdiff/current/serialization.html#delta-serialize-to-flat-dictionaries>`__

v6-5-0

-  Adding
   ```parse_path`` <https://github.com/seperman/deepdiff/pull/419>`__

v6-4-1

-  Bugfix: Keep Numpy Optional
   2023-07-17 13:54:43 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-deepdiff: updated to 6.3.1

v6-3-1
- Bugfix deephash for paths
- Bugfix deephash compiled regex
- Fix tests dependent on toml
- Bugfix for ``include_paths`` for nested dictionaries
- Use tomli and tomli-w for dealing with tomli files
- Bugfix for ``datetime.date``
   2023-07-01 10:37:47 by Thomas Klausner | Files touched by this commit (105) | Package updated
Log message:
*: restrict py-numpy users to 3.9+ in preparation for update
   2023-04-17 22:28:15 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-deepdiff: updated to 6.3.0

v6-3-0

- ``PrefixOrSuffixOperator``: This operator will skip strings that
  are suffix or prefix of each other.
- ``include_obj_callback`` and ``include_obj_callback_strict`` are
  added by `Håvard Thom <https://github.com/havardthom>`__.
- Fixed a corner case where numpy’s ``np.float32`` nans are not
  ignored when using ``ignore_nan_equality`` by `Noam
  Gottlieb <https://github.com/noamgot>`__
- ``orjson`` becomes optional again.
- Fix for ``ignore_type_in_groups`` with numeric values so it does
  not report number changes when the number types are different.

v6-2-3

- Switching to Orjson for serialization to improve the performance.
- Setting ``equal_nan=ignore_nan_inequality`` in the call for
  ``np.array_equal``
- Using Pytest’s tmp_path fixture instead of ``/tmp/``

v6-2-2

- Enum test fix for python 3.11
- Adding support for dateutils rrules

v6-2-1

- Removed the print statements.

v6-2-0

- Major improvement in the diff report for lists when items are all
  hashable and the order of items is important.

v6-1-0

- DeepDiff.affected_paths can be used to get the list of all paths
  where a change, addition, or deletion was reported for.
- DeepDiff.affected_root_keys can be used to get the list of all
  paths where a change, addition, or deletion was reported for.
- Bugfix: ValueError when using Decimal 0.x
- Serialization of UUID

v6-0-0

- `Exclude obj callback
  strict <https://github.com/seperman/deepdiff/pull/320/files>`__
  parameter is added to DeepDiff by Mikhail Khviyuzov
  `mskhviyu <https://github.com/mskhviyu>`__.
- A fix for diffing using ``iterable_compare_func`` with nested
  objects by `dtorres-sf <https://github.com/dtorres-sf>`__ who
  originally contributed this feature.
   2022-01-05 16:41:32 by Thomas Klausner | Files touched by this commit (289)
Log message:
python: egg.mk: add USE_PKG_RESOURCES flag

This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.