From 9dc14da9ae3ebaa5335f7d98e090bdef1f8433eb Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sun, 17 May 2020 18:25:23 +0000 Subject: [PATCH] Add py-pytest-black-multipy 1.0.0 pytest-black-multipy is a wrapper around pytest-black to allow projects on older Python versions to use the --black paremeter. WWW: https://github.com/jaraco/pytest-black-multipy --- devel/Makefile | 1 + devel/py-pytest-black-multipy/Makefile | 34 +++++++++++++++++++++++++ devel/py-pytest-black-multipy/distinfo | 3 +++ devel/py-pytest-black-multipy/pkg-descr | 4 +++ 4 files changed, 42 insertions(+) create mode 100644 devel/py-pytest-black-multipy/Makefile create mode 100644 devel/py-pytest-black-multipy/distinfo create mode 100644 devel/py-pytest-black-multipy/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index 889b80636b86..ed3c9e389a99 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4902,6 +4902,7 @@ SUBDIR += py-pytest-azurepipelines SUBDIR += py-pytest-benchmark SUBDIR += py-pytest-black + SUBDIR += py-pytest-black-multipy SUBDIR += py-pytest-cache SUBDIR += py-pytest-capturelog SUBDIR += py-pytest-cov diff --git a/devel/py-pytest-black-multipy/Makefile b/devel/py-pytest-black-multipy/Makefile new file mode 100644 index 000000000000..8cb3f8d01adb --- /dev/null +++ b/devel/py-pytest-black-multipy/Makefile @@ -0,0 +1,34 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= pytest-black-multipy +PORTVERSION= 1.0.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Allow --black on older Pythons + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=1.15.0:devel/py-setuptools_scm@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.5:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-flake8>=0:devel/py-pytest-flake8@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} >= 3600 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pytest-black>=0:devel/py-pytest-black@${PY_FLAVOR} +.endif + +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v + +.include diff --git a/devel/py-pytest-black-multipy/distinfo b/devel/py-pytest-black-multipy/distinfo new file mode 100644 index 000000000000..c6cf44986f1d --- /dev/null +++ b/devel/py-pytest-black-multipy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1589631128 +SHA256 (pytest-black-multipy-1.0.0.tar.gz) = cd6bf8d9e60af4d97771f848d5efae8eef30c9c77d4bb6f57a767ceb52523cb2 +SIZE (pytest-black-multipy-1.0.0.tar.gz) = 8576 diff --git a/devel/py-pytest-black-multipy/pkg-descr b/devel/py-pytest-black-multipy/pkg-descr new file mode 100644 index 000000000000..f069b5cdf246 --- /dev/null +++ b/devel/py-pytest-black-multipy/pkg-descr @@ -0,0 +1,4 @@ +pytest-black-multipy is a wrapper around pytest-black to allow projects on older +Python versions to use the --black paremeter. + +WWW: https://github.com/jaraco/pytest-black-multipy