diff --git a/textproc/py-readchar/Makefile b/textproc/py-readchar/Makefile index 6109d787790a..d31e6500cef0 100644 --- a/textproc/py-readchar/Makefile +++ b/textproc/py-readchar/Makefile @@ -1,29 +1,30 @@ PORTNAME= readchar -PORTVERSION= 2.0.0 +DISTVERSIONPREFIX= v +DISTVERSION= 3.0.4 CATEGORIES= textproc devel PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= 0mp@FreeBSD.org COMMENT= Python library to read characters and key strokes LICENSE= MIT LICENSE_FILE= ${WRKSRC}/README.rst 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} \ ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} USES= dos2unix localbase python:3.6+ DOS2UNIX_GLOB= *.py # CHEESESHOP does not seem to work so far. 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) .include diff --git a/textproc/py-readchar/distinfo b/textproc/py-readchar/distinfo index d36cbc199efc..9fe9f45a4e41 100644 --- a/textproc/py-readchar/distinfo +++ b/textproc/py-readchar/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1605719262 -SHA256 (magmax-python-readchar-2.0.0_GH0.tar.gz) = 503c96fbdaa5e96162535dc0a8fb8525582a18a42214909d751f150c8029d694 -SIZE (magmax-python-readchar-2.0.0_GH0.tar.gz) = 6046 +TIMESTAMP = 1618495881 +SHA256 (magmax-python-readchar-v3.0.4_GH0.tar.gz) = c5a1d5c6c22a6a59b76786a6d6731d5dcde168a105704f5ff7dca6a959e07275 +SIZE (magmax-python-readchar-v3.0.4_GH0.tar.gz) = 7280 diff --git a/textproc/py-readchar/files/patch-readchar_readchar.py b/textproc/py-readchar/files/patch-readchar_readchar.py index 03ea584ae01a..f4fde27214fc 100644 --- a/textproc/py-readchar/files/patch-readchar_readchar.py +++ b/textproc/py-readchar/files/patch-readchar_readchar.py @@ -1,11 +1,11 @@ ---- readchar/readchar.py.orig 2020-11-18 17:42:51 UTC +--- readchar/readchar.py.orig 2021-04-15 14:19:54 UTC +++ readchar/readchar.py -@@ -9,6 +9,8 @@ if sys.platform.startswith('linux'): +@@ -6,6 +6,8 @@ import sys + + if sys.platform.startswith("linux"): from .readchar_linux import readchar - elif sys.platform == 'darwin': - from .readchar_linux import readchar -+elif sys.platform.startswith('freebsd'): ++elif sys.platform.startswith("freebsd"): + from .readchar_linux import readchar - elif sys.platform in ('win32', 'cygwin'): - import msvcrt - from .readchar_windows import readchar + elif sys.platform == "darwin": + from .readchar_linux import readchar + elif sys.platform in ("win32", "cygwin"): diff --git a/textproc/py-readchar/files/patch-setup.py b/textproc/py-readchar/files/patch-setup.py index 6e7946793069..2e48641fcd39 100644 --- a/textproc/py-readchar/files/patch-setup.py +++ b/textproc/py-readchar/files/patch-setup.py @@ -1,13 +1,9 @@ ---- setup.py.orig 2020-11-18 17:14:13 UTC +--- setup.py.orig 2021-04-15 14:15:08 UTC +++ setup.py -@@ -75,7 +75,7 @@ setup( +@@ -82,6 +82,5 @@ setup( ], - install_requires=[ + install_requires=[], + setup_requires=[ +- "flake8", ], -- setup_requires=[ -- 'flake8', -- ], -+ #setup_requires=[ -+ # 'flake8', -+ #], )