dev-python/tavern: Bump to 3.4.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-05-03 03:42:08 +02:00
parent db3ea565c6
commit 3f462ec3bf
2 changed files with 72 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST tavern-3.2.0.gh.tar.gz 708286 BLAKE2B ed5efcbdf4224aa23de12eb37ccbea50c1452f6a99950ea4bc9b373670485687223d12c728b8cb263f00fb6143c1ef659670b07ac38430375d076b47a28b56f7 SHA512 c08c5d6ab0fb1c2ed57797be4eae71d467e917104c1aab232797b09b8c6b1512bb441652f6df48582b2d0949f4f09857faf5f6654f4d2e35e1d278021b88d145
DIST tavern-3.3.3.gh.tar.gz 723923 BLAKE2B 55566efa69187761d1d838e7e2d517d691e5f7ec33fc7cce4812ed045923626082f9434e3900b6a76cd7ce096eef5340d9aa86b26bbf5980f3ad4dee0c2b11c3 SHA512 5b4019408f8443ffeca38d89c46ffdc849a578be92d1d3b859f1efc437da13e50e427f752789d7341af3a878945f303975daedd1692a8f452c76c266d9659086
DIST tavern-3.4.0.gh.tar.gz 726374 BLAKE2B cd7c873847ba86383a8a1f54ad1d36cd837f496b6548e7c5649f901244607ee50b3c836a61d3576070c2eeb1ccfc33ac27e9c068f0e7eae390d38604c6cff067 SHA512 6629958b05c010836a7cae2586f8a7162255dfe31308347e74c81540d9058cefd728a9b954580f27a01137f40b900a90f3ee1f8e524b63e63a36204bbb69609c

View File

@@ -0,0 +1,71 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{12..14} )
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 ~arm64"
RDEPEND="
>=dev-python/hypothesis-6[${PYTHON_USEDEP}]
>=dev-python/jmespath-1[${PYTHON_USEDEP}]
>=dev-python/jsonschema-4[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
>=dev-python/pyjwt-2.5.0[${PYTHON_USEDEP}]
>=dev-python/pykwalify-1.8.0[${PYTHON_USEDEP}]
>=dev-python/pytest-8[${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/simpleeval-1.0.3[${PYTHON_USEDEP}]
>=dev-python/stevedore-4[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/colorlog[${PYTHON_USEDEP}]
dev-python/faker[${PYTHON_USEDEP}]
dev-python/paho-mqtt[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( "${PN}" )
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# requires grpc
tests/unit/test_extensions.py::TestGrpcCodes
# broken with paho-mqtt-2
tests/unit/test_mqtt.py::TestClient::test_context_connection_success
# TODO
tests/unit/response/test_mqtt_response.py::TestResponse::test_same_topic
)
EPYTEST_IGNORE=(
# require grpc*
tavern/_plugins/grpc
tests/unit/tavern_grpc
# require gql
tavern/_plugins/graphql
tests/unit/plugins/graphql
)
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
}