Skip to content

Commit 7458724

Browse files
author
adam
committed
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
1 parent f27b7bb commit 7458724

3 files changed

Lines changed: 59 additions & 25 deletions

File tree

devel/py-inline-snapshot/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# $NetBSD: Makefile,v 1.12 2025/11/16 10:39:18 adam Exp $
1+
# $NetBSD: Makefile,v 1.13 2026/02/17 12:45:10 adam Exp $
22

3-
DISTNAME= inline_snapshot-0.31.1
3+
DISTNAME= inline_snapshot-0.32.1
44
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
55
CATEGORIES= devel python
66
MASTER_SITES= ${MASTER_SITE_PYPI:=i/inline_snapshot/}
@@ -15,6 +15,7 @@ DEPENDS+= ${PYPKGPREFIX}-asttokens>=2.0.5:../../lang/py-asttokens
1515
DEPENDS+= ${PYPKGPREFIX}-executing>=2.2.0:../../lang/py-executing
1616
DEPENDS+= ${PYPKGPREFIX}-rich>=13.7.1:../../comms/py-rich
1717
DEPENDS+= ${PYPKGPREFIX}-test>=8.3.4:../../devel/py-test
18+
DEPENDS+= ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
1819
TEST_DEPENDS+= ${PYPKGPREFIX}-attrs>=24.3.0:../../devel/py-attrs
1920
TEST_DEPENDS+= ${PYPKGPREFIX}-dirty-equals>=0.7.0:../../devel/py-dirty-equals
2021
TEST_DEPENDS+= ${PYPKGPREFIX}-black>=23.3.0:../../textproc/py-black

devel/py-inline-snapshot/PLIST

Lines changed: 52 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.5 2025/10/03 12:14:26 adam Exp $
1+
@comment $NetBSD: PLIST,v 1.6 2026/02/17 12:45:10 adam Exp $
22
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
33
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
44
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -7,24 +7,9 @@ ${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
77
${PYSITELIB}/inline_snapshot/__init__.py
88
${PYSITELIB}/inline_snapshot/__init__.pyc
99
${PYSITELIB}/inline_snapshot/__init__.pyo
10-
${PYSITELIB}/inline_snapshot/_adapter/__init__.py
11-
${PYSITELIB}/inline_snapshot/_adapter/__init__.pyc
12-
${PYSITELIB}/inline_snapshot/_adapter/__init__.pyo
13-
${PYSITELIB}/inline_snapshot/_adapter/adapter.py
14-
${PYSITELIB}/inline_snapshot/_adapter/adapter.pyc
15-
${PYSITELIB}/inline_snapshot/_adapter/adapter.pyo
16-
${PYSITELIB}/inline_snapshot/_adapter/dict_adapter.py
17-
${PYSITELIB}/inline_snapshot/_adapter/dict_adapter.pyc
18-
${PYSITELIB}/inline_snapshot/_adapter/dict_adapter.pyo
19-
${PYSITELIB}/inline_snapshot/_adapter/generic_call_adapter.py
20-
${PYSITELIB}/inline_snapshot/_adapter/generic_call_adapter.pyc
21-
${PYSITELIB}/inline_snapshot/_adapter/generic_call_adapter.pyo
22-
${PYSITELIB}/inline_snapshot/_adapter/sequence_adapter.py
23-
${PYSITELIB}/inline_snapshot/_adapter/sequence_adapter.pyc
24-
${PYSITELIB}/inline_snapshot/_adapter/sequence_adapter.pyo
25-
${PYSITELIB}/inline_snapshot/_adapter/value_adapter.py
26-
${PYSITELIB}/inline_snapshot/_adapter/value_adapter.pyc
27-
${PYSITELIB}/inline_snapshot/_adapter/value_adapter.pyo
10+
${PYSITELIB}/inline_snapshot/_adapter_context.py
11+
${PYSITELIB}/inline_snapshot/_adapter_context.pyc
12+
${PYSITELIB}/inline_snapshot/_adapter_context.pyo
2813
${PYSITELIB}/inline_snapshot/_align.py
2914
${PYSITELIB}/inline_snapshot/_align.pyc
3015
${PYSITELIB}/inline_snapshot/_align.pyo
@@ -40,6 +25,36 @@ ${PYSITELIB}/inline_snapshot/_compare_context.pyo
4025
${PYSITELIB}/inline_snapshot/_config.py
4126
${PYSITELIB}/inline_snapshot/_config.pyc
4227
${PYSITELIB}/inline_snapshot/_config.pyo
28+
${PYSITELIB}/inline_snapshot/_customize/__init__.py
29+
${PYSITELIB}/inline_snapshot/_customize/__init__.pyc
30+
${PYSITELIB}/inline_snapshot/_customize/__init__.pyo
31+
${PYSITELIB}/inline_snapshot/_customize/_builder.py
32+
${PYSITELIB}/inline_snapshot/_customize/_builder.pyc
33+
${PYSITELIB}/inline_snapshot/_customize/_builder.pyo
34+
${PYSITELIB}/inline_snapshot/_customize/_custom.py
35+
${PYSITELIB}/inline_snapshot/_customize/_custom.pyc
36+
${PYSITELIB}/inline_snapshot/_customize/_custom.pyo
37+
${PYSITELIB}/inline_snapshot/_customize/_custom_call.py
38+
${PYSITELIB}/inline_snapshot/_customize/_custom_call.pyc
39+
${PYSITELIB}/inline_snapshot/_customize/_custom_call.pyo
40+
${PYSITELIB}/inline_snapshot/_customize/_custom_code.py
41+
${PYSITELIB}/inline_snapshot/_customize/_custom_code.pyc
42+
${PYSITELIB}/inline_snapshot/_customize/_custom_code.pyo
43+
${PYSITELIB}/inline_snapshot/_customize/_custom_dict.py
44+
${PYSITELIB}/inline_snapshot/_customize/_custom_dict.pyc
45+
${PYSITELIB}/inline_snapshot/_customize/_custom_dict.pyo
46+
${PYSITELIB}/inline_snapshot/_customize/_custom_external.py
47+
${PYSITELIB}/inline_snapshot/_customize/_custom_external.pyc
48+
${PYSITELIB}/inline_snapshot/_customize/_custom_external.pyo
49+
${PYSITELIB}/inline_snapshot/_customize/_custom_sequence.py
50+
${PYSITELIB}/inline_snapshot/_customize/_custom_sequence.pyc
51+
${PYSITELIB}/inline_snapshot/_customize/_custom_sequence.pyo
52+
${PYSITELIB}/inline_snapshot/_customize/_custom_undefined.py
53+
${PYSITELIB}/inline_snapshot/_customize/_custom_undefined.pyc
54+
${PYSITELIB}/inline_snapshot/_customize/_custom_undefined.pyo
55+
${PYSITELIB}/inline_snapshot/_customize/_custom_unmanaged.py
56+
${PYSITELIB}/inline_snapshot/_customize/_custom_unmanaged.pyc
57+
${PYSITELIB}/inline_snapshot/_customize/_custom_unmanaged.pyo
4358
${PYSITELIB}/inline_snapshot/_exceptions.py
4459
${PYSITELIB}/inline_snapshot/_exceptions.pyc
4560
${PYSITELIB}/inline_snapshot/_exceptions.pyo
@@ -103,6 +118,9 @@ ${PYSITELIB}/inline_snapshot/_flags.pyo
103118
${PYSITELIB}/inline_snapshot/_format.py
104119
${PYSITELIB}/inline_snapshot/_format.pyc
105120
${PYSITELIB}/inline_snapshot/_format.pyo
121+
${PYSITELIB}/inline_snapshot/_generator_utils.py
122+
${PYSITELIB}/inline_snapshot/_generator_utils.pyc
123+
${PYSITELIB}/inline_snapshot/_generator_utils.pyo
106124
${PYSITELIB}/inline_snapshot/_get_snapshot_value.py
107125
${PYSITELIB}/inline_snapshot/_get_snapshot_value.pyc
108126
${PYSITELIB}/inline_snapshot/_get_snapshot_value.pyo
@@ -115,6 +133,9 @@ ${PYSITELIB}/inline_snapshot/_inline_snapshot.pyo
115133
${PYSITELIB}/inline_snapshot/_is.py
116134
${PYSITELIB}/inline_snapshot/_is.pyc
117135
${PYSITELIB}/inline_snapshot/_is.pyo
136+
${PYSITELIB}/inline_snapshot/_new_adapter.py
137+
${PYSITELIB}/inline_snapshot/_new_adapter.pyc
138+
${PYSITELIB}/inline_snapshot/_new_adapter.pyo
118139
${PYSITELIB}/inline_snapshot/_problems.py
119140
${PYSITELIB}/inline_snapshot/_problems.pyc
120141
${PYSITELIB}/inline_snapshot/_problems.pyo
@@ -124,6 +145,9 @@ ${PYSITELIB}/inline_snapshot/_rewrite_code.pyo
124145
${PYSITELIB}/inline_snapshot/_sentinels.py
125146
${PYSITELIB}/inline_snapshot/_sentinels.pyc
126147
${PYSITELIB}/inline_snapshot/_sentinels.pyo
148+
${PYSITELIB}/inline_snapshot/_snapshot/__init__.py
149+
${PYSITELIB}/inline_snapshot/_snapshot/__init__.pyc
150+
${PYSITELIB}/inline_snapshot/_snapshot/__init__.pyo
127151
${PYSITELIB}/inline_snapshot/_snapshot/collection_value.py
128152
${PYSITELIB}/inline_snapshot/_snapshot/collection_value.pyc
129153
${PYSITELIB}/inline_snapshot/_snapshot/collection_value.pyo
@@ -163,6 +187,15 @@ ${PYSITELIB}/inline_snapshot/extra.pyo
163187
${PYSITELIB}/inline_snapshot/fix_pytest_diff.py
164188
${PYSITELIB}/inline_snapshot/fix_pytest_diff.pyc
165189
${PYSITELIB}/inline_snapshot/fix_pytest_diff.pyo
190+
${PYSITELIB}/inline_snapshot/plugin/__init__.py
191+
${PYSITELIB}/inline_snapshot/plugin/__init__.pyc
192+
${PYSITELIB}/inline_snapshot/plugin/__init__.pyo
193+
${PYSITELIB}/inline_snapshot/plugin/_default_plugin.py
194+
${PYSITELIB}/inline_snapshot/plugin/_default_plugin.pyc
195+
${PYSITELIB}/inline_snapshot/plugin/_default_plugin.pyo
196+
${PYSITELIB}/inline_snapshot/plugin/_spec.py
197+
${PYSITELIB}/inline_snapshot/plugin/_spec.pyc
198+
${PYSITELIB}/inline_snapshot/plugin/_spec.pyo
166199
${PYSITELIB}/inline_snapshot/py.typed
167200
${PYSITELIB}/inline_snapshot/pydantic_fix.py
168201
${PYSITELIB}/inline_snapshot/pydantic_fix.pyc

devel/py-inline-snapshot/distinfo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$NetBSD: distinfo,v 1.12 2025/11/16 10:39:18 adam Exp $
1+
$NetBSD: distinfo,v 1.13 2026/02/17 12:45:10 adam Exp $
22

3-
BLAKE2s (inline_snapshot-0.31.1.tar.gz) = 56ccbfe6b2bfe386fb2cc454fc277a2cd9afb9e2bcf2e048b3fcc3e39312a841
4-
SHA512 (inline_snapshot-0.31.1.tar.gz) = d1b33f9b10b02444e651e73461f25b98c5c70def13a19acf0a3e6c89ed4a47cb967ca1bb583d3aa63a26893478e3d4064f8d91ad63026c539dee66a42091efa2
5-
Size (inline_snapshot-0.31.1.tar.gz) = 2606338 bytes
3+
BLAKE2s (inline_snapshot-0.32.1.tar.gz) = 09ebd3fd1d196951e1a68e9657198d73ac007f2a87d151d308b8f2a260c85d79
4+
SHA512 (inline_snapshot-0.32.1.tar.gz) = c91b426c1186d236e958c5a1b6bc87b66f35ba989db6b22607ce2867debd01c22600ee9c52211a22654480ac2caaff099c269ef3d487d599064cd9329b215266
5+
Size (inline_snapshot-0.32.1.tar.gz) = 2624124 bytes

0 commit comments

Comments
 (0)