svn commit: r505337 - in head/devel: . py-pytest-virtualenv
Steve Wills
swills at FreeBSD.org
Sat Jun 29 09:27:59 UTC 2019
Author: swills
Date: Sat Jun 29 09:27:57 2019
New Revision: 505337
URL: https://svnweb.freebsd.org/changeset/ports/505337
Log:
devel/py-pytest-virtualenv: create port
Create a Python virtual environment in your test that cleans up on teardown.
The fixture has utility methods to install packages and list what's installed.
WWW: https://github.com/manahl/pytest-plugins/tree/master/pytest-virtualenv
Added:
head/devel/py-pytest-virtualenv/
head/devel/py-pytest-virtualenv/Makefile (contents, props changed)
head/devel/py-pytest-virtualenv/distinfo (contents, props changed)
head/devel/py-pytest-virtualenv/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile (contents, props changed)
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sat Jun 29 09:27:37 2019 (r505336)
+++ head/devel/Makefile Sat Jun 29 09:27:57 2019 (r505337)
@@ -4848,6 +4848,7 @@
SUBDIR += py-pytest-sugar
SUBDIR += py-pytest-timeout
SUBDIR += py-pytest-tornado
+ SUBDIR += py-pytest-virtualenv
SUBDIR += py-pytest-xdist
SUBDIR += py-pytest-xprocess
SUBDIR += py-python-Levenshtein
Added: head/devel/py-pytest-virtualenv/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-pytest-virtualenv/Makefile Sat Jun 29 09:27:57 2019 (r505337)
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= pytest-virtualenv
+PORTVERSION= 1.7.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= swills at FreeBSD.org
+COMMENT= Virtualenv fixture for py.test
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-git>=0:devel/py-setuptools-git@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-fixture-config>0:devel/py-pytest-fixture-config@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-shutil>0:devel/py-pytest-shutil@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest>=4.4.0:devel/py-pytest@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}virtualenv>0:devel/py-virtualenv@${PY_FLAVOR}
+
+USES= python
+
+USE_PYTHON= autoplist concurrent distutils
+
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs)
+
+.include <bsd.port.mk>
Added: head/devel/py-pytest-virtualenv/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-pytest-virtualenv/distinfo Sat Jun 29 09:27:57 2019 (r505337)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1560869801
+SHA256 (pytest-virtualenv-1.7.0.tar.gz) = 2270ee8822111ec25db48e9d9f2efec32e68483a015b14cd0d92aeccc6ff820f
+SIZE (pytest-virtualenv-1.7.0.tar.gz) = 15767
Added: head/devel/py-pytest-virtualenv/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-pytest-virtualenv/pkg-descr Sat Jun 29 09:27:57 2019 (r505337)
@@ -0,0 +1,4 @@
+Create a Python virtual environment in your test that cleans up on teardown.
+The fixture has utility methods to install packages and list what's installed.
+
+WWW: https://github.com/manahl/pytest-plugins/tree/master/pytest-virtualenv
More information about the svn-ports-head
mailing list