pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-test-textual-snapshot
Module Name: pkgsrc
Committed By: wiz
Date: Sun Jul 14 12:31:18 UTC 2024
Added Files:
pkgsrc/devel/py-test-textual-snapshot: DESCR Makefile PLIST distinfo
Log Message:
devel/py-test-textual-snapshot: import py-test-textual-snapshot-0.4.0
Snapshot testing for Textual apps.
A pytest-textual-snapshot test saves an SVG screenshot of a running
Textual app to disk. The next time the test runs, it takes another
screenshot and compares it to the saved one. If the new screenshot
differs from the old one, the test fails. This is a convenient
way to quickly and automatically detect visual regressions in your
applications.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-test-textual-snapshot/DESCR \
pkgsrc/devel/py-test-textual-snapshot/Makefile \
pkgsrc/devel/py-test-textual-snapshot/PLIST \
pkgsrc/devel/py-test-textual-snapshot/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/py-test-textual-snapshot/DESCR
diff -u /dev/null pkgsrc/devel/py-test-textual-snapshot/DESCR:1.1
--- /dev/null Sun Jul 14 12:31:18 2024
+++ pkgsrc/devel/py-test-textual-snapshot/DESCR Sun Jul 14 12:31:18 2024
@@ -0,0 +1,8 @@
+Snapshot testing for Textual apps.
+
+A pytest-textual-snapshot test saves an SVG screenshot of a running
+Textual app to disk. The next time the test runs, it takes another
+screenshot and compares it to the saved one. If the new screenshot
+differs from the old one, the test fails. This is a convenient
+way to quickly and automatically detect visual regressions in your
+applications.
Index: pkgsrc/devel/py-test-textual-snapshot/Makefile
diff -u /dev/null pkgsrc/devel/py-test-textual-snapshot/Makefile:1.1
--- /dev/null Sun Jul 14 12:31:18 2024
+++ pkgsrc/devel/py-test-textual-snapshot/Makefile Sun Jul 14 12:31:18 2024
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2024/07/14 12:31:18 wiz Exp $
+
+DISTNAME= pytest_textual_snapshot-0.4.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//:S/_/-/g}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest_textual_snapshot/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/darrenburns/pytest-textual-snapshot
+COMMENT= Snapshot testing for Textual apps
+LICENSE= mit
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-poetry-core-[0-9]*:../../devel/py-poetry-core
+DEPENDS+= ${PYPKGPREFIX}-test>=7.0.0:../../devel/py-test
+DEPENDS+= ${PYPKGPREFIX}-jinja2>=3.0.0:../../textproc/py-jinja2
+DEPENDS+= ${PYPKGPREFIX}-rich>=12.0.0:../../comms/py-rich
+# py-textual uses this for testing
+DEPENDS+= ${PYPKGPREFIX}-textual>=0.28.0:../../comms/py-textual
+DEPENDS+= ${PYPKGPREFIX}-syrupy>=3.0.0:../../devel/py-syrupy
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-test-textual-snapshot/PLIST
diff -u /dev/null pkgsrc/devel/py-test-textual-snapshot/PLIST:1.1
--- /dev/null Sun Jul 14 12:31:18 2024
+++ pkgsrc/devel/py-test-textual-snapshot/PLIST Sun Jul 14 12:31:18 2024
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2024/07/14 12:31:18 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/pytest_textual_snapshot.py
+${PYSITELIB}/pytest_textual_snapshot.pyc
+${PYSITELIB}/pytest_textual_snapshot.pyo
+${PYSITELIB}/resources/snapshot_report_template.jinja2
Index: pkgsrc/devel/py-test-textual-snapshot/distinfo
diff -u /dev/null pkgsrc/devel/py-test-textual-snapshot/distinfo:1.1
--- /dev/null Sun Jul 14 12:31:18 2024
+++ pkgsrc/devel/py-test-textual-snapshot/distinfo Sun Jul 14 12:31:18 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/07/14 12:31:18 wiz Exp $
+
+BLAKE2s (pytest_textual_snapshot-0.4.0.tar.gz) = 0715aac5712c2549b6a60672957672137a7e5fe583cce5b1465852cca314e01e
+SHA512 (pytest_textual_snapshot-0.4.0.tar.gz) = a1b05cce6387bcfe2e69e211f28a2a408f76120b6352a20494ecf6be224f0730aee2094bd0ded62a02b2fcb19d651b553c5d48b0c3a8caa129e20dbc77dc81bc
+Size (pytest_textual_snapshot-0.4.0.tar.gz) = 7476 bytes
Home |
Main Index |
Thread Index |
Old Index