diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-15 12:04:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-15 12:04:03 +0100 |
commit | 7fa8a1e3f149eea4c844c47cfe26136ed7614c58 (patch) | |
tree | e514d1b9999d088064bee1e34a3a3c500d6d7a07 /dev-python/tavern | |
parent | d993571e2ee444d08f4e9e90d493ee37338657e3 (diff) |
gentoo auto-resync : 15:04:2024 - 12:04:02
Diffstat (limited to 'dev-python/tavern')
-rw-r--r-- | dev-python/tavern/Manifest | 2 | ||||
-rw-r--r-- | dev-python/tavern/tavern-2.10.3.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/tavern/Manifest b/dev-python/tavern/Manifest index ca57a87ce36e..58bd911edbf3 100644 --- a/dev-python/tavern/Manifest +++ b/dev-python/tavern/Manifest @@ -1,4 +1,6 @@ AUX tavern-2.10.1-pytest-8.patch 1218 BLAKE2B 0f4e488667320fde42f487fe565a5665fad663e80c06c9065cf5377182e3ff7437b1e8e9d31e0d91bdec270958998d601d286ed5cf36bf6826ff55b0301d2b57 SHA512 9a6a4d1b00e69d31cb81767b3ac42fe0ca508b8e134a67497d7a09e700ad95fd5d6b053c39ae0184b148e735655a26272aae33ceab2f228474b62d76175158cb DIST tavern-2.10.1.gh.tar.gz 239917 BLAKE2B 836f4940ba7b9a17455e757a7bdec578effc6753162d0ff0b05c46d293cad840924f3e8d66aac08553478d63eb0edb61ad39f53e4e36d9a7681bae303e71a614 SHA512 a09e55e2fa71d2601833137e51fc94cb8bd65086fc21e6c26055406a6be3dce44b57f89d91d7a766aa88c0b5b4214f28eeda69812f1f623ed60f45f57dcf2ded +DIST tavern-2.10.3.gh.tar.gz 240386 BLAKE2B eb01cdabb171de101784c4fecf99c59fad892e9819e4b047e9d6f30a27b742ac49eb1840a66225466f2de09f8e0883941de92a4051898fe479e35ee06151a0d4 SHA512 e27da0da1d9eb8302ba34191bb9e157a28335c90012569218709f65b761c2f01d47c2e60a4a72df320cb7a2575ee3e890c3dc37027fb91fc90d97305d2afe277 EBUILD tavern-2.10.1.ebuild 1632 BLAKE2B f783ab6745f3a81b5cca4f0a518ac2f13b1445f56506f3055902af5d0132b7060a352dc80e117ab9000f3417b488b14a42a151fa75f08d42b5fc9e5b7e93740d SHA512 5c1ff8c81c6feaf09ceed64f8849a76b621480f8661fb68e5aa260a3d5f14cb7dab0aeffcc7997eb2406927d19efa657ae85b94e94fa4a1f1455c0463a094544 +EBUILD tavern-2.10.3.ebuild 1684 BLAKE2B ef0e4339af7c04183a0a1ba591745dd638280a98e77064bcbb6bbbc92c8303bbab1a27ce1f0f548b93094b280b297e37ad2a0fc1a3b808de857e475d78316c6c SHA512 6fa12613668a4bcd316e6463b64f69757f40c79f6d0c8c65db9d0a28803e55a91cb52ccfd5c0da08341799be7fbac869461c133a81b86f2c82f2455a76c16471 MISC metadata.xml 567 BLAKE2B ea43aa37a078962133a772cb2d283a20b521d17dc7d501fd2d7bad8228e47049e0a9924542b7434d9624d28a9bbc5e43df872462740187d0f4e22f94a5d56469 SHA512 10de2ac011f427eee5eaa897e23198495bd1fa093addf2015830383344f375c9faf660bb7e9e4385995e7ded02f7d954d5d34ca67c88dd00ae517415b8470c92 diff --git a/dev-python/tavern/tavern-2.10.3.ebuild b/dev-python/tavern/tavern-2.10.3.ebuild new file mode 100644 index 000000000000..4b7176787254 --- /dev/null +++ b/dev-python/tavern/tavern-2.10.3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="A tool, library, and Pytest plugin for testing RESTful APIs" +HOMEPAGE=" + https://github.com/taverntesting/tavern/ + https://pypi.org/project/tavern/ +" +SRC_URI=" + https://github.com/taverntesting/tavern/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/jmespath-1[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4[${PYTHON_USEDEP}] + <dev-python/paho-mqtt-2[${PYTHON_USEDEP}] + >=dev-python/paho-mqtt-1.3.1[${PYTHON_USEDEP}] + >=dev-python/pyjwt-2.5.0[${PYTHON_USEDEP}] + >=dev-python/pykwalify-1.8.0[${PYTHON_USEDEP}] + >=dev-python/pytest-7[${PYTHON_USEDEP}] + >=dev-python/python-box-6[${PYTHON_USEDEP}] + >=dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}] + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + >=dev-python/stevedore-4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/colorlog[${PYTHON_USEDEP}] + dev-python/Faker[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + local PATCHES=( + # https://github.com/taverntesting/tavern/pull/922 + "${FILESDIR}/${PN}-2.10.1-pytest-8.patch" + ) + + # strip unnecessary pins, upstream doesn't update them a lot + sed -i -E -e 's:,?<=?[0-9.]+::' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # requires grpc + tests/unit/test_extensions.py::TestGrpcCodes + ) + local EPYTEST_IGNORE=( + # require grpc* + tavern/_plugins/grpc + tests/unit/tavern_grpc + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p tavern +} |