Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency deepdiff to v8 #5141

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Update dependency deepdiff to v8 #5141

merged 1 commit into from
Nov 5, 2024

Conversation

openverse-bot
Copy link
Collaborator

@openverse-bot openverse-bot commented Nov 4, 2024

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

Compare Source

8.0.1 - extra import of numpy is removed

v8.0.0

Compare Source

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.

v7.0.1

  • 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).
  • Dropping support for Python 3.7
  • Introducing serialize to flat rows for delta objects.
  • fixes the issue with hashing datetime.date objects where it treated them as numbers instead of dates (fixes #​445).
  • upgrading orjson to the latest version
  • Fix for bug when diffing two lists with ignore_order and providing compare_func
  • Fixes #​438
  • Supporting Python 3.12 in the build process by Leo Sin
  • Fixes #​457 by sf-tcalhoun
  • Fixes #​441
  • Fixes #​450
  • Fixes #​443
  • 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@openverse-bot openverse-bot requested a review from a team as a code owner November 4, 2024 14:38
@openverse-bot openverse-bot added dependencies Pull requests that update a dependency file 🐍 tech: python Involves Python 💻 aspect: code Concerns the software code in the repository 🟩 priority: low Low priority and doesn't need to be rushed 🧰 goal: internal improvement Improvement that benefits maintainers, not users 🧱 stack: api Related to the Django API labels Nov 4, 2024
@openverse-bot openverse-bot requested review from krysal and stacimc and removed request for a team November 4, 2024 14:38
@openverse-bot
Copy link
Collaborator Author

⚠️ 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:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

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

@openverse-bot openverse-bot force-pushed the gha-renovatedeepdiff-8.x branch from 821eacc to cd899a1 Compare November 5, 2024 03:09
@krysal krysal force-pushed the gha-renovatedeepdiff-8.x branch from cd899a1 to f45c661 Compare November 5, 2024 17:48
@krysal krysal force-pushed the gha-renovatedeepdiff-8.x branch from f45c661 to 66fcaae Compare November 5, 2024 17:51
@krysal krysal self-assigned this Nov 5, 2024
@krysal krysal merged commit f158617 into main Nov 5, 2024
50 checks passed
@krysal krysal deleted the gha-renovatedeepdiff-8.x branch November 5, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository dependencies Pull requests that update a dependency file 🧰 goal: internal improvement Improvement that benefits maintainers, not users 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: api Related to the Django API 🐍 tech: python Involves Python
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants