Index: head/security/py-keyrings.alt/Makefile =================================================================== --- head/security/py-keyrings.alt/Makefile (revision 489244) +++ head/security/py-keyrings.alt/Makefile (revision 489245) @@ -1,34 +1,43 @@ # Created by: Douglas Thrift # $FreeBSD$ PORTNAME= keyrings.alt PORTVERSION= 3.0 CATEGORIES= security python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= douglas@douglasthrift.net COMMENT= Alternate Python keyring implementations LICENSE= MIT 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} \ + ${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} -NO_ARCH= yes USES= python USE_PYTHON= autoplist distutils +NO_ARCH= yes + OPTIONS_DEFINE= ENCRYPTED_FILE GNOME_KEYRING KEYCZAR PYFS ENCRYPTED_FILE_DESC= Install pycrypto to support the Encrypted File backend GNOME_KEYRING_DESC= Install GNOME Keyring to support the Gnome backend KEYCZAR_DESC= Install keyczar to support keyring encryption PYFS_DESC= Install pyfilesystem to support the pyfs backend ENCRYPTED_FILE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycrypto>=2.5:security/py-pycrypto@${PY_FLAVOR} GNOME_KEYRING_USE= GNOME=pygobject3 KEYCZAR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}keyczar>=0.71c:security/py-keyczar@${PY_FLAVOR} PYFS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fs>=0.5:devel/py-fs@${PY_FLAVOR} + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest .include Index: head/security/py-keyrings.alt/files/patch-tests_test__crypto.py =================================================================== --- head/security/py-keyrings.alt/files/patch-tests_test__crypto.py (nonexistent) +++ head/security/py-keyrings.alt/files/patch-tests_test__crypto.py (revision 489245) @@ -0,0 +1,13 @@ +# mock dependency set in TEST_DEPENDS is actually backports.unittest_mock +# but this package doesn't exist in the ports tree yet, so adjust the import +# here to import 'mock' proper. TODO + +--- tests/test_crypto.py.orig 2019-01-04 05:26:47 UTC ++++ tests/test_crypto.py +@@ -1,5 +1,5 @@ + import unittest +-from unittest import mock ++import mock + + from .test_file import FileKeyringTests + Property changes on: head/security/py-keyrings.alt/files/patch-tests_test__crypto.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/py-keyrings.alt/files/patch-tests_test__file.py =================================================================== --- head/security/py-keyrings.alt/files/patch-tests_test__file.py (nonexistent) +++ head/security/py-keyrings.alt/files/patch-tests_test__file.py (revision 489245) @@ -0,0 +1,15 @@ +# mock dependency set in TEST_DEPENDS is actually backports.unittest_mock +# but this package doesn't exist in the ports tree yet, so adjust the import +# here to import 'mock' proper. TODO + +--- tests/test_file.py.orig 2019-01-04 05:24:38 UTC ++++ tests/test_file.py +@@ -7,7 +7,7 @@ import unittest + from six.moves import configparser + + import pytest +-from unittest import mock ++import mock + + from keyring.tests.test_backend import BackendBasicTests + from keyring.tests.util import random_string Property changes on: head/security/py-keyrings.alt/files/patch-tests_test__file.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property