pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-test-mock
Module Name: pkgsrc
Committed By: wiz
Date: Tue Apr 4 14:02:44 UTC 2017
Added Files:
pkgsrc/devel/py-test-mock: DESCR Makefile PLIST distinfo
Log Message:
Import py-test-mock-1.6.0 as devel/py-test-mock.
This plugin installs a mocker fixture which is a thin-wrapper around
the patching API provided by the mock package, but with the benefit
of not having to worry about undoing patches at the end of a test.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-test-mock/DESCR \
pkgsrc/devel/py-test-mock/Makefile pkgsrc/devel/py-test-mock/PLIST \
pkgsrc/devel/py-test-mock/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/py-test-mock/DESCR
diff -u /dev/null pkgsrc/devel/py-test-mock/DESCR:1.1
--- /dev/null Tue Apr 4 14:02:44 2017
+++ pkgsrc/devel/py-test-mock/DESCR Tue Apr 4 14:02:44 2017
@@ -0,0 +1,3 @@
+This plugin installs a mocker fixture which is a thin-wrapper around
+the patching API provided by the mock package, but with the benefit
+of not having to worry about undoing patches at the end of a test.
Index: pkgsrc/devel/py-test-mock/Makefile
diff -u /dev/null pkgsrc/devel/py-test-mock/Makefile:1.1
--- /dev/null Tue Apr 4 14:02:44 2017
+++ pkgsrc/devel/py-test-mock/Makefile Tue Apr 4 14:02:44 2017
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2017/04/04 14:02:44 wiz Exp $
+
+DISTNAME= pytest-mock-1.6.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-mock/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://pypi.python.org/pypi/pytest-mock
+COMMENT= Thin-wrapper around the mock package for easier use with py.test
+LICENSE= mit
+
+DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+
+# needs to be installed first
+# one test failure as of 1.6.0
+# https://github.com/pytest-dev/pytest-mock/issues/81
+do-test:
+ cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-test-mock/PLIST
diff -u /dev/null pkgsrc/devel/py-test-mock/PLIST:1.1
--- /dev/null Tue Apr 4 14:02:44 2017
+++ pkgsrc/devel/py-test-mock/PLIST Tue Apr 4 14:02:44 2017
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2017/04/04 14:02:44 wiz Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/_pytest_mock_version.py
+${PYSITELIB}/_pytest_mock_version.pyc
+${PYSITELIB}/_pytest_mock_version.pyo
+${PYSITELIB}/pytest_mock.py
+${PYSITELIB}/pytest_mock.pyc
+${PYSITELIB}/pytest_mock.pyo
Index: pkgsrc/devel/py-test-mock/distinfo
diff -u /dev/null pkgsrc/devel/py-test-mock/distinfo:1.1
--- /dev/null Tue Apr 4 14:02:44 2017
+++ pkgsrc/devel/py-test-mock/distinfo Tue Apr 4 14:02:44 2017
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/04/04 14:02:44 wiz Exp $
+
+SHA1 (pytest-mock-1.6.0.tar.gz) = d468000677ef337d9f59d34859837fa0dea85409
+RMD160 (pytest-mock-1.6.0.tar.gz) = 6b350c9f5cdc1864928073bc94001a5782a3e76c
+SHA512 (pytest-mock-1.6.0.tar.gz) = c3b897be9156d57d7012e95b620c543500b849d7076224e3328d3783311210c57141dfb82c01bb98e5e419125dce0f68f6631bd610f4909f5ac1798458a7949f
+Size (pytest-mock-1.6.0.tar.gz) = 17780 bytes
Home |
Main Index |
Thread Index |
Old Index