1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00

security/py-keyrings.alt: convert to USES=pytest

The tests still fail because of pycrypto which is not compatible
with our python 3.8. This may be fixed by either updating [1] this
port to a newer version which drops the pycrypto dependency, or
fixing pycrypto [2].

PR:		263585 [1], 263586 [2]
Reported by:	reprise
Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2022-04-26 18:16:43 +03:00
parent a82890065c
commit 0a452342de

View File

@ -14,13 +14,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=1.15.0:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.8:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}keyring>=10.3.1:security/py-keyring@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycrypto>0:security/py-pycrypto@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}fs>=0.5:devel/py-fs@${PY_FLAVOR}
USES= python:3.6+
USES= python:3.6+ pytest
USE_PYTHON= autoplist distutils
NO_ARCH= yes
@ -35,7 +34,4 @@ GNOME_KEYRING_USES= gnome
GNOME_KEYRING_USE= GNOME=pygobject3
PYFS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fs>=0.5:devel/py-fs@${PY_FLAVOR}
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
.include <bsd.port.mk>