git: ed17a9032d94 - main - devel/py-dirty-equals: Add py-dirty-equals 0.7.1.post0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Feb 2024 15:17:05 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=ed17a9032d94a5abd4e97bae56256d105cb04291 commit ed17a9032d94a5abd4e97bae56256d105cb04291 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-02-21 14:12:47 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-02-21 15:06:04 +0000 devel/py-dirty-equals: Add py-dirty-equals 0.7.1.post0 dirty-equals is a python library that (mis)uses the __eq__ method to make python code (generally unit tests) more declarative and therefore easier to read and write. dirty-equals can be used in whatever context you like, but it comes into its own when writing unit tests for applications where you're commonly checking the response to API calls and the contents of a database. --- devel/Makefile | 1 + devel/py-dirty-equals/Makefile | 24 ++++++++++++++++++++++++ devel/py-dirty-equals/distinfo | 3 +++ devel/py-dirty-equals/pkg-descr | 7 +++++++ 4 files changed, 35 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 63bf5921c4d2..539631acdd3a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4614,6 +4614,7 @@ SUBDIR += py-diff-cover SUBDIR += py-dill SUBDIR += py-dirspec + SUBDIR += py-dirty-equals SUBDIR += py-diskcache SUBDIR += py-distlib SUBDIR += py-distributed diff --git a/devel/py-dirty-equals/Makefile b/devel/py-dirty-equals/Makefile new file mode 100644 index 000000000000..cb355195f0c6 --- /dev/null +++ b/devel/py-dirty-equals/Makefile @@ -0,0 +1,24 @@ +PORTNAME= dirty-equals +PORTVERSION= 0.7.1.post0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= dirty_equals-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Do dirty (but extremely useful) things with equals +WWW= https://dirty-equals.helpmanual.io/latest/ \ + https://github.com/samuelcolvin/dirty-equals + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>=2021.3,1:devel/py-pytz@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-dirty-equals/distinfo b/devel/py-dirty-equals/distinfo new file mode 100644 index 000000000000..2756449b6867 --- /dev/null +++ b/devel/py-dirty-equals/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708448818 +SHA256 (dirty_equals-0.7.1.post0.tar.gz) = 78ff80578a46163831ecb3255cf30d03d1dc2fbca8e67f820105691a1bc556dc +SIZE (dirty_equals-0.7.1.post0.tar.gz) = 48858 diff --git a/devel/py-dirty-equals/pkg-descr b/devel/py-dirty-equals/pkg-descr new file mode 100644 index 000000000000..cd8767c777e3 --- /dev/null +++ b/devel/py-dirty-equals/pkg-descr @@ -0,0 +1,7 @@ +dirty-equals is a python library that (mis)uses the __eq__ method to make python +code (generally unit tests) more declarative and therefore easier to read and +write. + +dirty-equals can be used in whatever context you like, but it comes into its own +when writing unit tests for applications where you're commonly checking the +response to API calls and the contents of a database.