git: 8b454642f100 - main - devel/py-subprocess-tee: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Apr 2022 12:00:43 UTC
The branch main has been updated by matthew:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8b454642f100a1ad6f6cc262c646bacd2548b4f2
commit 8b454642f100a1ad6f6cc262c646bacd2548b4f2
Author: Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2022-04-10 19:48:58 +0000
Commit: Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2022-04-18 11:59:07 +0000
devel/py-subprocess-tee: New port
This package provides a drop-in alternative to subprocess.run that
captures the output while still printing it in real-time, just the way
tee does.
Required as part of the TEST_DEPENDS heirarchy for
sysutils/py-ansible-compat
PR: 263033
---
devel/Makefile | 1 +
devel/py-subprocess-tee/Makefile | 34 ++++++++++++++++++++++++++++++++++
devel/py-subprocess-tee/distinfo | 3 +++
devel/py-subprocess-tee/pkg-descr | 5 +++++
4 files changed, 43 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 009acd42d73e..7b06d26e73c1 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5287,6 +5287,7 @@
SUBDIR += py-stringcase
SUBDIR += py-structlog
SUBDIR += py-stsci.distutils
+ SUBDIR += py-subprocess-tee
SUBDIR += py-subversion
SUBDIR += py-sure
SUBDIR += py-swagger-spec-validator
diff --git a/devel/py-subprocess-tee/Makefile b/devel/py-subprocess-tee/Makefile
new file mode 100644
index 000000000000..5a5cd77855c4
--- /dev/null
+++ b/devel/py-subprocess-tee/Makefile
@@ -0,0 +1,34 @@
+PORTNAME= subprocess-tee
+PORTVERSION= 0.3.5
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= matthew@FreeBSD.org
+COMMENT= Captures output while still printing it in real-time
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>=19.3.1:devel/py-pip@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools>=42:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.5.0:devel/py-setuptools_scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools_scm_git_archive>=1.1:devel/py-setuptools_scm_git_archive@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0.33.6:devel/py-wheel@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}enrich>=1.2.6:textproc/py-enrich@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mock>=4.0.3:devel/py-mock@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}molecule>=3.4.0:devel/py-molecule@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.12.1:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-plus>=0.2:devel/py-pytest-plus@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=2.3.0:devel/py-pytest-xdist@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest>=6.2.5:devel/py-pytest@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+do-test:
+ cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
+
+.include <bsd.port.mk>
diff --git a/devel/py-subprocess-tee/distinfo b/devel/py-subprocess-tee/distinfo
new file mode 100644
index 000000000000..0d0b9d58f4ae
--- /dev/null
+++ b/devel/py-subprocess-tee/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1649506647
+SHA256 (subprocess-tee-0.3.5.tar.gz) = ff5cced589a4b8ac973276ca1ba21bb6e3de600cde11a69947ff51f696efd577
+SIZE (subprocess-tee-0.3.5.tar.gz) = 16887
diff --git a/devel/py-subprocess-tee/pkg-descr b/devel/py-subprocess-tee/pkg-descr
new file mode 100644
index 000000000000..d371e239b01a
--- /dev/null
+++ b/devel/py-subprocess-tee/pkg-descr
@@ -0,0 +1,5 @@
+This package provides a drop-in alternative to subprocess.run that
+captures the output while still printing it in real-time, just the way
+tee does.
+
+WWW: https://github.com/pycontribs/subprocess-tee