diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-08-29 16:24:37 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-08-29 18:29:45 +0200 |
commit | 8b3b2f592d6e206cffba56c2ca1b537139f1b6d0 (patch) | |
tree | 0b9caf72c4f53e08fb7f9697855e807fcd95c4e9 | |
parent | dev-python/orderly-set: New package, v5.2.2 (diff) | |
download | gentoo-8b3b2f592d6e206cffba56c2ca1b537139f1b6d0.tar.gz gentoo-8b3b2f592d6e206cffba56c2ca1b537139f1b6d0.tar.bz2 gentoo-8b3b2f592d6e206cffba56c2ca1b537139f1b6d0.zip |
dev-python/deepdiff: Bump to 8.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | dev-python/deepdiff/Manifest | 1 | ||||
-rw-r--r-- | dev-python/deepdiff/deepdiff-8.0.1.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/deepdiff/Manifest b/dev-python/deepdiff/Manifest index 3a6e7680a331..8e3f48391611 100644 --- a/dev-python/deepdiff/Manifest +++ b/dev-python/deepdiff/Manifest @@ -1 +1,2 @@ DIST deepdiff-7.0.1.tar.gz 421718 BLAKE2B b6441b9c035db0cc6e4fa83811999e8a83b3faed2ea95bcbdad158486e583ea9d707595d2342f83d0c25f6a5c086a8070c714253e2db09fcaf43de1616d46cda SHA512 facc15beb82744a1b8baf29e0d8f06625e8d4ee4ed7ab5f1b131ad9d44134215651d1c6b19493c83532f612d81752df14aec2dbccc73cb5b994e0bafcaf5bbc2 +DIST deepdiff-8.0.1.tar.gz 427721 BLAKE2B 0725a87ef17f9e1984594ccca7d954d608cfa0a6ea2c17b03d679bf5cd67135a1c5e3f21d749c18f1f91a5537e9ddaf179fb5b0a5ea135776415f5c0d82be274 SHA512 240662fb3e2408383fae4f6d4e5707357285e0058828d754dd09a94d1ccc29b854381a542dc2042842c79a57307b02d9ad009cc3106b35b0058612fabc0bcf96 diff --git a/dev-python/deepdiff/deepdiff-8.0.1.ebuild b/dev-python/deepdiff/deepdiff-8.0.1.ebuild new file mode 100644 index 000000000000..f86520659dd2 --- /dev/null +++ b/dev-python/deepdiff/deepdiff-8.0.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A library for comparing dictionaries, iterables, strings and other objects" +HOMEPAGE=" + https://github.com/seperman/deepdiff/ + https://pypi.org/project/deepdiff/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/click-8.1.3[${PYTHON_USEDEP}] + >=dev-python/orderly-set-5.2.2[${PYTHON_USEDEP}] + >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}] +" + +DEPEND=" + test? ( + >=dev-python/jsonpickle-3.0.0[${PYTHON_USEDEP}] + >=dev-python/numpy-1.23.5[${PYTHON_USEDEP}] + dev-python/pydantic[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/tomli-w[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) + ) +" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # unpin deps + sed -i -e 's:==:>=:' requirements.txt || die +} + +python_test() { + local EPYTEST_DESELECT=( + # benchmarks + tests/test_lfucache.py::TestLFUcache::test_lfu + # requires polars + tests/test_hash.py::TestDeepHashPrep::test_polars + ) + + case ${EPYTHON} in + python3.13) + EPYTEST_DESELECT+=( + # changed exception message + "tests/test_command.py::TestCommands::test_diff_command[t1_corrupt.json-t2.json-Expecting property name enclosed in double quotes-1]" + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} |