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:   adam
Date:           Tue Feb 17 12:45:10 UTC 2026

Modified Files:
        pkgsrc/devel/py-inline-snapshot: Makefile PLIST distinfo

Log Message:
py-inline-snapshot: updated to 0.32.1

0.32.1 — 2026-02-17

Fixed

- Fixed handling of `datetime` and `time` objects with timezone information. The `tzinfo` parameter is now properly included in snapshots, and `timezone.utc` is represented with the correct import 
(`from datetime import timezone`).

- Fixed customize hook registration to properly check if objects are functions before inspecting the `inline_snapshot_impl` attribute, preventing potential attribute errors when scanning conftest 
modules.

0.32.0 — 2026-02-13

Removed

- removed support for python 3.8 because it is end-of-life

Added

- `pathlib.Path/PurePath` values are now never stored as `Posix/WindowsPath` or their Pure variants, which improves the writing of platform independent tests.

- Support for [import statement generation](https://15r10nk.github.io/inline-snapshot/latest/plugin/#inline_snapshot.plugin.Builder.create_code) for all types and user-customized code.
- Added a new way to customize snapshot creation with [`@customize`](https://15r10nk.github.io/inline-snapshot/latest/plugin/#inline_snapshot.plugin.InlineSnapshotPluginSpec.customize).
- Added a [plugin system](https://15r10nk.github.io/inline-snapshot/latest/plugin/#creating-a-plugin-package) which allows you to reuse customizations across multiple projects.
- Added support for [conditional external](https://15r10nk.github.io/inline-snapshot/latest/plugin/#conditional-external-objects) storage to automatically store values in external files based on 
custom criteria (e.g., string length, data size).
- Added built-in handlers for `datetime.datetime`, `date`, `time`, and `timedelta` that generate clean snapshots with proper imports.
- Generates `__file__` instead of the filename string of the current source file.
- Uses dirty-equals `IsNow()` instead of the current datetime when the time value equals the current time.

Deprecated

- Deprecated `@customize_repr` which can be replaced with `@customize`.

Fixed

- `raises` catches BaseException instead of Exception. This ensures that SystemExit and KeyboardInterrupt are also caught.

- pytest --color flag is now respected


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/py-inline-snapshot/Makefile \
    pkgsrc/devel/py-inline-snapshot/distinfo
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/py-inline-snapshot/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-inline-snapshot/Makefile
diff -u pkgsrc/devel/py-inline-snapshot/Makefile:1.12 pkgsrc/devel/py-inline-snapshot/Makefile:1.13
--- pkgsrc/devel/py-inline-snapshot/Makefile:1.12       Sun Nov 16 10:39:18 2025
+++ pkgsrc/devel/py-inline-snapshot/Makefile    Tue Feb 17 12:45:10 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2025/11/16 10:39:18 adam Exp $
+# $NetBSD: Makefile,v 1.13 2026/02/17 12:45:10 adam Exp $
 
-DISTNAME=      inline_snapshot-0.31.1
+DISTNAME=      inline_snapshot-0.32.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=i/inline_snapshot/}
@@ -15,6 +15,7 @@ DEPENDS+=     ${PYPKGPREFIX}-asttokens>=2.0.
 DEPENDS+=      ${PYPKGPREFIX}-executing>=2.2.0:../../lang/py-executing
 DEPENDS+=      ${PYPKGPREFIX}-rich>=13.7.1:../../comms/py-rich
 DEPENDS+=      ${PYPKGPREFIX}-test>=8.3.4:../../devel/py-test
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
 TEST_DEPENDS+= ${PYPKGPREFIX}-attrs>=24.3.0:../../devel/py-attrs
 TEST_DEPENDS+= ${PYPKGPREFIX}-dirty-equals>=0.7.0:../../devel/py-dirty-equals
 TEST_DEPENDS+= ${PYPKGPREFIX}-black>=23.3.0:../../textproc/py-black
Index: pkgsrc/devel/py-inline-snapshot/distinfo
diff -u pkgsrc/devel/py-inline-snapshot/distinfo:1.12 pkgsrc/devel/py-inline-snapshot/distinfo:1.13
--- pkgsrc/devel/py-inline-snapshot/distinfo:1.12       Sun Nov 16 10:39:18 2025
+++ pkgsrc/devel/py-inline-snapshot/distinfo    Tue Feb 17 12:45:10 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2025/11/16 10:39:18 adam Exp $
+$NetBSD: distinfo,v 1.13 2026/02/17 12:45:10 adam Exp $
 
-BLAKE2s (inline_snapshot-0.31.1.tar.gz) = 56ccbfe6b2bfe386fb2cc454fc277a2cd9afb9e2bcf2e048b3fcc3e39312a841
-SHA512 (inline_snapshot-0.31.1.tar.gz) = d1b33f9b10b02444e651e73461f25b98c5c70def13a19acf0a3e6c89ed4a47cb967ca1bb583d3aa63a26893478e3d4064f8d91ad63026c539dee66a42091efa2
-Size (inline_snapshot-0.31.1.tar.gz) = 2606338 bytes
+BLAKE2s (inline_snapshot-0.32.1.tar.gz) = 09ebd3fd1d196951e1a68e9657198d73ac007f2a87d151d308b8f2a260c85d79
+SHA512 (inline_snapshot-0.32.1.tar.gz) = c91b426c1186d236e958c5a1b6bc87b66f35ba989db6b22607ce2867debd01c22600ee9c52211a22654480ac2caaff099c269ef3d487d599064cd9329b215266
+Size (inline_snapshot-0.32.1.tar.gz) = 2624124 bytes

Index: pkgsrc/devel/py-inline-snapshot/PLIST
diff -u pkgsrc/devel/py-inline-snapshot/PLIST:1.5 pkgsrc/devel/py-inline-snapshot/PLIST:1.6
--- pkgsrc/devel/py-inline-snapshot/PLIST:1.5   Fri Oct  3 12:14:26 2025
+++ pkgsrc/devel/py-inline-snapshot/PLIST       Tue Feb 17 12:45:10 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2025/10/03 12:14:26 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2026/02/17 12:45:10 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -7,24 +7,9 @@ ${PYSITELIB}/${WHEEL_INFODIR}/licenses/L
 ${PYSITELIB}/inline_snapshot/__init__.py
 ${PYSITELIB}/inline_snapshot/__init__.pyc
 ${PYSITELIB}/inline_snapshot/__init__.pyo
-${PYSITELIB}/inline_snapshot/_adapter/__init__.py
-${PYSITELIB}/inline_snapshot/_adapter/__init__.pyc
-${PYSITELIB}/inline_snapshot/_adapter/__init__.pyo
-${PYSITELIB}/inline_snapshot/_adapter/adapter.py
-${PYSITELIB}/inline_snapshot/_adapter/adapter.pyc
-${PYSITELIB}/inline_snapshot/_adapter/adapter.pyo
-${PYSITELIB}/inline_snapshot/_adapter/dict_adapter.py
-${PYSITELIB}/inline_snapshot/_adapter/dict_adapter.pyc
-${PYSITELIB}/inline_snapshot/_adapter/dict_adapter.pyo
-${PYSITELIB}/inline_snapshot/_adapter/generic_call_adapter.py
-${PYSITELIB}/inline_snapshot/_adapter/generic_call_adapter.pyc
-${PYSITELIB}/inline_snapshot/_adapter/generic_call_adapter.pyo
-${PYSITELIB}/inline_snapshot/_adapter/sequence_adapter.py
-${PYSITELIB}/inline_snapshot/_adapter/sequence_adapter.pyc
-${PYSITELIB}/inline_snapshot/_adapter/sequence_adapter.pyo
-${PYSITELIB}/inline_snapshot/_adapter/value_adapter.py
-${PYSITELIB}/inline_snapshot/_adapter/value_adapter.pyc
-${PYSITELIB}/inline_snapshot/_adapter/value_adapter.pyo
+${PYSITELIB}/inline_snapshot/_adapter_context.py
+${PYSITELIB}/inline_snapshot/_adapter_context.pyc
+${PYSITELIB}/inline_snapshot/_adapter_context.pyo
 ${PYSITELIB}/inline_snapshot/_align.py
 ${PYSITELIB}/inline_snapshot/_align.pyc
 ${PYSITELIB}/inline_snapshot/_align.pyo
@@ -40,6 +25,36 @@ ${PYSITELIB}/inline_snapshot/_compare_co
 ${PYSITELIB}/inline_snapshot/_config.py
 ${PYSITELIB}/inline_snapshot/_config.pyc
 ${PYSITELIB}/inline_snapshot/_config.pyo
+${PYSITELIB}/inline_snapshot/_customize/__init__.py
+${PYSITELIB}/inline_snapshot/_customize/__init__.pyc
+${PYSITELIB}/inline_snapshot/_customize/__init__.pyo
+${PYSITELIB}/inline_snapshot/_customize/_builder.py
+${PYSITELIB}/inline_snapshot/_customize/_builder.pyc
+${PYSITELIB}/inline_snapshot/_customize/_builder.pyo
+${PYSITELIB}/inline_snapshot/_customize/_custom.py
+${PYSITELIB}/inline_snapshot/_customize/_custom.pyc
+${PYSITELIB}/inline_snapshot/_customize/_custom.pyo
+${PYSITELIB}/inline_snapshot/_customize/_custom_call.py
+${PYSITELIB}/inline_snapshot/_customize/_custom_call.pyc
+${PYSITELIB}/inline_snapshot/_customize/_custom_call.pyo
+${PYSITELIB}/inline_snapshot/_customize/_custom_code.py
+${PYSITELIB}/inline_snapshot/_customize/_custom_code.pyc
+${PYSITELIB}/inline_snapshot/_customize/_custom_code.pyo
+${PYSITELIB}/inline_snapshot/_customize/_custom_dict.py
+${PYSITELIB}/inline_snapshot/_customize/_custom_dict.pyc
+${PYSITELIB}/inline_snapshot/_customize/_custom_dict.pyo
+${PYSITELIB}/inline_snapshot/_customize/_custom_external.py
+${PYSITELIB}/inline_snapshot/_customize/_custom_external.pyc
+${PYSITELIB}/inline_snapshot/_customize/_custom_external.pyo
+${PYSITELIB}/inline_snapshot/_customize/_custom_sequence.py
+${PYSITELIB}/inline_snapshot/_customize/_custom_sequence.pyc
+${PYSITELIB}/inline_snapshot/_customize/_custom_sequence.pyo
+${PYSITELIB}/inline_snapshot/_customize/_custom_undefined.py
+${PYSITELIB}/inline_snapshot/_customize/_custom_undefined.pyc
+${PYSITELIB}/inline_snapshot/_customize/_custom_undefined.pyo
+${PYSITELIB}/inline_snapshot/_customize/_custom_unmanaged.py
+${PYSITELIB}/inline_snapshot/_customize/_custom_unmanaged.pyc
+${PYSITELIB}/inline_snapshot/_customize/_custom_unmanaged.pyo
 ${PYSITELIB}/inline_snapshot/_exceptions.py
 ${PYSITELIB}/inline_snapshot/_exceptions.pyc
 ${PYSITELIB}/inline_snapshot/_exceptions.pyo
@@ -103,6 +118,9 @@ ${PYSITELIB}/inline_snapshot/_flags.pyo
 ${PYSITELIB}/inline_snapshot/_format.py
 ${PYSITELIB}/inline_snapshot/_format.pyc
 ${PYSITELIB}/inline_snapshot/_format.pyo
+${PYSITELIB}/inline_snapshot/_generator_utils.py
+${PYSITELIB}/inline_snapshot/_generator_utils.pyc
+${PYSITELIB}/inline_snapshot/_generator_utils.pyo
 ${PYSITELIB}/inline_snapshot/_get_snapshot_value.py
 ${PYSITELIB}/inline_snapshot/_get_snapshot_value.pyc
 ${PYSITELIB}/inline_snapshot/_get_snapshot_value.pyo
@@ -115,6 +133,9 @@ ${PYSITELIB}/inline_snapshot/_inline_sna
 ${PYSITELIB}/inline_snapshot/_is.py
 ${PYSITELIB}/inline_snapshot/_is.pyc
 ${PYSITELIB}/inline_snapshot/_is.pyo
+${PYSITELIB}/inline_snapshot/_new_adapter.py
+${PYSITELIB}/inline_snapshot/_new_adapter.pyc
+${PYSITELIB}/inline_snapshot/_new_adapter.pyo
 ${PYSITELIB}/inline_snapshot/_problems.py
 ${PYSITELIB}/inline_snapshot/_problems.pyc
 ${PYSITELIB}/inline_snapshot/_problems.pyo
@@ -124,6 +145,9 @@ ${PYSITELIB}/inline_snapshot/_rewrite_co
 ${PYSITELIB}/inline_snapshot/_sentinels.py
 ${PYSITELIB}/inline_snapshot/_sentinels.pyc
 ${PYSITELIB}/inline_snapshot/_sentinels.pyo
+${PYSITELIB}/inline_snapshot/_snapshot/__init__.py
+${PYSITELIB}/inline_snapshot/_snapshot/__init__.pyc
+${PYSITELIB}/inline_snapshot/_snapshot/__init__.pyo
 ${PYSITELIB}/inline_snapshot/_snapshot/collection_value.py
 ${PYSITELIB}/inline_snapshot/_snapshot/collection_value.pyc
 ${PYSITELIB}/inline_snapshot/_snapshot/collection_value.pyo
@@ -163,6 +187,15 @@ ${PYSITELIB}/inline_snapshot/extra.pyo
 ${PYSITELIB}/inline_snapshot/fix_pytest_diff.py
 ${PYSITELIB}/inline_snapshot/fix_pytest_diff.pyc
 ${PYSITELIB}/inline_snapshot/fix_pytest_diff.pyo
+${PYSITELIB}/inline_snapshot/plugin/__init__.py
+${PYSITELIB}/inline_snapshot/plugin/__init__.pyc
+${PYSITELIB}/inline_snapshot/plugin/__init__.pyo
+${PYSITELIB}/inline_snapshot/plugin/_default_plugin.py
+${PYSITELIB}/inline_snapshot/plugin/_default_plugin.pyc
+${PYSITELIB}/inline_snapshot/plugin/_default_plugin.pyo
+${PYSITELIB}/inline_snapshot/plugin/_spec.py
+${PYSITELIB}/inline_snapshot/plugin/_spec.pyc
+${PYSITELIB}/inline_snapshot/plugin/_spec.pyo
 ${PYSITELIB}/inline_snapshot/py.typed
 ${PYSITELIB}/inline_snapshot/pydantic_fix.py
 ${PYSITELIB}/inline_snapshot/pydantic_fix.pyc



Home | Main Index | Thread Index | Old Index