git: 17f8c1b4f1c3 - main - textproc/py-jiter: add port: Fast iterable JSON parser
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 22 Aug 2024 02:04:48 UTC
The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=17f8c1b4f1c3c3d67a2751642a48b50e42afb553 commit 17f8c1b4f1c3c3d67a2751642a48b50e42afb553 Author: Hiroki Tagato <tagattie@FreeBSD.org> AuthorDate: 2024-08-22 02:02:57 +0000 Commit: Hiroki Tagato <tagattie@FreeBSD.org> CommitDate: 2024-08-22 02:04:36 +0000 textproc/py-jiter: add port: Fast iterable JSON parser This is a standalone version of the JSON parser used in pydantic-core. The recommendation is to only use this package directly if you do not use pydantic. WWW: https://github.com/pydantic/jiter --- textproc/Makefile | 1 + textproc/py-jiter/Makefile | 28 ++++++++ textproc/py-jiter/Makefile.crates | 65 +++++++++++++++++++ textproc/py-jiter/distinfo | 133 ++++++++++++++++++++++++++++++++++++++ textproc/py-jiter/pkg-descr | 3 + 5 files changed, 230 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index abbabf39e774..4e90601d1894 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1411,6 +1411,7 @@ SUBDIR += py-jarowinkler SUBDIR += py-jc SUBDIR += py-jinja2-cli + SUBDIR += py-jiter SUBDIR += py-jq SUBDIR += py-json2html SUBDIR += py-jsonslicer diff --git a/textproc/py-jiter/Makefile b/textproc/py-jiter/Makefile new file mode 100644 index 000000000000..104e62ab1c3f --- /dev/null +++ b/textproc/py-jiter/Makefile @@ -0,0 +1,28 @@ +PORTNAME= jiter +DISTVERSION= 0.5.0 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= tagattie@FreeBSD.org +COMMENT= Fast iterable JSON parser +WWW= https://github.com/pydantic/jiter + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/crates/jiter/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}maturin>=1.0<2.0:devel/py-maturin@${PY_FLAVOR} + +USES= cargo python +USE_PYTHON= autoplist pep517 + +CARGO_BUILD= no +CARGO_INSTALL= no + +BINARY_ALIAS= python3=${PYTHON_CMD} + +post-install: + @${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -type f -name '*.so' -exec ${STRIP_CMD} {} ';' + +.include <bsd.port.mk> diff --git a/textproc/py-jiter/Makefile.crates b/textproc/py-jiter/Makefile.crates new file mode 100644 index 000000000000..93ed43dac350 --- /dev/null +++ b/textproc/py-jiter/Makefile.crates @@ -0,0 +1,65 @@ +CARGO_CRATES= ahash-0.8.11 \ + arbitrary-1.3.2 \ + autocfg-1.3.0 \ + bencher-0.1.5 \ + bitvec-1.0.1 \ + cc-1.0.100 \ + cfg-if-1.0.0 \ + codspeed-2.6.0 \ + codspeed-bencher-compat-2.6.0 \ + colored-2.1.0 \ + equivalent-1.0.1 \ + funty-2.0.0 \ + getrandom-0.2.15 \ + hashbrown-0.14.5 \ + heck-0.5.0 \ + indexmap-2.2.6 \ + indoc-2.0.5 \ + itoa-1.0.11 \ + jobserver-0.1.31 \ + lazy_static-1.5.0 \ + lexical-parse-float-0.8.5 \ + lexical-parse-integer-0.8.6 \ + lexical-util-0.8.5 \ + libc-0.2.155 \ + libfuzzer-sys-0.4.7 \ + memoffset-0.9.1 \ + num-bigint-0.4.5 \ + num-integer-0.1.46 \ + num-traits-0.2.19 \ + once_cell-1.19.0 \ + paste-1.0.15 \ + portable-atomic-1.6.0 \ + proc-macro2-1.0.86 \ + pyo3-0.22.0 \ + pyo3-build-config-0.22.0 \ + pyo3-ffi-0.22.0 \ + pyo3-macros-0.22.0 \ + pyo3-macros-backend-0.22.0 \ + quote-1.0.36 \ + radium-0.7.0 \ + ryu-1.0.18 \ + serde-1.0.203 \ + serde_derive-1.0.203 \ + serde_json-1.0.117 \ + smallvec-1.13.2 \ + static_assertions-1.1.0 \ + syn-2.0.68 \ + tap-1.0.1 \ + target-lexicon-0.12.14 \ + unicode-ident-1.0.12 \ + unindent-0.2.3 \ + version_check-0.9.4 \ + wasi-0.11.0+wasi-snapshot-preview1 \ + windows-sys-0.48.0 \ + windows-targets-0.48.5 \ + windows_aarch64_gnullvm-0.48.5 \ + windows_aarch64_msvc-0.48.5 \ + windows_i686_gnu-0.48.5 \ + windows_i686_msvc-0.48.5 \ + windows_x86_64_gnu-0.48.5 \ + windows_x86_64_gnullvm-0.48.5 \ + windows_x86_64_msvc-0.48.5 \ + wyz-0.5.1 \ + zerocopy-0.7.34 \ + zerocopy-derive-0.7.34 diff --git a/textproc/py-jiter/distinfo b/textproc/py-jiter/distinfo new file mode 100644 index 000000000000..a14fcf67dbe0 --- /dev/null +++ b/textproc/py-jiter/distinfo @@ -0,0 +1,133 @@ +TIMESTAMP = 1724271437 +SHA256 (jiter-0.5.0.tar.gz) = 1d916ba875bcab5c5f7d927df998c4cb694d27dceddf3392e58beaf10563368a +SIZE (jiter-0.5.0.tar.gz) = 158300 +SHA256 (rust/crates/ahash-0.8.11.crate) = e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011 +SIZE (rust/crates/ahash-0.8.11.crate) = 43607 +SHA256 (rust/crates/arbitrary-1.3.2.crate) = 7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110 +SIZE (rust/crates/arbitrary-1.3.2.crate) = 32037 +SHA256 (rust/crates/autocfg-1.3.0.crate) = 0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0 +SIZE (rust/crates/autocfg-1.3.0.crate) = 16524 +SHA256 (rust/crates/bencher-0.1.5.crate) = 7dfdb4953a096c551ce9ace855a604d702e6e62d77fac690575ae347571717f5 +SIZE (rust/crates/bencher-0.1.5.crate) = 18827 +SHA256 (rust/crates/bitvec-1.0.1.crate) = 1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c +SIZE (rust/crates/bitvec-1.0.1.crate) = 224375 +SHA256 (rust/crates/cc-1.0.100.crate) = c891175c3fb232128f48de6590095e59198bbeb8620c310be349bfc3afd12c7b +SIZE (rust/crates/cc-1.0.100.crate) = 78474 +SHA256 (rust/crates/cfg-if-1.0.0.crate) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd +SIZE (rust/crates/cfg-if-1.0.0.crate) = 7934 +SHA256 (rust/crates/codspeed-2.6.0.crate) = 3a104ac948e0188b921eb3fcbdd55dcf62e542df4c7ab7e660623f6288302089 +SIZE (rust/crates/codspeed-2.6.0.crate) = 4661 +SHA256 (rust/crates/codspeed-bencher-compat-2.6.0.crate) = ceaba84ea2634603a0f199c07fa39ff4dda61f89a3f9149fb89b035bc317b671 +SIZE (rust/crates/codspeed-bencher-compat-2.6.0.crate) = 2855 +SHA256 (rust/crates/colored-2.1.0.crate) = cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8 +SIZE (rust/crates/colored-2.1.0.crate) = 23348 +SHA256 (rust/crates/equivalent-1.0.1.crate) = 5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5 +SIZE (rust/crates/equivalent-1.0.1.crate) = 6615 +SHA256 (rust/crates/funty-2.0.0.crate) = e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c +SIZE (rust/crates/funty-2.0.0.crate) = 13160 +SHA256 (rust/crates/getrandom-0.2.15.crate) = c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7 +SIZE (rust/crates/getrandom-0.2.15.crate) = 37163 +SHA256 (rust/crates/hashbrown-0.14.5.crate) = e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1 +SIZE (rust/crates/hashbrown-0.14.5.crate) = 141498 +SHA256 (rust/crates/heck-0.5.0.crate) = 2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea +SIZE (rust/crates/heck-0.5.0.crate) = 11517 +SHA256 (rust/crates/indexmap-2.2.6.crate) = 168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26 +SIZE (rust/crates/indexmap-2.2.6.crate) = 82420 +SHA256 (rust/crates/indoc-2.0.5.crate) = b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5 +SIZE (rust/crates/indoc-2.0.5.crate) = 14396 +SHA256 (rust/crates/itoa-1.0.11.crate) = 49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b +SIZE (rust/crates/itoa-1.0.11.crate) = 10563 +SHA256 (rust/crates/jobserver-0.1.31.crate) = d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e +SIZE (rust/crates/jobserver-0.1.31.crate) = 27306 +SHA256 (rust/crates/lazy_static-1.5.0.crate) = bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe +SIZE (rust/crates/lazy_static-1.5.0.crate) = 14025 +SHA256 (rust/crates/lexical-parse-float-0.8.5.crate) = 683b3a5ebd0130b8fb52ba0bdc718cc56815b6a097e28ae5a6997d0ad17dc05f +SIZE (rust/crates/lexical-parse-float-0.8.5.crate) = 180161 +SHA256 (rust/crates/lexical-parse-integer-0.8.6.crate) = 6d0994485ed0c312f6d965766754ea177d07f9c00c9b82a5ee62ed5b47945ee9 +SIZE (rust/crates/lexical-parse-integer-0.8.6.crate) = 33647 +SHA256 (rust/crates/lexical-util-0.8.5.crate) = 5255b9ff16ff898710eb9eb63cb39248ea8a5bb036bea8085b1a767ff6c4e3fc +SIZE (rust/crates/lexical-util-0.8.5.crate) = 85152 +SHA256 (rust/crates/libc-0.2.155.crate) = 97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c +SIZE (rust/crates/libc-0.2.155.crate) = 743539 +SHA256 (rust/crates/libfuzzer-sys-0.4.7.crate) = a96cfd5557eb82f2b83fed4955246c988d331975a002961b07c81584d107e7f7 +SIZE (rust/crates/libfuzzer-sys-0.4.7.crate) = 128332 +SHA256 (rust/crates/memoffset-0.9.1.crate) = 488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a +SIZE (rust/crates/memoffset-0.9.1.crate) = 9032 +SHA256 (rust/crates/num-bigint-0.4.5.crate) = c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7 +SIZE (rust/crates/num-bigint-0.4.5.crate) = 102281 +SHA256 (rust/crates/num-integer-0.1.46.crate) = 7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f +SIZE (rust/crates/num-integer-0.1.46.crate) = 22331 +SHA256 (rust/crates/num-traits-0.2.19.crate) = 071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841 +SIZE (rust/crates/num-traits-0.2.19.crate) = 51631 +SHA256 (rust/crates/once_cell-1.19.0.crate) = 3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92 +SIZE (rust/crates/once_cell-1.19.0.crate) = 33046 +SHA256 (rust/crates/paste-1.0.15.crate) = 57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a +SIZE (rust/crates/paste-1.0.15.crate) = 18374 +SHA256 (rust/crates/portable-atomic-1.6.0.crate) = 7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0 +SIZE (rust/crates/portable-atomic-1.6.0.crate) = 140689 +SHA256 (rust/crates/proc-macro2-1.0.86.crate) = 5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77 +SIZE (rust/crates/proc-macro2-1.0.86.crate) = 48958 +SHA256 (rust/crates/pyo3-0.22.0.crate) = 1962a33ed2a201c637fc14a4e0fd4e06e6edfdeee6a5fede0dab55507ad74cf7 +SIZE (rust/crates/pyo3-0.22.0.crate) = 535742 +SHA256 (rust/crates/pyo3-build-config-0.22.0.crate) = ab7164b2202753bd33afc7f90a10355a719aa973d1f94502c50d06f3488bc420 +SIZE (rust/crates/pyo3-build-config-0.22.0.crate) = 31205 +SHA256 (rust/crates/pyo3-ffi-0.22.0.crate) = c6424906ca49013c0829c5c1ed405e20e2da2dc78b82d198564880a704e6a7b7 +SIZE (rust/crates/pyo3-ffi-0.22.0.crate) = 67420 +SHA256 (rust/crates/pyo3-macros-0.22.0.crate) = 82b2f19e153122d64afd8ce7aaa72f06a00f52e34e1d1e74b6d71baea396460a +SIZE (rust/crates/pyo3-macros-0.22.0.crate) = 7889 +SHA256 (rust/crates/pyo3-macros-backend-0.22.0.crate) = dd698c04cac17cf0fe63d47790ab311b8b25542f5cb976b65c374035c50f1eef +SIZE (rust/crates/pyo3-macros-backend-0.22.0.crate) = 64837 +SHA256 (rust/crates/quote-1.0.36.crate) = 0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7 +SIZE (rust/crates/quote-1.0.36.crate) = 28507 +SHA256 (rust/crates/radium-0.7.0.crate) = dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09 +SIZE (rust/crates/radium-0.7.0.crate) = 10906 +SHA256 (rust/crates/ryu-1.0.18.crate) = f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f +SIZE (rust/crates/ryu-1.0.18.crate) = 47713 +SHA256 (rust/crates/serde-1.0.203.crate) = 7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094 +SIZE (rust/crates/serde-1.0.203.crate) = 77935 +SHA256 (rust/crates/serde_derive-1.0.203.crate) = 500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba +SIZE (rust/crates/serde_derive-1.0.203.crate) = 55867 +SHA256 (rust/crates/serde_json-1.0.117.crate) = 455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3 +SIZE (rust/crates/serde_json-1.0.117.crate) = 146921 +SHA256 (rust/crates/smallvec-1.13.2.crate) = 3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67 +SIZE (rust/crates/smallvec-1.13.2.crate) = 35216 +SHA256 (rust/crates/static_assertions-1.1.0.crate) = a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f +SIZE (rust/crates/static_assertions-1.1.0.crate) = 18480 +SHA256 (rust/crates/syn-2.0.68.crate) = 901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9 +SIZE (rust/crates/syn-2.0.68.crate) = 265035 +SHA256 (rust/crates/tap-1.0.1.crate) = 55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369 +SIZE (rust/crates/tap-1.0.1.crate) = 11316 +SHA256 (rust/crates/target-lexicon-0.12.14.crate) = e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f +SIZE (rust/crates/target-lexicon-0.12.14.crate) = 25508 +SHA256 (rust/crates/unicode-ident-1.0.12.crate) = 3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b +SIZE (rust/crates/unicode-ident-1.0.12.crate) = 42168 +SHA256 (rust/crates/unindent-0.2.3.crate) = c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce +SIZE (rust/crates/unindent-0.2.3.crate) = 7306 +SHA256 (rust/crates/version_check-0.9.4.crate) = 49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f +SIZE (rust/crates/version_check-0.9.4.crate) = 14895 +SHA256 (rust/crates/wasi-0.11.0+wasi-snapshot-preview1.crate) = 9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423 +SIZE (rust/crates/wasi-0.11.0+wasi-snapshot-preview1.crate) = 28131 +SHA256 (rust/crates/windows-sys-0.48.0.crate) = 677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9 +SIZE (rust/crates/windows-sys-0.48.0.crate) = 2628884 +SHA256 (rust/crates/windows-targets-0.48.5.crate) = 9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c +SIZE (rust/crates/windows-targets-0.48.5.crate) = 6904 +SHA256 (rust/crates/windows_aarch64_gnullvm-0.48.5.crate) = 2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8 +SIZE (rust/crates/windows_aarch64_gnullvm-0.48.5.crate) = 418492 +SHA256 (rust/crates/windows_aarch64_msvc-0.48.5.crate) = dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc +SIZE (rust/crates/windows_aarch64_msvc-0.48.5.crate) = 798483 +SHA256 (rust/crates/windows_i686_gnu-0.48.5.crate) = a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e +SIZE (rust/crates/windows_i686_gnu-0.48.5.crate) = 844891 +SHA256 (rust/crates/windows_i686_msvc-0.48.5.crate) = 8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406 +SIZE (rust/crates/windows_i686_msvc-0.48.5.crate) = 864300 +SHA256 (rust/crates/windows_x86_64_gnu-0.48.5.crate) = 53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e +SIZE (rust/crates/windows_x86_64_gnu-0.48.5.crate) = 801619 +SHA256 (rust/crates/windows_x86_64_gnullvm-0.48.5.crate) = 0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc +SIZE (rust/crates/windows_x86_64_gnullvm-0.48.5.crate) = 418486 +SHA256 (rust/crates/windows_x86_64_msvc-0.48.5.crate) = ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538 +SIZE (rust/crates/windows_x86_64_msvc-0.48.5.crate) = 798412 +SHA256 (rust/crates/wyz-0.5.1.crate) = 05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed +SIZE (rust/crates/wyz-0.5.1.crate) = 18790 +SHA256 (rust/crates/zerocopy-0.7.34.crate) = ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087 +SIZE (rust/crates/zerocopy-0.7.34.crate) = 151177 +SHA256 (rust/crates/zerocopy-derive-0.7.34.crate) = 15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b +SIZE (rust/crates/zerocopy-derive-0.7.34.crate) = 37907 diff --git a/textproc/py-jiter/pkg-descr b/textproc/py-jiter/pkg-descr new file mode 100644 index 000000000000..612c80b1e70e --- /dev/null +++ b/textproc/py-jiter/pkg-descr @@ -0,0 +1,3 @@ +This is a standalone version of the JSON parser used in +pydantic-core. The recommendation is to only use this package directly +if you do not use pydantic.