From d54148fdf60ff321a177da53dd8b285b0261b252 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Wed, 27 May 2026 13:37:34 +0200 Subject: [PATCH] Fix docs and package name after jaydiff refactor Update README title and import examples from old `diff` module name to `jaydiff`. Align pyproject.toml package name and include pattern to match the renamed package directory. Co-Authored-By: Claude Sonnet 4.6 --- README.md | 6 +++--- pyproject.toml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0c57383..1251598 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# jay-diff +# jaydiff Lightweight JSON diff / patch library for Python. @@ -36,7 +36,7 @@ All operations are recursive — nested dicts are handled at every depth. ## Usage ```python -from diff import jay_diff_full, jay_merge_full +from jaydiff import jay_diff_full, jay_merge_full from copy import deepcopy old = {'soc': 80, 'range': 300, 'status': {'charging': True}} @@ -54,7 +54,7 @@ assert result == new When a key whose value is a dict is absent from `new`, the delete delta records `None` to signal "remove the entire key": ```python -from diff import jay_diff_del +from jaydiff import jay_diff_del jay_diff_del({'a': 1, 'b': {'x': 1, 'y': 2}}, {'a': 1}) # {'b': None} diff --git a/pyproject.toml b/pyproject.toml index e5f4b50..d23edd2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,10 +3,10 @@ requires = ["setuptools>=61"] build-backend = "setuptools.build_meta" [project] -name = "jay-diff" +name = "jaydiff" version = "0.1.0" description = "Lightweight JSON diff / patch library" requires-python = ">=3.10" [tool.setuptools.packages.find] -include = ["jay_diff*"] \ No newline at end of file +include = ["jaydiff*"] \ No newline at end of file