From nobody Tue Feb 10 08:38:31 2026 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4f9FMW5lHfz6Rj0R for ; Tue, 10 Feb 2026 08:38:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f9FMW1qCHz46FW for ; Tue, 10 Feb 2026 08:38:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770712711; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NTOzMVzN1enQ4n6rboqKCt44zxH5bTVbZT0emJPfCrE=; b=Wcmh/omSwIfcywy+PSNWJdFpTo4SPaTVxNxUoLrse9m6uXOZM+GAgqvNPHUF+GehbtSh7U nitBu9ze3Y8EQ2TH8x//DccrvKB9MyLr+v+8kn54rD9D5U1wg+AxHQbQCW0JKjt3IMD1vT ZQHYSMFuLPb9kEsNeaVCXGG2Irq8mt/octay4u/RGm2Q/VAS+NB4g0c3SycPQYtY0pfGMH WWUs7HHUfTHLkky25WEF274jfPa1x/Ujj24WmgEzVkHOd0Hom/FrAEbmCF3SW7OTYgihTQ b9N24V+Xs9/Odi/K2dckiyKCFgb3qIw1MHAFIsvBIBIV4Zt+PuNbZUtgGVejVw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770712711; a=rsa-sha256; cv=none; b=KWvK3eD9xNbetNM6zhUnV3XqmczAi+Shanz/QfDRVy2tHYTkj25iYBYpFQfVFt3i+NobEW S5vmZLmGHd7dqndU4rLwLzFM6H9BM89oRY/ifBlg7IWHBi0O1Z6cOLL5ILAGMoJ+I1XqCT nnAbLgPmTQsc910TuTPn0HAzoEFnw9h+rtK21SeAxtBSoZVMK88SA81BP8nk8QFsP8eAhV Vy7xYy4IfNXOyriz/D7HtiQWgZiIkvI7FdqcXkFV7aOoNRf0IVqaunPeA/u5oGTWvnYl9U iY+U4t4JwUvh3aAQc1gKJ/Iyuo4qyHXvTjOFSmwrNOWcJtXKPaLgiD7DYd0TcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770712711; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NTOzMVzN1enQ4n6rboqKCt44zxH5bTVbZT0emJPfCrE=; b=c6Vhwq8tkTnl0T0gd3MI3gSoYe+7p3O6yXE6iwF0cn+3397icnS+1bp/1qbxNPI23UiHo6 tpwPD9uYohdhSKPHbggXWUJ+fnNnQrxMc54BljErSWuFbNaWhdaTWAL34NdLI+e+EjMMVZ goWWUdo23blcGfoBussDOslUS3wN0txeOJeKXTZYPw1mUsi5V+QKNXI2c7Rvco1DucBwRz vGuLtVhDI2CVzSODRsEMKk47e5CHQwY2a5rmZGJUvo5nmhkiTEfL0OrG8jYFDcQqaJDzrJ n/dZjPFRpo/JCF4040PDMTg58m/fRf897ZUnJ5P4raxwA8kW+XWRoaoExh5VhA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f9FMW1GQKz19Xc for ; Tue, 10 Feb 2026 08:38:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 435a5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 10 Feb 2026 08:38:31 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Oleksii Samorukov Subject: git: ad1bcf1ac938 - main - comms/py-pyserial-asyncio-fast: New port: async pyserial with improved performance List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: samm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ad1bcf1ac9380b573e868f223efd40a1b7bfe44c Auto-Submitted: auto-generated Date: Tue, 10 Feb 2026 08:38:31 +0000 Message-Id: <698aee87.435a5.5ba87b3b@gitrepo.freebsd.org> The branch main has been updated by samm: URL: https://cgit.FreeBSD.org/ports/commit/?id=ad1bcf1ac9380b573e868f223efd40a1b7bfe44c commit ad1bcf1ac9380b573e868f223efd40a1b7bfe44c Author: Oleksii Samorukov AuthorDate: 2026-02-10 08:31:53 +0000 Commit: Oleksii Samorukov CommitDate: 2026-02-10 08:32:22 +0000 comms/py-pyserial-asyncio-fast: New port: async pyserial with improved performance --- comms/Makefile | 1 + comms/py-pyserial-asyncio-fast/Makefile | 28 ++++++++++++++++++++++ comms/py-pyserial-asyncio-fast/distinfo | 3 +++ .../files/patch-pyproject.toml | 15 ++++++++++++ comms/py-pyserial-asyncio-fast/pkg-descr | 4 ++++ 5 files changed, 51 insertions(+) diff --git a/comms/Makefile b/comms/Makefile index 4ea53334d9c9..2defa1b3938c 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -150,6 +150,7 @@ SUBDIR += py-pyocd-pemicro SUBDIR += py-pyserial SUBDIR += py-pyserial-asyncio + SUBDIR += py-pyserial-asyncio-fast SUBDIR += py-sdm_modbus SUBDIR += py-spsdk SUBDIR += py-streamdeck diff --git a/comms/py-pyserial-asyncio-fast/Makefile b/comms/py-pyserial-asyncio-fast/Makefile new file mode 100644 index 000000000000..cb212c7e7894 --- /dev/null +++ b/comms/py-pyserial-asyncio-fast/Makefile @@ -0,0 +1,28 @@ +PORTNAME= pyserial-asyncio-fast +DISTVERSION= 0.16 +CATEGORIES= comms python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= samm@freebsd.org +COMMENT= Async I/O extension package for the Python Serial Port Extension +WWW= https://github.com/home-assistant-libs/pyserial-asyncio-fast + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyserial>=3.1.1:comms/py-pyserial@${PY_FLAVOR} + +USES= python shebangfix +USE_GITHUB= yes +GH_ACCOUNT= home-assistant-libs +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +do-test: + ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ + ${PYTHON_CMD} ${WRKSRC}/test/test_asyncio.py + +.include diff --git a/comms/py-pyserial-asyncio-fast/distinfo b/comms/py-pyserial-asyncio-fast/distinfo new file mode 100644 index 000000000000..2f5d761bc1ac --- /dev/null +++ b/comms/py-pyserial-asyncio-fast/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1770710068 +SHA256 (home-assistant-libs-pyserial-asyncio-fast-0.16_GH0.tar.gz) = d1eaba255c20b7faf6c7154237819a46b8bb95e8a66f00e234615cc53127e849 +SIZE (home-assistant-libs-pyserial-asyncio-fast-0.16_GH0.tar.gz) = 32558 diff --git a/comms/py-pyserial-asyncio-fast/files/patch-pyproject.toml b/comms/py-pyserial-asyncio-fast/files/patch-pyproject.toml new file mode 100644 index 000000000000..ac4655b9357d --- /dev/null +++ b/comms/py-pyserial-asyncio-fast/files/patch-pyproject.toml @@ -0,0 +1,15 @@ +--- pyproject.toml.orig 2025-03-27 02:34:12 UTC ++++ pyproject.toml +@@ -1,11 +1,9 @@ + [build-system] + build-backend = "setuptools.build_meta" +-requires = ["setuptools>=77.0"] ++requires = ["setuptools"] + + [project] + name = "pyserial-asyncio-fast" +-license = "BSD-3-Clause" +-license-files = ["LICENSE.txt", "CREDITS.rst"] + description = "Python Serial Port Extension - Asynchronous I/O support" + readme = "README.rst" + authors = [{ name = "pySerial-team" }] diff --git a/comms/py-pyserial-asyncio-fast/pkg-descr b/comms/py-pyserial-asyncio-fast/pkg-descr new file mode 100644 index 000000000000..ab346173fa7c --- /dev/null +++ b/comms/py-pyserial-asyncio-fast/pkg-descr @@ -0,0 +1,4 @@ +This module provides asynchronous I/O on serial ports, extending the +pyserial module. This version implements eager writes like cpython asyncio +selector_events does. This can significantly reduce overhead since the asyncio +writer is no longer added and removed frequently.