git: ce756b6b20fa - main - devel/py-inline-snapshot: New port

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sun, 29 Dec 2024 10:13:16 UTC
The branch main has been updated by kai:

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

commit ce756b6b20fa779624604ab7812bacea63b8b186
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2024-12-29 10:08:09 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-12-29 10:12:41 +0000

    devel/py-inline-snapshot: New port
    
    Golden master/snapshot/approval testing library which puts the values
    right into your source code.
    
    Key Features:
    
    * Intuitive Semantics: snapshot(x) mirrors x for easy understanding.
    * Versatile Comparison Support: Equipped with x == snapshot(...),
      x <= snapshot(...), x in snapshot(...), and snapshot(...)[key].
    * Enhanced Control Flags: Utilize various flags for precise control of
      which snapshots you want to change.
    * Preserved Black Formatting: Retains formatting consistency with Black
      formatting.
    * External File Storage: Store snapshots externally using
      outsource(data).
    * Seamless Pytest Integration: Integrated seamlessly with pytest for
      effortless testing.
    * Customizable: code generation can be customized with @customize_repr
    * Nested Snapshot Support: snapshots can contain other snapshots
    * Fuzzy Matching: Incorporate dirty-equals for flexible comparisons
      within snapshots.
    * Dynamic Snapshot Content: snapshots can contain non-constant values
    * Comprehensive Documentation: Access detailed documentation for
      complete guidance.
---
 devel/Makefile                     |  1 +
 devel/py-inline-snapshot/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/py-inline-snapshot/distinfo  |  3 +++
 devel/py-inline-snapshot/pkg-descr | 22 ++++++++++++++++++++++
 4 files changed, 55 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 4bd6b4846132..4c313c172f09 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5032,6 +5032,7 @@
     SUBDIR += py-iniconfig
     SUBDIR += py-inifile
     SUBDIR += py-iniparse
+    SUBDIR += py-inline-snapshot
     SUBDIR += py-inotify-simple
     SUBDIR += py-inotifyrecursive
     SUBDIR += py-installer
diff --git a/devel/py-inline-snapshot/Makefile b/devel/py-inline-snapshot/Makefile
new file mode 100644
index 000000000000..3819ec113c40
--- /dev/null
+++ b/devel/py-inline-snapshot/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	inline-snapshot
+DISTVERSION=	0.18.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	inline_snapshot-${DISTVERSION}
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	Create and update inline snapshots in your Python code
+WWW=		https://github.com/15r10nk/inline-snapshot
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asttokens>=2.0.5:devel/py-asttokens@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}black>=23.3.0:devel/py-black@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}click>=8.1.4:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}executing>=2.1.0:devel/py-executing@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich>=13.7.1:textproc/py-rich@${PY_FLAVOR} \
+		${PY_TOMLI} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-inline-snapshot/distinfo b/devel/py-inline-snapshot/distinfo
new file mode 100644
index 000000000000..1c7a538d7103
--- /dev/null
+++ b/devel/py-inline-snapshot/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1735384985
+SHA256 (inline_snapshot-0.18.1.tar.gz) = a93bcf0aec68edf27323fa8dfc902354ef9a730050ab8939a4b174419828db6b
+SIZE (inline_snapshot-0.18.1.tar.gz) = 225403
diff --git a/devel/py-inline-snapshot/pkg-descr b/devel/py-inline-snapshot/pkg-descr
new file mode 100644
index 000000000000..211cdfc99461
--- /dev/null
+++ b/devel/py-inline-snapshot/pkg-descr
@@ -0,0 +1,22 @@
+Golden master/snapshot/approval testing library which puts the values right
+into your source code.
+
+Key Features:
+
+* Intuitive Semantics: snapshot(x) mirrors x for easy understanding.
+* Versatile Comparison Support: Equipped with x == snapshot(...),
+  x <= snapshot(...), x in snapshot(...), and snapshot(...)[key].
+* Enhanced Control Flags: Utilize various flags for precise control of which
+  snapshots you want to change.
+* Preserved Black Formatting: Retains formatting consistency with Black
+  formatting.
+* External File Storage: Store snapshots externally using outsource(data).
+* Seamless Pytest Integration: Integrated seamlessly with pytest for effortless
+  testing.
+* Customizable: code generation can be customized with @customize_repr
+* Nested Snapshot Support: snapshots can contain other snapshots
+* Fuzzy Matching: Incorporate dirty-equals for flexible comparisons within
+  snapshots.
+* Dynamic Snapshot Content: snapshots can contain non-constant values
+* Comprehensive Documentation: Access detailed documentation for complete
+  guidance.