summaryrefslogtreecommitdiff
path: root/dev-python/cross-web/cross-web-0.6.0.ebuild
blob: dab8e5e150c2325ec6f42c4b86e0a90f00dcd953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{13..14} )

inherit distutils-r1 pypi

DESCRIPTION="A library for working with web frameworks"
HOMEPAGE="
	https://github.com/usecross/cross-web/
	https://pypi.org/project/cross-web/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	>=dev-python/typing-extensions-4.14.0[${PYTHON_USEDEP}]
"
BDEPEND="
	test? (
		>=dev-python/aiohttp-3.9[${PYTHON_USEDEP}]
		>=dev-python/django-4.2[${PYTHON_USEDEP}]
		>=dev-python/fastapi-0.115.12[${PYTHON_USEDEP}]
		>=dev-python/flask-2.3[${PYTHON_USEDEP}]
		>=dev-python/httpx-0.28.1[${PYTHON_USEDEP}]
		>=dev-python/python-multipart-0.0.20[${PYTHON_USEDEP}]
		>=dev-python/quart-0.19[${PYTHON_USEDEP}]
		>=dev-python/starlette-0.46.1[${PYTHON_USEDEP}]
		>=dev-python/werkzeug-2.3[${PYTHON_USEDEP}]
		>=dev-python/yarl-1.9[${PYTHON_USEDEP}]
		>=dev-python/litestar-2.0[${PYTHON_USEDEP}]
	)
"

# chalice seems dead upstream, avoid it for an easier py3.14 transition
EPYTEST_DESELECT=(
	# unpackaged sanic
	"tests/testing/clients/test_http_clients.py::test_request_adapter_json[http_client_config8]"
	"tests/testing/clients/test_http_clients.py::test_request_adapter_form_data[http_client_config8]"
)
EPYTEST_IGNORE=(
	# unpackaged sanic
	tests/request/test_sanic.py
	# avoid chalice
	tests/request/test_chalice.py
)
EPYTEST_PLUGINS=( pytest-asyncio pytest-django )
distutils_enable_tests pytest