git: fe5230eba989 - main - devel/py-assertpy: New port

From: Matthew Seaman <matthew_at_FreeBSD.org>
Date: Fri, 22 Sep 2023 18:29:40 UTC
The branch main has been updated by matthew:

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

commit fe5230eba98968dab8737a7f159c9efd149ff014
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2023-09-03 08:21:03 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2023-09-22 18:29:28 +0000

    devel/py-assertpy: New port
    
    Simple assertions library for unit testing in Python
---
 devel/Makefile              |  1 +
 devel/py-assertpy/Makefile  | 19 +++++++++++++++++++
 devel/py-assertpy/distinfo  |  3 +++
 devel/py-assertpy/pkg-descr |  7 +++++++
 4 files changed, 30 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 1f16370bc99d..0a53ca9e085f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4260,6 +4260,7 @@
     SUBDIR += py-asn1crypto
     SUBDIR += py-aspectlib
     SUBDIR += py-aspy.yaml
+    SUBDIR += py-assertpy
     SUBDIR += py-ast-decompiler
     SUBDIR += py-asteval
     SUBDIR += py-astor
diff --git a/devel/py-assertpy/Makefile b/devel/py-assertpy/Makefile
new file mode 100644
index 000000000000..e4a782fc4787
--- /dev/null
+++ b/devel/py-assertpy/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=       assertpy
+PORTVERSION=    1.1
+CATEGORIES=     devel python
+MASTER_SITES=   PYPI
+PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=     matthew@FreeBSD.org
+COMMENT=        Simple assertions library for unit testing in Python
+WWW=            https://github.com/assertpy/assertpy
+
+LICENSE=        BSD3CLAUSE
+LICENSE_FILE=   ${WRKSRC}/LICENSE
+
+USES=           python
+USE_PYTHON=     autoplist concurrent distutils
+
+NO_ARCH=        yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-assertpy/distinfo b/devel/py-assertpy/distinfo
new file mode 100644
index 000000000000..a81d73f91be9
--- /dev/null
+++ b/devel/py-assertpy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1693728491
+SHA256 (assertpy-1.1.tar.gz) = acc64329934ad71a3221de185517a43af33e373bb44dc05b5a9b174394ef4833
+SIZE (assertpy-1.1.tar.gz) = 25421
diff --git a/devel/py-assertpy/pkg-descr b/devel/py-assertpy/pkg-descr
new file mode 100644
index 000000000000..142b92210a8b
--- /dev/null
+++ b/devel/py-assertpy/pkg-descr
@@ -0,0 +1,7 @@
+Simple assertions library for unit testing in Python with a nice
+fluent API. Supports both Python 2 and 3.
+
+Just import the assert_that function, and away you go...
+
+Of course, assertpy works best with a python test runner like pytest
+(our favorite) or Nose.