dev-python/caio - 0.12.3 (guru)

Search

Install

Install this version:

emerge -a =dev-python/caio-0.12.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/caio-0.12.3

Or alternatively:

emerge --autounmask-write -a =dev-python/caio-0.12.3

Package Information

Description:
Asynchronous file IO for Linux MacOS or Windows
Homepage:
https://github.com/mosquito/caio https://pypi.org/project/caio/
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
0.12.3 8 ~amd64 ~arm64 0
View Raw Ebuild
# 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_{12..15} )

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
}

Inherited Eclasses

Manifest for 0.12.3

Type File Size Source URLs
DIST caio-0.12.3.gh.tar.gz 185295 bytes https://github.com/mosquito/caio/archive/0.12.3.tar.gz