pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-inline-snapshot
Module Name: pkgsrc
Committed By: wiz
Date: Mon Nov 11 09:00:47 UTC 2024
Added Files:
pkgsrc/devel/py-inline-snapshot: DESCR Makefile PLIST distinfo
Log Message:
devel/py-inline-snapshot: import py-inline-snapshot-0.14.0
inline-snapshot can be used for different things:
* golden master/approval/snapshot testing. The idea is that you
have a function with a currently unknown result and you want
to write a tests, which ensures that the result does not change
during refactoring.
* Compare things which are complex like lists with lot of numbers
or complex data structures.
* Things which might change during the development like error
messages.
inline-snapshot automates the process of recording, storing and
updating the value you want to compare with. The value is converted
with repr() and stored in the source file as argument of the
snapshot() function.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-inline-snapshot/DESCR \
pkgsrc/devel/py-inline-snapshot/Makefile \
pkgsrc/devel/py-inline-snapshot/PLIST \
pkgsrc/devel/py-inline-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-inline-snapshot/DESCR
diff -u /dev/null pkgsrc/devel/py-inline-snapshot/DESCR:1.1
--- /dev/null Mon Nov 11 09:00:47 2024
+++ pkgsrc/devel/py-inline-snapshot/DESCR Mon Nov 11 09:00:47 2024
@@ -0,0 +1,17 @@
+inline-snapshot can be used for different things:
+
+* golden master/approval/snapshot testing. The idea is that you
+ have a function with a currently unknown result and you want
+ to write a tests, which ensures that the result does not change
+ during refactoring.
+
+* Compare things which are complex like lists with lot of numbers
+ or complex data structures.
+
+* Things which might change during the development like error
+ messages.
+
+inline-snapshot automates the process of recording, storing and
+updating the value you want to compare with. The value is converted
+with repr() and stored in the source file as argument of the
+snapshot() function.
Index: pkgsrc/devel/py-inline-snapshot/Makefile
diff -u /dev/null pkgsrc/devel/py-inline-snapshot/Makefile:1.1
--- /dev/null Mon Nov 11 09:00:47 2024
+++ pkgsrc/devel/py-inline-snapshot/Makefile Mon Nov 11 09:00:47 2024
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2024/11/11 09:00:47 wiz Exp $
+
+DISTNAME= inline_snapshot-0.14.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_PYPI:=i/inline_snapshot/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://15r10nk.github.io/inline-snapshot/latest/
+COMMENT= Golden master/snapshot/approval testing library
+LICENSE= mit
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
+DEPENDS+= ${PYPKGPREFIX}-asttokens>=2.0.5:../../lang/py-asttokens
+DEPENDS+= ${PYPKGPREFIX}-black>=23.3.0:../../textproc/py-black
+DEPENDS+= ${PYPKGPREFIX}-click>=8.1.4:../../devel/py-click
+DEPENDS+= ${PYPKGPREFIX}-executing>=2.1.0:../../lang/py-executing
+DEPENDS+= ${PYPKGPREFIX}-rich>=13.7.1:../../comms/py-rich
+DEPENDS+= ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
+TEST_DEPENDS+= ${PYPKGPREFIX}-dirty-equals>=0.7.0:../../devel/py-dirty-equals
+TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=6.75.5:../../devel/py-hypothesis
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-freezer>=0.4.8:../../devel/py-test-freezer
+TEST_DEPENDS+= ${PYPKGPREFIX}-mypy>=1.2.0:../../lang/py-mypy
+TEST_DEPENDS+= ${PYPKGPREFIX}-pydantic-[0-9]*:../../devel/py-pydantic
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-subtests>=0.11.0:../../devel/py-test-subtests
+# als needs unpackaged:
+# "pyright>=1.1.359",
+
+# as of 0.14.0
+# 4 failed, 339 passed, 39 skipped, 5 warnings, 3 errors, 903 subtests
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/pyversion.mk"
+.if ${PYTHON_VERSION} < 311
+DEPENDS+= ${PYPKGPREFIX}-tomli>=2.0.0:../../textproc/py-tomli
+.endif
+
+pre-test:
+ cd ${BUILDLINK_DIR}/bin && ${LN} -sf ${PREFIX}/bin/pytest-${PYVERSSUFFIX} pytest
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-inline-snapshot/PLIST
diff -u /dev/null pkgsrc/devel/py-inline-snapshot/PLIST:1.1
--- /dev/null Mon Nov 11 09:00:47 2024
+++ pkgsrc/devel/py-inline-snapshot/PLIST Mon Nov 11 09:00:47 2024
@@ -0,0 +1,61 @@
+@comment $NetBSD: PLIST,v 1.1 2024/11/11 09:00:47 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/inline_snapshot/__init__.py
+${PYSITELIB}/inline_snapshot/__init__.pyc
+${PYSITELIB}/inline_snapshot/__init__.pyo
+${PYSITELIB}/inline_snapshot/_align.py
+${PYSITELIB}/inline_snapshot/_align.pyc
+${PYSITELIB}/inline_snapshot/_align.pyo
+${PYSITELIB}/inline_snapshot/_change.py
+${PYSITELIB}/inline_snapshot/_change.pyc
+${PYSITELIB}/inline_snapshot/_change.pyo
+${PYSITELIB}/inline_snapshot/_code_repr.py
+${PYSITELIB}/inline_snapshot/_code_repr.pyc
+${PYSITELIB}/inline_snapshot/_code_repr.pyo
+${PYSITELIB}/inline_snapshot/_config.py
+${PYSITELIB}/inline_snapshot/_config.pyc
+${PYSITELIB}/inline_snapshot/_config.pyo
+${PYSITELIB}/inline_snapshot/_exceptions.py
+${PYSITELIB}/inline_snapshot/_exceptions.pyc
+${PYSITELIB}/inline_snapshot/_exceptions.pyo
+${PYSITELIB}/inline_snapshot/_external.py
+${PYSITELIB}/inline_snapshot/_external.pyc
+${PYSITELIB}/inline_snapshot/_external.pyo
+${PYSITELIB}/inline_snapshot/_find_external.py
+${PYSITELIB}/inline_snapshot/_find_external.pyc
+${PYSITELIB}/inline_snapshot/_find_external.pyo
+${PYSITELIB}/inline_snapshot/_format.py
+${PYSITELIB}/inline_snapshot/_format.pyc
+${PYSITELIB}/inline_snapshot/_format.pyo
+${PYSITELIB}/inline_snapshot/_inline_snapshot.py
+${PYSITELIB}/inline_snapshot/_inline_snapshot.pyc
+${PYSITELIB}/inline_snapshot/_inline_snapshot.pyo
+${PYSITELIB}/inline_snapshot/_rewrite_code.py
+${PYSITELIB}/inline_snapshot/_rewrite_code.pyc
+${PYSITELIB}/inline_snapshot/_rewrite_code.pyo
+${PYSITELIB}/inline_snapshot/_sentinels.py
+${PYSITELIB}/inline_snapshot/_sentinels.pyc
+${PYSITELIB}/inline_snapshot/_sentinels.pyo
+${PYSITELIB}/inline_snapshot/_types.py
+${PYSITELIB}/inline_snapshot/_types.pyc
+${PYSITELIB}/inline_snapshot/_types.pyo
+${PYSITELIB}/inline_snapshot/_utils.py
+${PYSITELIB}/inline_snapshot/_utils.pyc
+${PYSITELIB}/inline_snapshot/_utils.pyo
+${PYSITELIB}/inline_snapshot/extra.py
+${PYSITELIB}/inline_snapshot/extra.pyc
+${PYSITELIB}/inline_snapshot/extra.pyo
+${PYSITELIB}/inline_snapshot/py.typed
+${PYSITELIB}/inline_snapshot/pytest_plugin.py
+${PYSITELIB}/inline_snapshot/pytest_plugin.pyc
+${PYSITELIB}/inline_snapshot/pytest_plugin.pyo
+${PYSITELIB}/inline_snapshot/testing/__init__.py
+${PYSITELIB}/inline_snapshot/testing/__init__.pyc
+${PYSITELIB}/inline_snapshot/testing/__init__.pyo
+${PYSITELIB}/inline_snapshot/testing/_example.py
+${PYSITELIB}/inline_snapshot/testing/_example.pyc
+${PYSITELIB}/inline_snapshot/testing/_example.pyo
Index: pkgsrc/devel/py-inline-snapshot/distinfo
diff -u /dev/null pkgsrc/devel/py-inline-snapshot/distinfo:1.1
--- /dev/null Mon Nov 11 09:00:47 2024
+++ pkgsrc/devel/py-inline-snapshot/distinfo Mon Nov 11 09:00:47 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/11/11 09:00:47 wiz Exp $
+
+BLAKE2s (inline_snapshot-0.14.0.tar.gz) = d2a24231688739ef3ac7a3123e1b54d92a9f9aac7f0b949add603453168b9ed9
+SHA512 (inline_snapshot-0.14.0.tar.gz) = 32855dcd098c3e9b6a046752a3fc03c18b0df85e2cf338a928eadcd0e63bb784bdaca6855c954974ec7561e602ff3dd95ccdadb0c4f7dd1075d9d84245c171ef
+Size (inline_snapshot-0.14.0.tar.gz) = 209662 bytes
Home |
Main Index |
Thread Index |
Old Index