blob: bf0ee5243a98102d522bf2bd361d3d2a3be5070f (
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
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1
DESCRIPTION="Asynchronous file IO for Linux MacOS or Windows"
HOMEPAGE="
https://github.com/mosquito/caio
https://pypi.org/project/caio/
"
SRC_URI="https://github.com/mosquito/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
EPYTEST_PLUGINS=( aiomisc-pytest pytest-rerunfailures )
distutils_enable_tests pytest
src_prepare() {
default
sed -i -E '/extra_compile_args/s/,\s*"-g"|"-g",\s*|"-g"//g' setup.py || die
}
python_test() {
local EPYTEST_DESELECT=(
# fail with default MEMLOCK limit
"tests/test_aio_context.py::test_aio_context[caio.linux_uring]"
"tests/test_aio_context.py::test_aio_context[linux_uring[sqpoll=True]]"
)
rm -rf caio || die
epytest
}
|