Date: Tue, 24 Feb 2026 07:05:56 +0000 From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 0351720c5ce3 - main - devel/py-aiofile: New port: Asynchronous file operations Message-ID: <699d4dd4.4658b.652a0558@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=0351720c5ce30e1404a63eb7fdc305f79f4da5d2 commit 0351720c5ce30e1404a63eb7fdc305f79f4da5d2 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-02-24 06:40:36 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-02-24 07:05:50 +0000 devel/py-aiofile: New port: Asynchronous file operations --- devel/Makefile | 1 + devel/py-aiofile/Makefile | 22 ++++++++++++++++++++++ devel/py-aiofile/distinfo | 3 +++ devel/py-aiofile/pkg-descr | 13 +++++++++++++ 4 files changed, 39 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index aee3bedcdcff..66bee19103d2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4386,6 +4386,7 @@ SUBDIR += py-aioapns SUBDIR += py-aioboto3 SUBDIR += py-aiobotocore + SUBDIR += py-aiofile SUBDIR += py-aiofiles SUBDIR += py-aiohttp-apispec SUBDIR += py-aioice diff --git a/devel/py-aiofile/Makefile b/devel/py-aiofile/Makefile new file mode 100644 index 000000000000..a268407b793e --- /dev/null +++ b/devel/py-aiofile/Makefile @@ -0,0 +1,22 @@ +PORTNAME= aiofile +PORTVERSION= 3.9.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Asynchronous file operations +WWW= https://github.com/mosquito/aiofile + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENCE.md + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}caio>0:devel/py-caio@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-aiofile/distinfo b/devel/py-aiofile/distinfo new file mode 100644 index 000000000000..212ac1510d95 --- /dev/null +++ b/devel/py-aiofile/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1771915070 +SHA256 (aiofile-3.9.0.tar.gz) = e5ad718bb148b265b6df1b3752c4d1d83024b93da9bd599df74b9d9ffcf7919b +SIZE (aiofile-3.9.0.tar.gz) = 17943 diff --git a/devel/py-aiofile/pkg-descr b/devel/py-aiofile/pkg-descr new file mode 100644 index 000000000000..aef4117fbe11 --- /dev/null +++ b/devel/py-aiofile/pkg-descr @@ -0,0 +1,13 @@ +Real asynchronous file operations with asyncio support. + +Features: +* Since version 2.0.0 using caio, which contains linux libaio and two + thread-based implementations (c-based and pure-python). +* AIOFile has no internal pointer. You should pass offset and chunk_size for + each operation or use helpers (Reader or Writer). The simplest way is to + use async_open for creating object with file-like interface. +* For Linux using implementation based on libaio. +* For POSIX (MacOS X and optional Linux) using implementation based on + threadpool. +* Otherwise using pure-python thread-based implementation. +* Implementation chooses automatically depending on system compatibility.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?699d4dd4.4658b.652a0558>
