git: 4acceff265ba - main - devel/py-nose3: Add py-nose3 1.3.8

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Jun 2023 07:17:55 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4acceff265bad172974982252a5fbf23a36f52ab

commit 4acceff265bad172974982252a5fbf23a36f52ab
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-06-30 06:59:36 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-06-30 06:59:36 +0000

    devel/py-nose3: Add py-nose3 1.3.8
    
    nose3 is a drop-in fork of nose v1 that is compatible with Python 2.7 and Python
    3.3-3.10 without using lib2to3 or other compatibility layer. It does not yet
    support Python 3.11.
    
    nose extends the test loading and running features of unittest, making it easier
    to write, find and run tests.
    
    By default, nose will run tests in files or directories under the current
    working directory whose names include "test" or "Test" at a word boundary (like
    "test_this" or "functional_test" or "TestClass" but not "libtest"). Test output
    is similar to that of unittest, but also includes captured stdout output from
    failing tests, for easy print-style debugging.
    
    These features, and many more, are customizable through the use of plugins.
    Plugins included with nose provide support for doctest, code coverage and
    profiling, flexible attribute-based test selection, output capture and more.
    More information about writing plugins may be found on in the nose API
    documentation.
---
 devel/Makefile                      |  1 +
 devel/py-nose3/Makefile             | 24 ++++++++++++++++++++++++
 devel/py-nose3/distinfo             |  3 +++
 devel/py-nose3/files/patch-setup.py | 19 +++++++++++++++++++
 devel/py-nose3/pkg-descr            | 18 ++++++++++++++++++
 5 files changed, 65 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 737c5dcf8b08..5818c7788411 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5005,6 +5005,7 @@
     SUBDIR += py-nose-cov
     SUBDIR += py-nose-timer
     SUBDIR += py-nose2
+    SUBDIR += py-nose3
     SUBDIR += py-noseofyeti
     SUBDIR += py-nosexcover
     SUBDIR += py-notebook-shim
diff --git a/devel/py-nose3/Makefile b/devel/py-nose3/Makefile
new file mode 100644
index 000000000000..5f2d9605b43a
--- /dev/null
+++ b/devel/py-nose3/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	nose3
+PORTVERSION=	1.3.8
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	nose extends unittest to make testing easier
+WWW=		https://github.com/jayvdb/nose3
+
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/lgpl.txt
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}-nose
+
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m nose -v
+
+.include <bsd.port.mk>
diff --git a/devel/py-nose3/distinfo b/devel/py-nose3/distinfo
new file mode 100644
index 000000000000..70adba1f65e2
--- /dev/null
+++ b/devel/py-nose3/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1686496668
+SHA256 (nose3-1.3.8.tar.gz) = 762aae22cadb898b00b9d4f4bbb9f8e87f8e0dde6c49a88cd0c554f4e5925b76
+SIZE (nose3-1.3.8.tar.gz) = 924720
diff --git a/devel/py-nose3/files/patch-setup.py b/devel/py-nose3/files/patch-setup.py
new file mode 100644
index 000000000000..50ab9d2bac55
--- /dev/null
+++ b/devel/py-nose3/files/patch-setup.py
@@ -0,0 +1,19 @@
+--- setup.py.orig	2022-11-27 03:47:11 UTC
++++ setup.py
+@@ -27,7 +27,6 @@ try:
+         entry_points = {
+         'console_scripts': [
+             'nosetests = nose:run_exit',
+-            'nosetests%s = nose:run_exit' % py_vers_tag,
+             ],
+         'distutils.commands': [
+             'nosetests = nose.commands:nosetests',
+@@ -104,7 +103,7 @@ setup(
+     license = 'GNU LGPL',
+     keywords = 'test unittest doctest automatic discovery',
+     url = 'https://github.com/jayvdb/nose3',
+-    data_files = [('man/man1', ['nosetests.1'])],
++    data_files = [('share/man/man1', ['nosetests.1'])],
+     package_data = {'': ['*.txt',
+                          'examples/*.py',
+                          'examples/*/*.py']},
diff --git a/devel/py-nose3/pkg-descr b/devel/py-nose3/pkg-descr
new file mode 100644
index 000000000000..2d20a4255619
--- /dev/null
+++ b/devel/py-nose3/pkg-descr
@@ -0,0 +1,18 @@
+nose3 is a drop-in fork of nose v1 that is compatible with Python 2.7 and Python
+3.3-3.10 without using lib2to3 or other compatibility layer. It does not yet
+support Python 3.11.
+
+nose extends the test loading and running features of unittest, making it easier
+to write, find and run tests.
+
+By default, nose will run tests in files or directories under the current
+working directory whose names include "test" or "Test" at a word boundary (like
+"test_this" or "functional_test" or "TestClass" but not "libtest"). Test output
+is similar to that of unittest, but also includes captured stdout output from
+failing tests, for easy print-style debugging.
+
+These features, and many more, are customizable through the use of plugins.
+Plugins included with nose provide support for doctest, code coverage and
+profiling, flexible attribute-based test selection, output capture and more.
+More information about writing plugins may be found on in the nose API
+documentation.