Skip to content

Commit

Permalink
textproc/py-textfsm: Switch back to PyPI
Browse files Browse the repository at this point in the history
* During QA tests of net-mgmt/py-napalm, runtime errors occured because
  the egg-info of py-textfsm still had version information of the prior
  release (= 1.1.2).

  This was because when version 1.1.3 was released, it was already
  available in the upstream repository, but there was no sdist available
  at PyPI yet.  This was then made up by upstream some months later with
  a corresponding adjustment for the egg-info:

  google/textfsm@v1.1.3...ca3755d

  Therefore, switch back to PyPI, which is the preferred method with
  respect to Python ports and bump PORTREVISION due package change.

While I'm here:

* Re-evaluate and remove no longer required BUILD_DEPENDS.
* Simplify Makefile by switching to USE_PYTHON=pytest.

MFH:		2023Q2
  • Loading branch information
knobix committed Jun 8, 2023
1 parent 7af61c7 commit 767d515
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
14 changes: 4 additions & 10 deletions textproc/py-textfsm/Makefile
@@ -1,7 +1,8 @@
PORTNAME= textfsm
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.3
PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= kai@FreeBSD.org
Expand All @@ -11,21 +12,14 @@ WWW= https://github.com/google/textfsm
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
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}

USES= python:3.6+
USE_GITHUB= yes
GH_ACCOUNT= google
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent distutils pytest

NO_ARCH= yes

do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions textproc/py-textfsm/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1648158435
SHA256 (google-textfsm-v1.1.3_GH0.tar.gz) = b11e4ac4d7e4793449deff3fb90c8ba85e223343670eec0ae5c5c8e94f479f34
SIZE (google-textfsm-v1.1.3_GH0.tar.gz) = 51296
TIMESTAMP = 1686207535
SHA256 (textfsm-1.1.3.tar.gz) = 577ef278a9237f5341ae9b682947cefa4a2c1b24dbe486f94f2c95addc6504b5
SIZE (textfsm-1.1.3.tar.gz) = 55454

0 comments on commit 767d515

Please sign in to comment.