View | Details | Raw Unified | Return to bug 251614 | Differences between
and this patch

Collapse All | Expand All

(-)b/comms/Makefile (+1 lines)
Lines 137-142 Link Here
137
    SUBDIR += py-hidapi
137
    SUBDIR += py-hidapi
138
    SUBDIR += py-libimobiledevice
138
    SUBDIR += py-libimobiledevice
139
    SUBDIR += py-libscrc
139
    SUBDIR += py-libscrc
140
    SUBDIR += py-pymodbus
140
    SUBDIR += py-pyserial
141
    SUBDIR += py-pyserial
141
    SUBDIR += py-pyserial-asyncio
142
    SUBDIR += py-pyserial-asyncio
142
    SUBDIR += py-xmodem
143
    SUBDIR += py-xmodem
(-)b/comms/py-pymodbus/Makefile (+38 lines)
Added Link Here
1
PORTNAME=	pymodbus
2
DISTVERSION=	3.1.0
3
CATEGORIES=	comms python
4
MASTER_SITES=	PYPI
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
7
MAINTAINER=	chris@chrullrich.net
8
COMMENT=	Implementation of the Modbus protocol
9
WWW=		https://github.com/pymodbus-dev/pymodbus/
10
11
LICENSE=	BSD3CLAUSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
USES=		python:3.8+
15
USE_PYTHON=	autoplist distutils
16
17
OPTIONS_DEFINE=	REPL SERIAL DATASTORE_REDIS DATASTORE_SQL
18
OPTIONS_DEFAULT=REPL
19
REPL_DESC=	Interactive REPL console
20
SERIAL_DESC=	Support serial port
21
DATASTORE_REDIS_DESC=	Use Redis for server data
22
DATASTORE_SQL_DESC=	Use database for server data (via SQLAlchemy)
23
24
REPL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiohttp>=3.8.1:www/py-aiohttp@${PY_FLAVOR} \
25
			${PYTHON_PKGNAMEPREFIX}prompt-toolkit>=3.0.8:devel/py-prompt-toolkit@${PY_FLAVOR} \
26
			${PYTHON_PKGNAMEPREFIX}typer>=0.6.1:devel/py-typer@${PY_FLAVOR} \
27
			${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR}
28
REPL_EXTRA_PATCHES_OFF=	${PATCHDIR}/extra-patch-NO_REPL
29
30
SERIAL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyserial>=3.5:comms/py-pyserial@${PY_FLAVOR} \
31
			${PYTHON_PKGNAMEPREFIX}pyserial-asyncio>=0.6:comms/py-pyserial-asyncio@${PY_FLAVOR}
32
33
DATASTORE_REDIS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}redis>0:databases/py-redis@${PY_FLAVOR}
34
DATASTORE_SQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlalchemy14>0:databases/py-sqlalchemy14@${PY_FLAVOR}
35
36
NO_ARCH=	yes
37
38
.include <bsd.port.mk>
(-)b/comms/py-pymodbus/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1673787533
2
SHA256 (pymodbus-3.1.0.tar.gz) = eeba02c86b13b1f885c0acc50adf4611df24ab85066ff54daa37c2d883c32525
3
SIZE (pymodbus-3.1.0.tar.gz) = 177256
(-)b/comms/py-pymodbus/files/extra-patch-NO_REPL (+11 lines)
Added Link Here
1
--- setup.cfg.orig	2023-01-14 21:23:03.797249800 +0000
2
+++ setup.cfg	2023-01-15 13:13:52.728391000 +0000
3
@@ -46,8 +46,6 @@
4
 
5
 [options.entry_points]
6
 console_scripts = 
7
-	pymodbus.console = pymodbus.repl.client.main:main
8
-	pymodbus.server  = pymodbus.repl.server.main:app
9
 	pymodbus.simulator = pymodbus.server.simulator.main:main
10
 
11
 [options.packages.find]
(-)b/comms/py-pymodbus/pkg-descr (+4 lines)
Added Link Here
1
Pymodbus is a full Modbus protocol implementation offering
2
asynchronous communications. It can also be used without any
3
third party dependencies (aside from pyserial) if a more
4
lightweight project is needed.

Return to bug 251614