Date: Fri, 4 Jan 2019 05:46:45 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r489245 - in head/security/py-keyrings.alt: . files Message-ID: <201901040546.x045kj9t074527@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Fri Jan 4 05:46:45 2019 New Revision: 489245 URL: https://svnweb.freebsd.org/changeset/ports/489245 Log: security/py-keyrings.alt: Add test support to assist committer QA Add TEST_DEPENDS and (do-)test target to help QA of an upcoming devel/py-fs update [1]. The tests currently pass: 128 passed, 61 skipped in 21.56 seconds While I'm here: - Pet portlint (extra item placed in the USES/USE_x section) PR: 234491 Approved by: portmgr (framework/infrastructure support/compliance) MFH: 2019Q1 Added: head/security/py-keyrings.alt/files/ head/security/py-keyrings.alt/files/patch-tests_test__crypto.py (contents, props changed) head/security/py-keyrings.alt/files/patch-tests_test__file.py (contents, props changed) Modified: head/security/py-keyrings.alt/Makefile Modified: head/security/py-keyrings.alt/Makefile ============================================================================== --- head/security/py-keyrings.alt/Makefile Fri Jan 4 04:40:33 2019 (r489244) +++ head/security/py-keyrings.alt/Makefile Fri Jan 4 05:46:45 2019 (r489245) @@ -15,11 +15,17 @@ 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 @@ -30,5 +36,8 @@ ENCRYPTED_FILE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyc 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 <bsd.port.mk> Added: head/security/py-keyrings.alt/files/patch-tests_test__crypto.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-keyrings.alt/files/patch-tests_test__crypto.py Fri Jan 4 05:46:45 2019 (r489245) @@ -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 + Added: head/security/py-keyrings.alt/files/patch-tests_test__file.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-keyrings.alt/files/patch-tests_test__file.py Fri Jan 4 05:46:45 2019 (r489245) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901040546.x045kj9t074527>