commit: 2f915c1f4a5af2dd55d6eb77a4cc2c68278c30c7 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Dec 20 07:23:30 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Dec 20 08:23:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f915c1f
dev-python/respx: Bump to 0.22.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/respx/Manifest | 1 + dev-python/respx/respx-0.22.0.ebuild | 44 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/dev-python/respx/Manifest b/dev-python/respx/Manifest index 899bbf1b2a9f..6343234dbd40 100644 --- a/dev-python/respx/Manifest +++ b/dev-python/respx/Manifest @@ -1 +1,2 @@ DIST respx-0.21.1.gh.tar.gz 432341 BLAKE2B b375e8bc9370e13855197487e1e8139cf3fede0f03d7ad034ef2c78bce5ad95d3cb8cc7440c2566d188a98a52d0068c13288c7d4ec802e04d2f269a64e1ce326 SHA512 156f34f4635012230b68812f24978136f37f96dc0cf0ea9e80ed2d6a3e0639eb7591ed34933f75d5cda32993852aa034b22389af0fed341ab4ad1002482f2e9c +DIST respx-0.22.0.gh.tar.gz 432547 BLAKE2B 60fb516b3793faeea8f236c3ccfae7dcf20087eb8af8f1fb8c128de454b9fa395f4c7ed6fc5c94c59eff225525de6bc7c2b89bedf882028076fa9fb668a46ac9 SHA512 3cc84edced79475764b00369b5926bb5a74627b3f0c966fdf4e96a1a5944b8ea2fccaa39f77ebde62324762cb4ff5e0b611c910093fc3010e8c8e1dbbbe678e3 diff --git a/dev-python/respx/respx-0.22.0.ebuild b/dev-python/respx/respx-0.22.0.ebuild new file mode 100644 index 000000000000..8d64b6dc6e85 --- /dev/null +++ b/dev-python/respx/respx-0.22.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 + +DESCRIPTION="Mock HTTPX with awesome request patterns and response side effects" +HOMEPAGE=" + https://lundberg.github.io/respx/ + https://pypi.org/project/respx/ + https://github.com/lundberg/respx/ +" +# no tests in pypi sdist +SRC_URI=" + https://github.com/lundberg/respx/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/httpx-0.25.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/flask[${PYTHON_USEDEP}] + dev-python/httpcore[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/starlette[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + epytest -p 'no:*' -p asyncio -o addopts= +}