WordPress / openverse

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
https://openverse.org
MIT License
254 stars 203 forks source link

Update dependency deepdiff to v8 #5141

Closed openverse-bot closed 2 weeks ago

openverse-bot commented 2 weeks ago

This PR contains the following updates:

Package Type Update Change
deepdiff project.dependencies major >=6.7.1, <7 -> >=8.0.1, <9

Release Notes

seperman/deepdiff (deepdiff) ### [`v8.0.1`](https://redirect.github.com/seperman/deepdiff/releases/tag/8.0.1) [Compare Source](https://redirect.github.com/seperman/deepdiff/compare/8.0.0...8.0.1) 8.0.1 - extra import of numpy is removed ### [`v8.0.0`](https://redirect.github.com/seperman/deepdiff/releases/tag/8.0.0) [Compare Source](https://redirect.github.com/seperman/deepdiff/compare/7.0.1...8.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. - \[x] `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. - \[x] `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. - \[x] 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`. - \[x] 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. - \[x] json serialization of reversed lists. - \[x] Fix for iterable moved items when `iterable_compare_func` is used. - \[x] Pandas and Polars support. ### [`v7.0.1`](https://redirect.github.com/seperman/deepdiff/releases/tag/7.0.1) - \[x] When verbose=2, return `new_path` when the `path` and `new_path` are different (for example when ignore_order=True and the index of items have changed). - \[x] Dropping support for Python 3.7 - \[x] Introducing serialize to flat rows for delta objects. - \[x] fixes the issue with hashing `datetime.date` objects where it treated them as numbers instead of dates (fixes [#​445](https://redirect.github.com/seperman/deepdiff/issues/445)). - \[x] upgrading orjson to the latest version - \[x] Fix for bug when diffing two lists with ignore_order and providing compare_func - \[x] Fixes [#​438](https://redirect.github.com/seperman/deepdiff/issues/438) - \[x] Supporting Python 3.12 in the build process by [Leo Sin](https://redirect.github.com/leoslf) - \[x] Fixes [#​457](https://redirect.github.com/seperman/deepdiff/issues/457) by [sf-tcalhoun](https://redirect.github.com/sf-tcalhoun) - \[x] Fixes [#​441](https://redirect.github.com/seperman/deepdiff/issues/441) - \[x] Fixes [#​450](https://redirect.github.com/seperman/deepdiff/issues/450) - \[x] Fixes [#​443](https://redirect.github.com/seperman/deepdiff/issues/443) - \[x] Include type info and change the "unknown" value for flat rows to something that is friendly for Postgres enums

Configuration

📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), 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.



This PR has been generated by Renovate Bot.

openverse-bot commented 2 weeks ago

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: api/pdm.lock
Command failed: pdm update --no-sync --update-eager deepdiff
WARNING: Project requires a python version of ==3.12.*, The virtualenv is being created for you as it cannot be matched to the right version.
INFO: python.use_venv is on, creating a virtualenv for this project...
Virtualenv is created successfully at /tmp/renovate/repos/github/WordPress/openverse/api/.venv
[FileNotFoundError]: [Errno 2] No such file or directory: '/home/ubuntu/.local/state'
WARNING: Add '-v' to see the detailed traceback