commit: af69cdb36b97850329442d38c2d6aa0c9365b912 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed May 1 04:09:15 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed May 1 04:34:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af69cdb3
dev-python/orjson: Bump to 3.10.2 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/orjson/Manifest | 1 + dev-python/orjson/orjson-3.10.2.ebuild | 105 +++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) diff --git a/dev-python/orjson/Manifest b/dev-python/orjson/Manifest index 54c2589151f4..744fde7dd27b 100644 --- a/dev-python/orjson/Manifest +++ b/dev-python/orjson/Manifest @@ -27,6 +27,7 @@ DIST num-traits-0.2.18.crate 51930 BLAKE2B 6c40e155d7a52267a7183d8030ef34245492d DIST once_cell-1.19.0.crate 33046 BLAKE2B c14b374eaf4ac0f60acc2e02f7bba270a0e8e0a6978d749cd3cb0ab3eb26907e4fbea70dd5132982f90290381ed18ff8a87fd530f1415fabffac864f157ea380 SHA512 4154876afd34a699ee650d1a8a1c5ee5a25f0ebd9388b8bef2564e33629fae68f113d7507488c68abbe7ea1acf9bbc41813cbbf3ef3e464e3f3b9cc7a51d870c DIST orjson-3.10.0.tar.gz 4912978 BLAKE2B 1722f9b7c853bc2ff4dc2199df4390845eb011ef78b6db9669705334a43cbf3048a8b84b6e3bd21064ec36b4655ee86aab2de9781f50e24a709a7a2160f71f57 SHA512 365acde8f4a9f0ebca95d6151abbd6b7846836ecd24a5688f75fc1a936da6cd205cfb251c6b779d95b3c2da4c79a15e8d6963236cdc6d6bf56c345597d8903bd DIST orjson-3.10.1.tar.gz 4917664 BLAKE2B ee730e23dcf3930bf5a4046c8ea21b5995fef5e244b4ae73dfd6add1606624e22c2628144c5a7c50d498e5857ed785d1f321437449e09839fe3121e3e231df2a SHA512 54b927f407a584b0751403b3473bdb26fa3827e07895a28255b7ef938dc404d36fd388e47ddd0e724916786a3e52ef9fe5f245d8d2732d1cb6880bedb75135cf +DIST orjson-3.10.2.tar.gz 4930110 BLAKE2B 319a0874081c495d1a2528716cef0d2ae4c896e65644126b674a0a97e0e03d60d2be6ceb6eb0b5249885abc2816416ba2cd1ec3a5ac1fd57a80dcac5f14f9c19 SHA512 c38e78ea1110c00840dbbec1228eb23ccccc81e8d11494172db120d350510d5a5a9a9958e16949284306b8532e05cd03c6dbd82509e2e791c019d4c284ab2099 DIST proc-macro2-1.0.79.crate 47200 BLAKE2B fff8e514d618b8ef60d6a4ca7610607641cb25701fc5e8452e0db5f942a3c38c724acbbfb0474823fe0f4864df07958c1524383e7640105266608f1d5a741368 SHA512 8bfa6fc1022556cbabe0050a37b93c5ef1056ebda9d3dd368e705a7c695df9dfb5cd5adc18ad1eadf7338631ad1d5ed6f63f0adff3616429ef8c50a930b1838f DIST proc-macro2-1.0.80.crate 48227 BLAKE2B 1b4d2a1d613af8e03fab7a976707ed9ad4809ba50775992df54de10e5b8deabfcce423ca962fbce5c22090421cb0b8b26b8026d56562aa6569a8acfbb49d55de SHA512 d40181bbc4f83ee66be7721e8f89f9a08e368e12a8a0d4c1dcdb1c29cc72b1bcb8da598de1ad1a155a8182026ab7f8365f7a46fc76d589282fbffbd35aa228a0 DIST pyo3-build-config-0.21.0.crate 30535 BLAKE2B 71bc1756e1640456cce58190d90f7c1059b9748d9d72a122dd4e28c74ba96cb9fd2bbd80791d3edf313349cc0fbaa669c8e9cecfc925c9828ac794fda17a6ed4 SHA512 ac1ee7389fe267c28ff67f5d6a23bdba57ad2e0dff16e7ef38bc2bc95d0a2a4aca0b1fe4cac8510163c6c5a44bdac128f36d7b34655dff5f8e690db38e5edc6a diff --git a/dev-python/orjson/orjson-3.10.2.ebuild b/dev-python/orjson/orjson-3.10.2.ebuild new file mode 100644 index 000000000000..65dee6590f2a --- /dev/null +++ b/dev-python/orjson/orjson-3.10.2.ebuild @@ -0,0 +1,105 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +PYTHON_COMPAT=( python3_{10..12} ) + +CRATES=" + ahash@0.8.11 + arrayvec@0.7.4 + associative-cache@2.0.0 + autocfg@1.2.0 + beef@0.5.2 + bytecount@0.6.7 + castaway@0.2.2 + cc@1.0.94 + cfg-if@1.0.0 + chrono@0.4.34 + compact_str@0.7.1 + const-random-macro@0.1.16 + const-random@0.1.18 + crunchy@0.2.2 + encoding_rs@0.8.34 + getrandom@0.2.14 + half@2.4.1 + itoa@1.0.11 + itoap@1.0.1 + libc@0.2.153 + no-panic@0.1.29 + num-traits@0.2.18 + once_cell@1.19.0 + proc-macro2@1.0.80 + pyo3-build-config@0.21.1 + pyo3-ffi@0.21.1 + quote@1.0.36 + rustversion@1.0.15 + ryu@1.0.17 + serde@1.0.197 + serde_derive@1.0.197 + serde_json@1.0.115 + simdutf8@0.1.4 + smallvec@1.13.2 + static_assertions@1.1.0 + syn@2.0.59 + target-lexicon@0.12.14 + tiny-keccak@2.0.2 + unicode-ident@1.0.12 + version_check@0.9.4 + wasi@0.11.0+wasi-snapshot-preview1 + zerocopy-derive@0.7.32 + zerocopy@0.7.32 +" + +inherit cargo distutils-r1 pypi + +DESCRIPTION="Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy" +HOMEPAGE=" + https://github.com/ijl/orjson/ + https://pypi.org/project/orjson/ +" +SRC_URI+=" + ${CARGO_CRATE_URIS} +" + +LICENSE="|| ( Apache-2.0 MIT )" +# Dependent crate licenses +LICENSE+=" + Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 MIT Unicode-DFS-2016 + || ( Apache-2.0 Boost-1.0 ) +" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + >=virtual/rust-1.72 + test? ( + dev-python/arrow[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ' 'python3*') + ) +" + +QA_FLAGS_IGNORED=".*" + +distutils_enable_tests pytest + +src_prepare() { + # https://github.com/ijl/orjson/issues/480 + sed -e 's:numpy\.NINF:-numpy.inf:' \ + -e 's:numpy\.NZERO:-0.0:' \ + -e 's:numpy\.PZERO:0.0:' \ + -i test/test_numpy.py || die + + distutils-r1_src_prepare +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -s +}