diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2025-10-16 13:07:16 -0700 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2025-10-16 16:15:11 -0700 |
| commit | c79f7de82d50b4238754875682ad886f0c5fed8d (patch) | |
| tree | 6e15d7eb26a11167fc9b83351f1fafb44de9a999 | |
| parent | devel/py-daiquiri: New port: Library to configure Python logging easily (diff) | |
textproc/py-readchar: update 3.1.0 → 4.2.1
| -rw-r--r-- | textproc/py-readchar/Makefile | 17 | ||||
| -rw-r--r-- | textproc/py-readchar/distinfo | 6 | ||||
| -rw-r--r-- | textproc/py-readchar/files/patch-readchar_readchar.py | 11 | ||||
| -rw-r--r-- | textproc/py-readchar/pkg-descr | 2 |
4 files changed, 13 insertions, 23 deletions
diff --git a/textproc/py-readchar/Makefile b/textproc/py-readchar/Makefile index 294df3f72557..82d33773f4d1 100644 --- a/textproc/py-readchar/Makefile +++ b/textproc/py-readchar/Makefile @@ -1,7 +1,6 @@ PORTNAME= readchar DISTVERSIONPREFIX= v -DISTVERSION= 3.1.0 -PORTREVISION= 1 +DISTVERSION= 4.2.1 CATEGORIES= textproc devel PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -10,8 +9,10 @@ COMMENT= Python library to read characters and key strokes WWW= https://github.com/magmax/python-readchar LICENSE= MIT -LICENSE_FILE= ${WRKSRC}/README.rst +LICENSE_FILE= ${WRKSRC}/LICENCE +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \ @@ -19,14 +20,14 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} USES= dos2unix localbase python -DOS2UNIX_GLOB= *.py -# PYPI does not seem to work so far. +USE_PYTHON= autoplist pep517 pytest + USE_GITHUB= yes GH_ACCOUNT= magmax GH_PROJECT= python-${PORTNAME} -USE_PYTHON= autoplist distutils -do-test: - @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test) +DOS2UNIX_GLOB= *.py + +NO_ARCH= yes .include <bsd.port.mk> diff --git a/textproc/py-readchar/distinfo b/textproc/py-readchar/distinfo index 6c7eeb569e07..1133b8838a8e 100644 --- a/textproc/py-readchar/distinfo +++ b/textproc/py-readchar/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1697272359 -SHA256 (magmax-python-readchar-v3.1.0_GH0.tar.gz) = 3b517e754f49421439cd1ae8fa31f9304d6c19603af47339b1b15a7ff25331f6 -SIZE (magmax-python-readchar-v3.1.0_GH0.tar.gz) = 7027 +TIMESTAMP = 1760642705 +SHA256 (magmax-python-readchar-v4.2.1_GH0.tar.gz) = 2c3a6eb9a41c228ab8324b7abaff7a91ec5c8c450b5b81f0853b6f0855b9e692 +SIZE (magmax-python-readchar-v4.2.1_GH0.tar.gz) = 13314 diff --git a/textproc/py-readchar/files/patch-readchar_readchar.py b/textproc/py-readchar/files/patch-readchar_readchar.py deleted file mode 100644 index f4fde27214fc..000000000000 --- a/textproc/py-readchar/files/patch-readchar_readchar.py +++ /dev/null @@ -1,11 +0,0 @@ ---- readchar/readchar.py.orig 2021-04-15 14:19:54 UTC -+++ readchar/readchar.py -@@ -6,6 +6,8 @@ import sys - - if sys.platform.startswith("linux"): - from .readchar_linux import readchar -+elif sys.platform.startswith("freebsd"): -+ from .readchar_linux import readchar - elif sys.platform == "darwin": - from .readchar_linux import readchar - elif sys.platform in ("win32", "cygwin"): diff --git a/textproc/py-readchar/pkg-descr b/textproc/py-readchar/pkg-descr index 6f746d6d8023..e4ace71b8df1 100644 --- a/textproc/py-readchar/pkg-descr +++ b/textproc/py-readchar/pkg-descr @@ -1,2 +1,2 @@ -Library to easily read single chars and key strokes. The idea is to have a +Library to easily read single chars and key strokes. The idea is to have a portable way to read single characters and key-strokes. |
