From nobody Fri Jan 20 11:50:35 2023 X-Original-To: dev-commits-ports-all@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 4NyyVg3Xw4z2v4Q3; Fri, 20 Jan 2023 11:50:35 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NyyVg2yNtz3QK7; Fri, 20 Jan 2023 11:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674215435; 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=PhOqy6mNxLLpatNJptAjMd8R6t2Dsqo3inBp5KnAhAI=; b=r8IyIMSr+oa63qJGXyN5Vqth3jYdQbSo1QqgFJej/Fpp+ArHxq4TlBAs8ZSLWx6nf4ELan 2u6Gdl6aslRsp+BxJnyRhQd5Z8an/oriI4tR+MEiA1ibkBG94I8dd0fLJqZe+YZ0a9Xia/ +GTootkyWfE1ADsycD/s7RNFP+In621zD01Y2GGZIe3KPKUeEXMq4iAM2cX5onIDAn8Wg5 MTCZONO/yailNdzNSzGfb741qOMU8x1KHvYLKg4bgboyiK5llbkK2aI4C8/aKSmc1JsPUl oIOpRnNcV5XNkVyf52KWrpJPAxsCRwPHl9TygnkBrZVF/E0MT6UyeDv6lNNpGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674215435; 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=PhOqy6mNxLLpatNJptAjMd8R6t2Dsqo3inBp5KnAhAI=; b=L3/FhYb+2TYtuZuds8+9DUU6279gEnic1XVbewJOGZk+4xiabCW18sLWjacPaQ2jkh2o9p 5Nhac5j/41aSY1FcwVMazmbdH9oJYbNAfSuO0Ks7fZtB4YJ4WMx75qJ42MkzTAUjwlutqz jMBTfWdBvSmB98bC3QAwEycURRzA031B4TvYQ+fvJr6bHXBE1qZMbjS1hFwwWvuuE26sO4 GqmQOJ1tcqZS23zQdBifkjPKfmK1AtUMOCLmZNbTbcxOWgNhMieHUynPnWHK5NQAVbEnNX zIl2K3Gfct6JBEG8ppkPfB1L5/6lm131j8tTjGx6GHoA9sIMEQJxa2yvpKXVDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674215435; a=rsa-sha256; cv=none; b=X6k7lMpJ6IIgoMTWTYUQt5wcdCyvOXqT5C5H9DrOszT2ZdrDv8qInulK1f5mL2GX3oor1x UUE4MCrAhFRNmKn2R/bEvK3gUFVjbwxQTBTG2FeEBlcyX1fQDNLwX06iY5x9ZIYArHXIEz BjvBmjvAwKk0e++vJ878ikEA9iWkelnk1p5rQUQ3KHqi3qC9JSPr9kNS/xeeMI+TJUtQLn F+YYgSPRIs3KnfaelsMyW5Qie2tmqV/vXuKBKGG4qCStzutzLcxdqKHNw00Zq0DMPTLVZ5 nUdHGX76tfwzDkn/BXyLT3e7iPUm7Wd06gpeuPdVPVS/d5YwNY32ogjIUjapig== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NyyVg21h2zV9H; Fri, 20 Jan 2023 11:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30KBoZKE066066; Fri, 20 Jan 2023 11:50:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30KBoZ3K066065; Fri, 20 Jan 2023 11:50:35 GMT (envelope-from git) Date: Fri, 20 Jan 2023 11:50:35 GMT Message-Id: <202301201150.30KBoZ3K066065@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikael Urankar Subject: git: f665aa3933ec - main - comms/py-pymodbus: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mikael X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f665aa3933ec2173abb4da8aca442e97fb29b18a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=f665aa3933ec2173abb4da8aca442e97fb29b18a commit f665aa3933ec2173abb4da8aca442e97fb29b18a Author: Christian Ullrich AuthorDate: 2023-01-17 17:29:54 +0000 Commit: Mikael Urankar CommitDate: 2023-01-20 11:50:24 +0000 comms/py-pymodbus: Add new port Pymodbus is a full Modbus protocol implementation offering asynchronous communications. It can also be used without any third party dependencies (aside from pyserial) if a more lightweight project is needed. PR: 251614 --- comms/Makefile | 1 + comms/py-pymodbus/Makefile | 38 +++++++++++++++++++++++++++++ comms/py-pymodbus/distinfo | 3 +++ comms/py-pymodbus/files/extra-patch-NO_REPL | 11 +++++++++ comms/py-pymodbus/pkg-descr | 4 +++ 5 files changed, 57 insertions(+) diff --git a/comms/Makefile b/comms/Makefile index f05779176d57..6b62709c275e 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -137,6 +137,7 @@ SUBDIR += py-hidapi SUBDIR += py-libimobiledevice SUBDIR += py-libscrc + SUBDIR += py-pymodbus SUBDIR += py-pyserial SUBDIR += py-pyserial-asyncio SUBDIR += py-xmodem diff --git a/comms/py-pymodbus/Makefile b/comms/py-pymodbus/Makefile new file mode 100644 index 000000000000..b47fdb9da46c --- /dev/null +++ b/comms/py-pymodbus/Makefile @@ -0,0 +1,38 @@ +PORTNAME= pymodbus +DISTVERSION= 3.1.0 +CATEGORIES= comms python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= chris@chrullrich.net +COMMENT= Implementation of the Modbus protocol +WWW= https://github.com/pymodbus-dev/pymodbus/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.8+ +USE_PYTHON= autoplist distutils + +OPTIONS_DEFINE= REPL SERIAL DATASTORE_REDIS DATASTORE_SQL +OPTIONS_DEFAULT=REPL +REPL_DESC= Interactive REPL console +SERIAL_DESC= Support serial port +DATASTORE_REDIS_DESC= Use Redis for server data +DATASTORE_SQL_DESC= Use database for server data (via SQLAlchemy) + +REPL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.8.1:www/py-aiohttp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}prompt-toolkit>=3.0.8:devel/py-prompt-toolkit@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typer>=0.6.1:devel/py-typer@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} +REPL_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-NO_REPL + +SERIAL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyserial>=3.5:comms/py-pyserial@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyserial-asyncio>=0.6:comms/py-pyserial-asyncio@${PY_FLAVOR} + +DATASTORE_REDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}redis>0:databases/py-redis@${PY_FLAVOR} +DATASTORE_SQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlalchemy14>0:databases/py-sqlalchemy14@${PY_FLAVOR} + +NO_ARCH= yes + +.include diff --git a/comms/py-pymodbus/distinfo b/comms/py-pymodbus/distinfo new file mode 100644 index 000000000000..f91621f8d35b --- /dev/null +++ b/comms/py-pymodbus/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1673787533 +SHA256 (pymodbus-3.1.0.tar.gz) = eeba02c86b13b1f885c0acc50adf4611df24ab85066ff54daa37c2d883c32525 +SIZE (pymodbus-3.1.0.tar.gz) = 177256 diff --git a/comms/py-pymodbus/files/extra-patch-NO_REPL b/comms/py-pymodbus/files/extra-patch-NO_REPL new file mode 100644 index 000000000000..84c72f385617 --- /dev/null +++ b/comms/py-pymodbus/files/extra-patch-NO_REPL @@ -0,0 +1,11 @@ +--- setup.cfg.orig 2023-01-14 21:23:03.797249800 +0000 ++++ setup.cfg 2023-01-15 13:13:52.728391000 +0000 +@@ -46,8 +46,6 @@ + + [options.entry_points] + console_scripts = +- pymodbus.console = pymodbus.repl.client.main:main +- pymodbus.server = pymodbus.repl.server.main:app + pymodbus.simulator = pymodbus.server.simulator.main:main + + [options.packages.find] diff --git a/comms/py-pymodbus/pkg-descr b/comms/py-pymodbus/pkg-descr new file mode 100644 index 000000000000..bf78da2e428e --- /dev/null +++ b/comms/py-pymodbus/pkg-descr @@ -0,0 +1,4 @@ +Pymodbus is a full Modbus protocol implementation offering +asynchronous communications. It can also be used without any +third party dependencies (aside from pyserial) if a more +lightweight project is needed.