summaryrefslogtreecommitdiff
path: root/dev-python/tavern
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-28 07:12:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-28 07:12:54 +0000
commit63a01a3024a6fa402d123768cd38f1cabe13adf6 (patch)
tree439fe2938e6178658c16e1109f895390a4786cbd /dev-python/tavern
parent5e9fc028c5219fddb410ed4e213b54cf4618a563 (diff)
gentoo auto-resync : 28:03:2024 - 07:12:54
Diffstat (limited to 'dev-python/tavern')
-rw-r--r--dev-python/tavern/Manifest2
-rw-r--r--dev-python/tavern/tavern-2.10.1.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-python/tavern/Manifest b/dev-python/tavern/Manifest
index 9ccd3d3f18b4..b02ff6197be5 100644
--- a/dev-python/tavern/Manifest
+++ b/dev-python/tavern/Manifest
@@ -1,3 +1,5 @@
+DIST tavern-2.10.1.gh.tar.gz 239917 BLAKE2B 836f4940ba7b9a17455e757a7bdec578effc6753162d0ff0b05c46d293cad840924f3e8d66aac08553478d63eb0edb61ad39f53e4e36d9a7681bae303e71a614 SHA512 a09e55e2fa71d2601833137e51fc94cb8bd65086fc21e6c26055406a6be3dce44b57f89d91d7a766aa88c0b5b4214f28eeda69812f1f623ed60f45f57dcf2ded
DIST tavern-2.9.3.gh.tar.gz 248368 BLAKE2B feccd1c8e50db6def318553186f0dbfc9643c3942e060bb1950305c4e93fac15550b06d7ba5c2c6008175ef5a701f211408da3607ffcf3429d5542c97029cc7b SHA512 525a0b3f2c63fe4a9991ace7e27287898cbcd423e915e9ff4585eb85e0e42f06e499f653b2615b3f98998206b48c6c8f42468fae174ca4d7e7a38bf171b6feda
+EBUILD tavern-2.10.1.ebuild 1523 BLAKE2B 80bf33e5aca508d51c0fa7cd8288bdc85d1766bbad42752b9b80e34faccb87e4f683940114ca34704dd854809d56f25c988c9ff68b5f127fcc736f3266002668 SHA512 cd9a018d27fbd42f3ece8a63d8f7d97deacda88d5c938406397b23d15708b88a9332cc2aff5b2ab26b3646ebeb91c2771ab904115aac82ffc00f301b6cb5f381
EBUILD tavern-2.9.3.ebuild 1522 BLAKE2B 35435e33ab4b99389e05bb9676810021d553d8cd5743bfd6971ed944e4217c36aebcb701a706370fa296b2e3f06a506cd8e1101a25d48072c25711f81308785d SHA512 805f21a2fd46a59d2730f5267c35f26a0eb7108054946754b864607364da8743b85da339b1d0ccc8cd3cd54b4c5514a1387b9dfae4c089752f3edc45d7fbd3bd
MISC metadata.xml 567 BLAKE2B ea43aa37a078962133a772cb2d283a20b521d17dc7d501fd2d7bad8228e47049e0a9924542b7434d9624d28a9bbc5e43df872462740187d0f4e22f94a5d56469 SHA512 10de2ac011f427eee5eaa897e23198495bd1fa093addf2015830383344f375c9faf660bb7e9e4385995e7ded02f7d954d5d34ca67c88dd00ae517415b8470c92
diff --git a/dev-python/tavern/tavern-2.10.1.ebuild b/dev-python/tavern/tavern-2.10.1.ebuild
new file mode 100644
index 000000000000..74fcee9d1337
--- /dev/null
+++ b/dev-python/tavern/tavern-2.10.1.ebuild
@@ -0,0 +1,65 @@
+# 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-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() {
+ # 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
+}