summaryrefslogtreecommitdiff
path: root/textproc/py-textfsm
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-textfsm')
-rw-r--r--textproc/py-textfsm/Makefile13
-rw-r--r--textproc/py-textfsm/distinfo6
-rw-r--r--textproc/py-textfsm/files/patch-setup.py17
3 files changed, 17 insertions, 19 deletions
diff --git a/textproc/py-textfsm/Makefile b/textproc/py-textfsm/Makefile
index 5706a623f89c..afd91ce4791b 100644
--- a/textproc/py-textfsm/Makefile
+++ b/textproc/py-textfsm/Makefile
@@ -1,6 +1,5 @@
PORTNAME= textfsm
-DISTVERSION= 1.1.3
-PORTREVISION= 2
+DISTVERSION= 2.1.0
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,13 +11,13 @@ WWW= https://github.com/google/textfsm
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
USES= python
-USE_PYTHON= autoplist concurrent distutils pytest
+USE_PYTHON= autoplist concurrent pep517 pytest
+
+TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
NO_ARCH= yes
diff --git a/textproc/py-textfsm/distinfo b/textproc/py-textfsm/distinfo
index 08362d09108e..d23dd1819785 100644
--- a/textproc/py-textfsm/distinfo
+++ b/textproc/py-textfsm/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1686207535
-SHA256 (textfsm-1.1.3.tar.gz) = 577ef278a9237f5341ae9b682947cefa4a2c1b24dbe486f94f2c95addc6504b5
-SIZE (textfsm-1.1.3.tar.gz) = 55454
+TIMESTAMP = 1756398504
+SHA256 (textfsm-2.1.0.tar.gz) = 45c18ff2b7c90163dfdff7e20d3f482514cc7aac26bc2547744e79dfa761e458
+SIZE (textfsm-2.1.0.tar.gz) = 55486
diff --git a/textproc/py-textfsm/files/patch-setup.py b/textproc/py-textfsm/files/patch-setup.py
index e7a7c499d537..7b632bca1b43 100644
--- a/textproc/py-textfsm/files/patch-setup.py
+++ b/textproc/py-textfsm/files/patch-setup.py
@@ -1,13 +1,12 @@
Remove "testdata" directory from installation. It is only required for the
testsuite.
---- setup.py.orig 2019-11-26 11:17:07 UTC
+--- setup.py.orig 2025-03-21 04:48:22 UTC
+++ setup.py
-@@ -52,7 +52,6 @@ setup(name='textfsm',
- ]
- },
- include_package_data=True,
-- package_data={'textfsm': ['../testdata/*']},
- install_requires=['six', 'future'],
- setup_requires=['pytest-runner'],
- tests_require=['pytest'])
+@@ -50,6 +50,4 @@ setup(
+ ],
+ packages=['textfsm'],
+ entry_points={'console_scripts': ['textfsm=textfsm.parser:main']},
+- include_package_data=True,
+- package_data={'textfsm': ['../testdata/*']},
+ )