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/pyproject.toml b/pyproject.toml index 8a18edb..240d4ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,12 +5,12 @@ build-backend = "scikit_build_core.build" [project] -name = "jsoncons" -version = "0.0.1" +name = "pybind11_jsoncons" +version = "0.1.0" 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"] 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 99% rename from src/jsoncons/__init__.pyi rename to src/pybind11_jsoncons/__init__.pyi index 5219e88..1ee05f8 100644 --- a/src/jsoncons/__init__.pyi +++ b/src/pybind11_jsoncons/__init__.pyi @@ -2,7 +2,7 @@ Pybind11 bindings for jsoncons ------------------------------ -.. currentmodule:: jsoncons +.. currentmodule:: pybind11_jsoncons .. autosummary:: :toctree: _generate 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 diff --git a/tests/test_basic.py b/tests/test_basic.py index b37232a..035b236 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -4,11 +4,11 @@ import pytest -import jsoncons as m +import pybind11_jsoncons as m def test_version(): - assert m.__version__ == "0.0.1" + assert m.__version__ == "0.1.0" def test_repl():