From 0e82736d0df44565875b055019ded1be0ac5c319 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 17 Jan 2023 01:13:38 +0000 Subject: gentoo auto-resync : 17:01:2023 - 01:13:38 --- dev-python/Manifest.gz | Bin 260564 -> 260583 bytes dev-python/dnspython/Manifest | 4 +- dev-python/dnspython/dnspython-2.3.0.ebuild | 5 ++ dev-python/dnspython/metadata.xml | 1 + dev-python/platformdirs/Manifest | 1 + .../platformdirs/platformdirs-2.6.2-r1.ebuild | 53 ++++++++++++++++ dev-python/pythran/Manifest | 2 + dev-python/pythran/pythran-0.12.1.ebuild | 67 +++++++++++++++++++++ dev-python/setuptools/Manifest | 2 +- dev-python/setuptools/setuptools-66.0.0.ebuild | 2 +- dev-python/yamlpath/Manifest | 2 + dev-python/yamlpath/yamlpath-3.7.0.ebuild | 54 +++++++++++++++++ 12 files changed, 189 insertions(+), 4 deletions(-) create mode 100644 dev-python/platformdirs/platformdirs-2.6.2-r1.ebuild create mode 100644 dev-python/pythran/pythran-0.12.1.ebuild create mode 100644 dev-python/yamlpath/yamlpath-3.7.0.ebuild (limited to 'dev-python') diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz index 13f2b41f201a..799d96704adf 100644 Binary files a/dev-python/Manifest.gz and b/dev-python/Manifest.gz differ diff --git a/dev-python/dnspython/Manifest b/dev-python/dnspython/Manifest index 97582c4a2f49..76d4f0d28674 100644 --- a/dev-python/dnspython/Manifest +++ b/dev-python/dnspython/Manifest @@ -1,5 +1,5 @@ DIST dnspython-2.2.1.tar.gz 304861 BLAKE2B e6446b91579c6ec0a7266a354ceb58e2f881b55b7376648770ebc2c6104fd815214497516d305b75802e9211703d47a70d66745d872a43afb72f41e55a617652 SHA512 ec545468f604d6131f07259ca154c4f71d445d12c336ac1da0d2f025d6478ada76320a7235119312fed85da071ef309d2531e541d3c2340a50deaf3f4dd7b4eb DIST dnspython-2.3.0.gh.tar.gz 339222 BLAKE2B 1e1bfd1d716f5afce1ccc2e0f1fbb8e575e91619bc32f2c5067f6da4e01ea927dd0a1ed4c35e6c88d34de320befd833c9c17d060ea71918775c1f5f0121b61a8 SHA512 0bb4b41262a1d97b724e48b4dfb70f1fb544c18824e7d2bc2dcb8ef6c943c6c827ce753ae4ccb2ab37e95c8f5ff5d2f4853f238509f21e6299a445760c41e10e EBUILD dnspython-2.2.1-r1.ebuild 1086 BLAKE2B a83956783877012b134c7cb20db4ccf30f603edacc6f8b34aedb56924764f098b5d4ccac5927a167d5fd581f5faaf4aa682283ba50c4a09acadc51cc5e9ff758 SHA512 d827ac2b7f6ff589ea941abcde83d84b577f0229dddc4c99c3cde4af76578eadaf75cfeeebf8559cdcdad2e22aad8ab17216a0098cf75a33ed2f0efe033c2b2b -EBUILD dnspython-2.3.0.ebuild 1097 BLAKE2B 127c57d6ac90424b27bf91e3725084437e3fb8cdecb719ca53c48a1f1bf31f2d76ffc7696f077a176ed373d84e4e773efc4d150a7a5ce940a7454003498c622a SHA512 eb52ebdbd2074af69b4d4277f6078eff75999bbbf5fc76aa7be72749bf0b43b7de3ee5d7addfc5f995b662c1d6395b8406a16ce2b33d4a860430171a70e411e4 -MISC metadata.xml 1651 BLAKE2B ea1ce5f9d27de56010f40b2187ac0b5876c27f41163e966689cb8958304c466011ebea0e5979c73b2ce14e6ed406833d01251982e43af945f868ab57dfdc848f SHA512 3d66dff8a832f935110f27e0f397457940de38a09e158bafa275872f96f1c6c5bb7fd1fd558610a8db64e2a7b9fb91cc6c744d3a7dc2eab3a19b85d526c2975a +EBUILD dnspython-2.3.0.ebuild 1165 BLAKE2B 2eaa432b0b9ec3a6be2ea107511ff92f2eda664c1ff79b6625e6d9dde2bdb3ef95298c2b891dd599643a34dc9def5738c733a40383795123557372dce24e608c SHA512 28b9a3bd007c4263f9ff592accce1d2a2711adfa8d42887d537526d4135853597ced2a773a228f7a8cfd56befeec71bd1a3384faadb1eadac8b0a38cddd4d24f +MISC metadata.xml 1709 BLAKE2B abd502753325fedca3f1ca94818258c9d1b82f88766f9e005b35b3e79aff71ca2efaf06188e73ea30830f80ec011cdf5c42df320130c9295e13d3c427a148f8c SHA512 8c25d579a4a2a7c5ff34c21643a1386a434545f6b9b465f4aa8e07f7da3aee203bbc0341e930ddb767af431f64e8024ddd6cc8513cfce862c5900da4637bb1c8 diff --git a/dev-python/dnspython/dnspython-2.3.0.ebuild b/dev-python/dnspython/dnspython-2.3.0.ebuild index 3362a2edb297..bd524b81f306 100644 --- a/dev-python/dnspython/dnspython-2.3.0.ebuild +++ b/dev-python/dnspython/dnspython-2.3.0.ebuild @@ -30,6 +30,11 @@ RDEPEND=" ) + rthalley/dnspython dnspython diff --git a/dev-python/platformdirs/Manifest b/dev-python/platformdirs/Manifest index be47c58f91c3..8bf6fd64d772 100644 --- a/dev-python/platformdirs/Manifest +++ b/dev-python/platformdirs/Manifest @@ -1,3 +1,4 @@ DIST platformdirs-2.6.2.gh.tar.gz 21184 BLAKE2B 4acc85301f764d4457ace88f9fb409e4d2f8bb17b9133dc3316c4d265a7cf50019298f1ba4cef87f5999b48fd7060687f7008079de26ffe74740a4cefff9309e SHA512 704cc39ba1746055e0459139759e118bd6178fb13cc8ecf580f58d16073fbb8ade0bce8b5eb9230ccc45b19f622a41c84a06f8698ee722da9d5cec44c5f46e25 +EBUILD platformdirs-2.6.2-r1.ebuild 1377 BLAKE2B c74fedf30ac96fe48e572e9ab0b418f1c3ab32417812a36cf80016b33a9b90fddb190a361db59144673e4cca7a69a95b9de3f10ba9543c8db188e20469719006 SHA512 ad659ffb05e7c733fcc6debba63280c035138f0d46ac8aba8a71623bc3cd6de9a07587fc2a2c995a58ddc0eeb6b05befaf44e8115d2a3b0284704ad3b56ac0af EBUILD platformdirs-2.6.2.ebuild 830 BLAKE2B fdaad417953f5004c38e104dfee1944c741694e1473b1bd1e6f53a4d6d84fdce0a22e6e94abcf204bba22226a779a82d1061394154e6c42722801c12ab9b1a1e SHA512 c5b002faff3a3431ba0c4c0fcde2e703883da5d514241b65c29faf7cacc1219f4f1f57531f50b76ab6a34851a24fe0d599fe136ef174109229467918065d1c1a MISC metadata.xml 383 BLAKE2B b8c8c1593d154e7a38ca4bc450c14ca21f2411ea1d71f67e9631c1def0acace43ebb6e67adc0c4a1f5f14aadfbce44d0d815fc3696410bef66c826fd5fb00a45 SHA512 f4ba6722e1cf661b3febe10bb15755a9cbc30226a08bdcabfa3d80be87b42d662d6a1edb3412ad79e8f36836a6dd4fd91a83dae29725ec47041056dc1f1f9b75 diff --git a/dev-python/platformdirs/platformdirs-2.6.2-r1.ebuild b/dev-python/platformdirs/platformdirs-2.6.2-r1.ebuild new file mode 100644 index 000000000000..dbbb346e5305 --- /dev/null +++ b/dev-python/platformdirs/platformdirs-2.6.2-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{9..11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A small Python module for determining appropriate platform-specific dirs" +HOMEPAGE=" + https://pypi.org/project/platformdirs/ + https://github.com/platformdirs/platformdirs/ +" +SRC_URI=" + https://github.com/platformdirs/platformdirs/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_configure() { + grep -q 'build-backend = "hatchling' pyproject.toml || + die "Upstream changed build-backend, recheck" + # write a custom pyproject.toml to ease setuptools bootstrap + cat > pyproject.toml <<-EOF || die + [build-system] + requires = ["flit_core >=3.2,<4"] + build-backend = "flit_core.buildapi" + + [project] + name = "${PN}" + version = "${PV}" + description = 'A small Python package for determining appropriate platform-specific dirs, e.g. a "user data dir".' + EOF + # sigh + cat > src/platformdirs/version.py <<-EOF || die + __version__ = version = '${PV}' + __version_tuple__ = version_tuple = (${PV//./, }) + EOF +} diff --git a/dev-python/pythran/Manifest b/dev-python/pythran/Manifest index ccf9aafda6f2..514271979394 100644 --- a/dev-python/pythran/Manifest +++ b/dev-python/pythran/Manifest @@ -2,7 +2,9 @@ AUX pythran-0.10.0-tests-werror.patch 480 BLAKE2B ac7b6fe2cd4b4aeed3be4baf2a433f AUX pythran-0.12.0-gcc13.patch 1472 BLAKE2B f385cfd607a77a72fd5815502416b267342dc6d9307b5d6974ea4a5188233b19efaf389fa90051b9435130a63aa892870a9d573d3c7f50a5cdf83b034a15d3d1 SHA512 b42398b068da7fbe35e9f8fdf76579102347f63f63b94ed2db1966b15e3ff53c26a1a015a8a5a53a36d4e0cd1ed4689f9f4fae120741dd6804fc9a3adc78404a DIST pythran-0.11.0.gh.tar.gz 3582011 BLAKE2B 532afe9edd84d2699254bcad330dc03fcda4defce73997ec9feecf1a9e0c8f4fd407a5c4ebae7e10f96463a43453137953dc3e4df010ae7fb63d540d41b79f53 SHA512 bd703148f26a0511f5a21e691e62f4e9b7bf5a92548f8ac837b2d24135917b71b052941180c9801f29c457018eb57e5f5107a509d6815d8dd8ddab1b8626b1a1 DIST pythran-0.12.0.gh.tar.gz 3589256 BLAKE2B 5eeba4b7d73e56cc2b696098edb085e11d406485960614b50426e3df7c425ad22537ae72a2931a9ec318ab23153660da543ec1890f03379981eee10a34b82cea SHA512 8f698cb2efc8e53005a6a18b81b9119796d56e638c4634d3a9268bc8d4ac340c7ff1a26212f17210ad7200eb8a3e0f9dd20702d9d9c51f24a76dadc7d0877693 +DIST pythran-0.12.1.gh.tar.gz 3631063 BLAKE2B c680639a88cd63398f88ee6f5325da288c06549bfef2ee649e27dd92114a2690f54fb3da730c4eb30ff9b7ef297c219bafa5f7f7153b7710d348859a04716e84 SHA512 05c4e1d03de3eebccbb915e13c70a36de293152aece58066f2d91d483d3ac920d61c7a76adcb2337f60e637734451775f0fc61341b0ef9fc4f074a752e39de9d EBUILD pythran-0.11.0.ebuild 1216 BLAKE2B a52ebc760871fe23a5c742cd7b33c65999ddf17026c32812cdacdffec35ea92554ea58006bc88ad69d803545e9e4ca18327a2317294872727c1d0a2d8e991bba SHA512 4aee5e367450d8e37c1362196b6775b93278c8c6fc81858e31637cd92b87121e0fc131c6fe2bf3579f6b51e3565b1e695788a68326f2d03cd1e93d73b8a4405b EBUILD pythran-0.12.0-r2.ebuild 1493 BLAKE2B fcb8190747e56f4a839b97ed359050b576df5afa3b77b2b15e67827605ea8bd7ec703435abd2856f99695c4d6a5dac0d0d2eee922e19a9fdbf3b700e5ba3163e SHA512 efecabc6d32a28048ba7b77a5b1a9bd57c9e5418157f2eff42631f54ae67d547af270c91c333a0f78971bc344c2333893437b74147978a598a7d3c41a518908e EBUILD pythran-0.12.0.ebuild 1190 BLAKE2B f58ca94bc60ec7bec52df971326730a6e10e827e46a3163c8ba952f4d2455f906f5a69b97ffac4aadf964546ff538d0117ef6f116cfa75d3eb5b0ce5f436b91b SHA512 72983201aa746848dbf0705cfe0e73b67b892cf6142fd7e0a3bcbf60a33662f301dbfd2889317772a91043c218bba295da03ae5c0a1cba4852e82b39552d674f +EBUILD pythran-0.12.1.ebuild 1538 BLAKE2B f9d150049a3d6b4067d78ff939b304d7ee35558de22f2ae8dbe1325c7f4e4d21a86ba98293ce68c5bdd23f578a4e32a2bc105ab742283b0b599c0ded6e1cba6f SHA512 c176edb63eb2aada6cd25961c0bccd9ff28394db271e4866ea73f8ba91f067e1a27552c128552519a4cb644e01fbba3d158c42da0e95624c87f231ab4b25a985 MISC metadata.xml 354 BLAKE2B e7ec71fae294f6f697b0fd99b0ccef24049af7999866344e8da2ebc40bc2988a21f2cb0374b52b781a5f8b55f26ebca364dc93f4e69d957a3ff6bd3c32cd988d SHA512 9008d270ea6757557482edb55c5848aea9a29abfbbad65d93000660a1e51ad2456a2b7ccfcacb80da23b3dd38cee2c4da9645aed48a35edb4a497bbe3a80dd7f diff --git a/dev-python/pythran/pythran-0.12.1.ebuild b/dev-python/pythran/pythran-0.12.1.ebuild new file mode 100644 index 000000000000..dc2e38c346cc --- /dev/null +++ b/dev-python/pythran/pythran-0.12.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_TESTED=( python3_{9..11} ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) + +inherit distutils-r1 multiprocessing + +MY_P=${P/_p/.post} +DESCRIPTION="Ahead of Time compiler for numeric kernels" +HOMEPAGE=" + https://pypi.org/project/pythran/ + https://github.com/serge-sans-paille/pythran/ +" +SRC_URI=" + https://github.com/serge-sans-paille/pythran/archive/${PV/_p/.post}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-libs/boost + =dev-python/beniget-0.4*[${PYTHON_USEDEP}] + =dev-python/gast-0.5*[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/ply-3.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/ipython[${PYTHON_USEDEP}] + ' "${PYTHON_TESTED[@]}") + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + virtual/cblas + !!dev-python/setuptools-declarative-requirements + ) +" + +distutils_enable_tests pytest + +src_configure() { + # TODO: package xsimd then set no_xsimd = True + cat >> setup.cfg <<-EOF + [build_py] + no_boost = True + EOF +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO + pythran/tests/test_xdoc.py::TestDoctest::test_cli + pythran/tests/test_xdoc.py::TestDoctest::test_toolchain + ) + + local -x COLUMNS=80 + epytest -n "$(makeopts_jobs)" +} diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest index 6f2cc98c42e2..42dd560fa74d 100644 --- a/dev-python/setuptools/Manifest +++ b/dev-python/setuptools/Manifest @@ -4,5 +4,5 @@ DIST setuptools-65.7.0.tar.gz 2618315 BLAKE2B a0989c3fd0ab476d69885d022eccf1a89d DIST setuptools-66.0.0.tar.gz 2642508 BLAKE2B 3d8dc8d365a4dd41334ed203dd18fe44eb024b560fa82f522c98058d60020a33eec4d1c7767289f0368dc77d5533898b34479e4792b388bab73180bffe8034ed SHA512 107717c61a47299dbb5baffe5948875abc26e6900121726aef7a6042b7156dd13031bbc69c5b930c0d3d2ee99c64741451383826e1d6fb65c12b026620a72ce1 EBUILD setuptools-65.6.3-r1.ebuild 4450 BLAKE2B 0d6c6b9a30319a5f80c03b5a662067f8343400ed80384b2b1680d2258332667d28d28451e67f9332b6079362862392cc7f9c9d5121b8c27c43a7256c54540e48 SHA512 33a6cf573592f6489b6bbee633032a14c79911bcbd828db795020e2f3ea0060af65a85b4db7faa623817a68f9bb6419183fcb6a0451e33566502f84497d2a81b EBUILD setuptools-65.7.0.ebuild 4458 BLAKE2B 18800a23f5c5541c9880be99771fa8bb9ed632cc9717c67d82585a10fb32af7816f9d8f9bcffc3479ba97478e38368e26b2e587b010a89051c4004265989fbe9 SHA512 893337f56824a0bf1887587ba0aa0f6ddf30c4827517a850abbb31f8afb98e1d0425966fe5b5641f5d117fafc4b6ad95f6932c928a122fdebe6aaea9201c0be1 -EBUILD setuptools-66.0.0.ebuild 4361 BLAKE2B 5cea9b3b5d62328aab1aa5e41a8453768d96d19e574320e71efdef330f15eaafad2e2ac2af8dd62a8e4627eb471a2fa18a18ed1f8a94e0a9ad2c4f1f17351e7f SHA512 19a461245ecc6662670f14817d27335fcabb262f1b1f40e954609041479d0856814a77baf772ca1f423e7f09a662fcbc3b1a922d8fad452de91ff6e986c7b407 +EBUILD setuptools-66.0.0.ebuild 4364 BLAKE2B 6ce02fb2c66e747c7d85d7f69b07424dd4aca77dfc3685b4fd66c70a633198fb0ad9f77b9ec7783967b3ae753defd2e198acd7ae1bb25c22cca13bc99345957b SHA512 81bc64e3a741cabd6b666a65369b8c019edd70e7ccb585ffaeefa374c65c9fcd0c2bec3a939af3e9cf1f94e0574d9f950c06ffd2b8ae6fcdf3c4dc2427ecc0f5 MISC metadata.xml 469 BLAKE2B 4a26769b09a3785586b22db850b7fc5c4818f31c3ace9cc94476d35df05e50edf6721f3c95ec615c3b2efe071ef284a54ea2d53566316ba653f7830bb48f80bf SHA512 dd682c4ad2e59a97094ebdabe4d1063e2319ed05e1fe9d8c2fafe069badb3b4cf8bb6d9f50e09d2128e2a081c1c69827407ac8aed644ebf70eb4ca1bc9a57319 diff --git a/dev-python/setuptools/setuptools-66.0.0.ebuild b/dev-python/setuptools/setuptools-66.0.0.ebuild index 0a86678ac7a1..4e9a19e91a47 100644 --- a/dev-python/setuptools/setuptools-66.0.0.ebuild +++ b/dev-python/setuptools/setuptools-66.0.0.ebuild @@ -35,7 +35,7 @@ RDEPEND=" >=dev-python/ordered-set-4.0.2-r1[${PYTHON_USEDEP}] =dev-python/packaging-21.3-r2[${PYTHON_USEDEP}] - >=dev-python/platformdirs-2.6.2[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.6.2-r1[${PYTHON_USEDEP}] >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] $(python_gen_cond_dep ' >=dev-python/importlib_metadata-4.11.1[${PYTHON_USEDEP}] diff --git a/dev-python/yamlpath/Manifest b/dev-python/yamlpath/Manifest index 75acdb977d5d..e8f51807e46d 100644 --- a/dev-python/yamlpath/Manifest +++ b/dev-python/yamlpath/Manifest @@ -1,3 +1,5 @@ DIST yamlpath-3.6.9.gh.tar.gz 220753 BLAKE2B 8110cfccc7376b17bf0248e7a1b4b09962e7180629c3dc0ca5e9106d64a4ce0f3ff3c5aa626ed388ba13d412fb3d0b08d4d8a659c0322a249c28cad5283e133b SHA512 8a7802b890a32423c85f24fc39d7d614a87f30f72ca0e77621ba10eb69fed4bb3c8fa70f687ab30eab1f08036c14a03b4a007332246a5cdf5b15ea47b7280bd4 +DIST yamlpath-3.7.0.gh.tar.gz 224352 BLAKE2B 9a5483847fa765c3f06a4746b6c364ba66657f739383f0eeaac4f639bf44762bf1d3b7c468ec376d2d8d8bc6669daa60512f2202de6ec3407a5dd674d022f50e SHA512 d0ca007065f5efdc7c876d9596b37028881c4b3782f478f4dd87525cc6e316005bf23b930ea723bf524bc455c492c9eb07c50ccfc9333d9d794f110fa63dd268 EBUILD yamlpath-3.6.9.ebuild 845 BLAKE2B 3602549ab8d44150d69b626efbacd222fb726d9a4fa75ceb95743290fb8af537c134716f8247b6a1005ad1c75a370a972f7fa0461885dd2a328ff615da7569f4 SHA512 23a8ffb06ec314ee634f9826636fc71d8d96c6a13ff281794798916f0d6ec647b8270b10e915a56d029e79b01db7528b70ff0931d76e6c6f77cbd9ee9339370e +EBUILD yamlpath-3.7.0.ebuild 1120 BLAKE2B 135fc3c69e2bae9de6765cbe95459d80dc3f47863802c57a0190e7138613f9fd45f73a3994678cfae9c2a9338008d6a815c2fafb1c7cb9c2edc01449c7a1f2f7 SHA512 5ac6f83b72c71088f2baf503b595fdf13c6e460cbc0a020ab50279ae3205b1e165b581601002c0204e9d84cc3f682f05d45037d3afd225efedd58e6541f61bc7 MISC metadata.xml 664 BLAKE2B cdf919f6a46dbc7ed8f2546509a623e0e784da711afaade20ec79b2861e8c83f54f755ce68ec2944bd0edb92f2e05b18a9c0ff93430c185574c41de2d789e03d SHA512 8020ca58f464e2aed71c01c29375b95dda238be6cdb94468a0abe50c7ce0270a42d723318f34cb4eb8728184cbe6769c7e666f43cffde37e6e9f42cab4d7292e diff --git a/dev-python/yamlpath/yamlpath-3.7.0.ebuild b/dev-python/yamlpath/yamlpath-3.7.0.ebuild new file mode 100644 index 000000000000..ad955b668138 --- /dev/null +++ b/dev-python/yamlpath/yamlpath-3.7.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="Command-line processors for YAML/JSON/Compatible data" +HOMEPAGE=" + https://github.com/wwkimball/yamlpath/ + https://github.com/wwkimball/yamlpath/wiki +" +SRC_URI=" + https://github.com/wwkimball/yamlpath/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/ruamel-yaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-console-scripts[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + sed -i -e '/ruamel\.yaml/d' setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + local EPYTEST_DESELECT=() + + if ! has_version "dev-ruby/hiera-eyaml"; then + EPYTEST_DESELECT+=( + tests/test_commands_eyaml_rotate_keys.py + tests/test_commands_yaml_merge.py::Test_commands_yaml_merge::test_yaml_syntax_error + tests/test_commands_yaml_paths.py::Test_yaml_paths::test_search_encrypted_values + ) + fi + + epytest +} -- cgit v1.2.3