Index: head/devel/py-pytest-cache/Makefile =================================================================== --- head/devel/py-pytest-cache/Makefile (revision 393162) +++ head/devel/py-pytest-cache/Makefile (revision 393163) @@ -1,31 +1,31 @@ # Created by: loader # $FreeBSD$ PORTNAME= pytest-cache PORTVERSION= 1.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= loader@FreeBSD.org COMMENT= Pytest plugin with mechanisms for caching across test runs LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.2:${PORTSDIR}/devel/py-pytest \ ${PYTHON_PKGNAMEPREFIX}execnet>=1.2:${PORTSDIR}/sysutils/py-execnet TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest OPTIONS_DEFINE= TESTS TESTS_DESC= Install test suite requirements TESTS_BUILD_DEPENDS= ${TEST_DEPENDS} USES= python USE_PYTHON= autoplist distutils regression-test: build - @cd ${WRKSRC} && py.test + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include Index: head/devel/py-pytest-cache/files/patch-setup.py =================================================================== --- head/devel/py-pytest-cache/files/patch-setup.py (nonexistent) +++ head/devel/py-pytest-cache/files/patch-setup.py (revision 393163) @@ -0,0 +1,36 @@ +--- setup.py.orig 2013-06-04 19:10:04 UTC ++++ setup.py +@@ -1,4 +1,24 @@ + from setuptools import setup ++from setuptools.command.test import test as TestCommand ++ ++class PyTest(TestCommand): ++ user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] ++ ++ def initialize_options(self): ++ TestCommand.initialize_options(self) ++ self.pytest_args = [] ++ ++ def finalize_options(self): ++ TestCommand.finalize_options(self) ++ self.test_args = [] ++ self.test_suite = True ++ ++ def run_tests(self): ++ # import here, because outside the eggs aren't loaded ++ import pytest ++ errno = pytest.main(self.pytest_args) ++ sys.exit(errno) ++ + setup( + name='pytest-cache', + description='pytest plugin with mechanisms for caching across test runs', +@@ -10,6 +30,8 @@ setup( + py_modules=['pytest_cache'], + entry_points={'pytest11': ['cacheprovider = pytest_cache']}, + install_requires=['pytest>=2.2', 'execnet>=1.1.dev1', ], ++ tests_require=['pytest'], ++ cmdclass={'test': PyTest}, + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', Property changes on: head/devel/py-pytest-cache/files/patch-setup.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