git: 236d980a5522 - main - devel/py-coveralls: New port: Show coverage stats online via coveralls.io

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 04 Oct 2022 04:06:24 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=236d980a5522788f0ace6123780ec9a630ae3702

commit 236d980a5522788f0ace6123780ec9a630ae3702
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-04 03:42:02 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-10-04 04:06:21 +0000

    devel/py-coveralls: New port: Show coverage stats online via coveralls.io
---
 devel/Makefile               |  1 +
 devel/py-coveralls/Makefile  | 23 +++++++++++++++++++++++
 devel/py-coveralls/distinfo  |  3 +++
 devel/py-coveralls/pkg-descr |  7 +++++++
 4 files changed, 34 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index d8d08bc26777..eb41d97fe61e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4400,6 +4400,7 @@
     SUBDIR += py-covdefaults
     SUBDIR += py-coverage
     SUBDIR += py-coverage_enable_subprocess
+    SUBDIR += py-coveralls
     SUBDIR += py-cppheaderparser
     SUBDIR += py-cppy
     SUBDIR += py-crank
diff --git a/devel/py-coveralls/Makefile b/devel/py-coveralls/Makefile
new file mode 100644
index 000000000000..8dfb6bb04560
--- /dev/null
+++ b/devel/py-coveralls/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	coveralls
+PORTVERSION=	3.3.1
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Show coverage stats online via coveralls.io
+WWW=		https://github.com/TheKevJames/coveralls-python
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage>=4.1:devel/py-coverage@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}docopt>=0.6.1:devel/py-docopt@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=1.0.0:www/py-requests@${PY_FLAVOR}
+
+USES=		python:3.5+
+USE_PYTHON=	distutils concurrent autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-coveralls/distinfo b/devel/py-coveralls/distinfo
new file mode 100644
index 000000000000..3567244796dc
--- /dev/null
+++ b/devel/py-coveralls/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1664852664
+SHA256 (coveralls-3.3.1.tar.gz) = b32a8bb5d2df585207c119d6c01567b81fba690c9c10a753bfe27a335bfc43ea
+SIZE (coveralls-3.3.1.tar.gz) = 17964
diff --git a/devel/py-coveralls/pkg-descr b/devel/py-coveralls/pkg-descr
new file mode 100644
index 000000000000..c3d83172f236
--- /dev/null
+++ b/devel/py-coveralls/pkg-descr
@@ -0,0 +1,7 @@
+coveralls.io is a service for publishing your coverage stats online.
+This package provides seamless integration with coverage.py (and thus
+pytest, nosetests, etc...) in your Python projects:
+
+> pip install coveralls
+> coverage run --source=mypkg -m pytest tests/
+> coveralls