Skip to content

Commit

Permalink
devel/py-matrix-common: Remove outdated PYTHON_REL check after lang/p…
Browse files Browse the repository at this point in the history
…ython37 removal

Approved by:	portmgr (blanket)
With hat:	python
  • Loading branch information
sunpoet committed Aug 26, 2023
1 parent e7268a8 commit fca7d65
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions devel/py-matrix-common/Makefile
Expand Up @@ -13,25 +13,17 @@ LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>19.2.0:devel/py-attrs@${PY_FLAVOR}

TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=18.9.0:devel/py-twisted@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tox>=2.3.1:devel/py-tox@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes

.include <bsd.port.pre.mk>

# Dependency required by Python < 3.8
.if (${PYTHON_REL} < 30800)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.4:devel/py-importlib-metadata@${PY_FLAVOR}
.endif

post-extract:
@${CP} ${FILESDIR}/setup.py ${WRKSRC}/

do-test:
cd ${WRKSRC} && PYTHONPATH="." trial-${PYTHON_VER} tests

.include <bsd.port.post.mk>
.include <bsd.port.mk>

0 comments on commit fca7d65

Please sign in to comment.