From 0a366de47fb7bc5de69de315c3ded379d51b6e58 Mon Sep 17 00:00:00 2001 From: TANG ZHIXIONG Date: Sat, 26 Apr 2025 21:26:26 +0800 Subject: [PATCH 1/6] update --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8a18edb..7a062c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,12 +5,12 @@ build-backend = "scikit_build_core.build" [project] -name = "jsoncons" +name = "pybind11_jsoncons" version = "0.0.1" description="python binding for jsoncons (only what I needed for now)" readme = "README.md" authors = [ - { name = "zhixiong.tang", email = "me@email.com" }, + { name = "zhixiong.tang", email = "dvorak4tzx@email.com" }, ] requires-python = ">=3.7" classifiers = [ @@ -26,6 +26,9 @@ classifiers = [ "Programming Language :: Python :: 3.13", ] +[project.urls] +Homepage = "https://github.com/cubao/jsoncons" + [project.optional-dependencies] test = ["pytest"] From b0d99cfc8698e114dc22d2f54c87e440ce6afbd2 Mon Sep 17 00:00:00 2001 From: TANG ZHIXIONG Date: Sat, 26 Apr 2025 21:32:45 +0800 Subject: [PATCH 2/6] fix --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7a062c3..240d4ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "scikit_build_core.build" [project] name = "pybind11_jsoncons" -version = "0.0.1" +version = "0.1.0" description="python binding for jsoncons (only what I needed for now)" readme = "README.md" authors = [ From 53757e4c81b45ae088558c5b20bfc778633463d8 Mon Sep 17 00:00:00 2001 From: TANG ZHIXIONG Date: Sat, 26 Apr 2025 21:36:29 +0800 Subject: [PATCH 3/6] fix --- CMakeLists.txt | 2 +- Makefile | 1 - README.md | 2 +- src/jsoncons/__init__.pyi | 2 +- tests/test_basic.py | 3 +-- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d0fdc6..a2a5fd9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,4 +52,4 @@ target_link_libraries(_core PRIVATE pybind11::headers) target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION}) # The install directory is the output (wheel) directory -install(TARGETS _core DESTINATION jsoncons) +install(TARGETS _core DESTINATION pybind11_jsoncons) diff --git a/Makefile b/Makefile index ef8bfc5..2e28b5c 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,6 @@ force_clean: pytest: python3 -m pip install pytest - python3 -m jsoncons add 5 4 pytest tests # --capture=tee-sys .PHONY: test pytest diff --git a/README.md b/README.md index 059ac24..c594127 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# jsoncons +# pybind11-jsoncons I'm using this [jsoncon](https://github.com/danielaparker/jsoncon) python binding to filter & transform json data. diff --git a/src/jsoncons/__init__.pyi b/src/jsoncons/__init__.pyi index 5219e88..1ee05f8 100644 --- a/src/jsoncons/__init__.pyi +++ b/src/jsoncons/__init__.pyi @@ -2,7 +2,7 @@ Pybind11 bindings for jsoncons ------------------------------ -.. currentmodule:: jsoncons +.. currentmodule:: pybind11_jsoncons .. autosummary:: :toctree: _generate diff --git a/tests/test_basic.py b/tests/test_basic.py index b37232a..3ecf27c 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -2,10 +2,9 @@ import json +import pybind11_jsoncons as m import pytest -import jsoncons as m - def test_version(): assert m.__version__ == "0.0.1" From 615d8b5a7cd574146b529cf49f04fceec23fd41f Mon Sep 17 00:00:00 2001 From: TANG ZHIXIONG Date: Sat, 26 Apr 2025 21:39:27 +0800 Subject: [PATCH 4/6] fix --- src/{jsoncons => pybind11_jsoncons}/__init__.py | 0 src/{jsoncons => pybind11_jsoncons}/__init__.pyi | 0 src/{jsoncons => pybind11_jsoncons}/__main__.py | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename src/{jsoncons => pybind11_jsoncons}/__init__.py (100%) rename src/{jsoncons => pybind11_jsoncons}/__init__.pyi (100%) rename src/{jsoncons => pybind11_jsoncons}/__main__.py (100%) diff --git a/src/jsoncons/__init__.py b/src/pybind11_jsoncons/__init__.py similarity index 100% rename from src/jsoncons/__init__.py rename to src/pybind11_jsoncons/__init__.py diff --git a/src/jsoncons/__init__.pyi b/src/pybind11_jsoncons/__init__.pyi similarity index 100% rename from src/jsoncons/__init__.pyi rename to src/pybind11_jsoncons/__init__.pyi diff --git a/src/jsoncons/__main__.py b/src/pybind11_jsoncons/__main__.py similarity index 100% rename from src/jsoncons/__main__.py rename to src/pybind11_jsoncons/__main__.py From 93e34ce2a7faf700bc18226078490b7603f7b449 Mon Sep 17 00:00:00 2001 From: TANG ZHIXIONG Date: Sat, 26 Apr 2025 21:39:36 +0800 Subject: [PATCH 5/6] fix --- tests/test_basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_basic.py b/tests/test_basic.py index 3ecf27c..7754678 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -2,9 +2,10 @@ import json -import pybind11_jsoncons as m import pytest +import pybind11_jsoncons as m + def test_version(): assert m.__version__ == "0.0.1" From c3a4a0c5889284c70235ccb25d064a06bbdd06ad Mon Sep 17 00:00:00 2001 From: TANG ZHIXIONG Date: Sat, 26 Apr 2025 21:42:02 +0800 Subject: [PATCH 6/6] fix version --- tests/test_basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_basic.py b/tests/test_basic.py index 7754678..035b236 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -8,7 +8,7 @@ def test_version(): - assert m.__version__ == "0.0.1" + assert m.__version__ == "0.1.0" def test_repl():