Skip to content

Commit

Permalink
security/py-keyrings.alt: convert to USES=pytest
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AMDmi3 committed Apr 27, 2022
1 parent a828900 commit 0a45234
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions security/py-keyrings.alt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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>

0 comments on commit 0a45234

Please sign in to comment.