Up to [cvs.NetBSD.org] / pkgsrc / devel / py-msgspec
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Forget Python 3.10
*: limit Python versions due to py-numpy dropping Python 3.11 support
py-msgspec: updated to 0.21.1 0.21.1 Fix ValidationError and DecodeError raised in dec_hook being incorrectly wrapped in another ValidationError Fix a potential NULL dereference in structmeta_get_module_ns Fix a reference leak in ms_passes_big_int_constraints Fix missing ref_template parameter in msgspec.json.schema type stub Clarify order='deterministic' encoder docstrings Add a porting guide for users migrating from orjson
py-msgspec: updated to 0.20.0 0.20.0 (2025-11-23) Support Python 3.14, including freethreaded mode Expose the StructMeta metaclass Add msgspec.inspect.is_struct and msgspec.inspect.is_struct_type functions for checking whether an object is a msgspec.Struct-like instance or class Support Windows arm64 builds Enable ThinLTO on macOS aarch64 builds Fix leaks of re.Pattern objects when using pattern constraints of msgspec.Meta Fixed memoryview support for msgspec.msgpack Fix crash when typing.TypedDict contains incorrect metadata Add setuptools-scm as a build dependency instead of vendoring versioneer Remove support for legacy packaging builds Improved the developer experience by adding the just command runner and Dev Container support
*: remove reference to (removed) Python 3.9
*: some more recursive Python restrictions on Python 3.11+ Reported in SmartOS bulk build
Fix PLIST after py-setuptools update; bump depends and revision
py-msgspec: update to 0.19.0.
Version 0.19.0 (2024-12-27)
Improve JSON encoding performance by up to 40% (PR #647).
Ensure tuple and frozenset default values are treated identically whether specified by value or default_factory (PR #653).
Fix memory leak of match_args in StructConfig object (PR #684).
Fix memory leak in Raw.copy() (PR #709).
Update decode signatures for PEP 688 (PR #740).
Generate __replace__ method on Struct types, for use with copy.replace (PR #747).
Fix incorrect decoding of certain > 64 bit integers (PR #751).
Call __post_init__ when converting from an object to a Struct (PR #752).
BREAKING: Expand buffer when encode_into is passed a buffer smaller than offset (PR #753).
Support Raw objects as inputs to convert (PR #754).
Error nicely when a dataclass type (instead of an instance) is passed to encode (PR #755).
Drop support for Python 3.8 (PR #756, PR #763).
Add support for Python 3.13 (PR #711).
Remove deprecated from_builtins (PR #761).
Support encoding any Enum type whose .value is a supported type (PR #757).
Don’t fail eagerly when processing generic types with unsupported __parameters__ (PR #772).
Use eval_type_backport to backport type annotations to Python 3.9 (PR #773).
py-msgspec: Fails to build with Python 3.13
py-*: remove unused tool dependency py-setuptools includes the py-wheel functionality nowadays
devel/py-msgspec: import py-msgspec-0.18.6 msgspec is a fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML. It features: * High performance encoders/decoders for common protocols. The JSON and MessagePack implementations regularly benchmark as the fastest options for Python. * Support for a wide variety of Python types. Additional types may be supported through extensions. * Zero-cost schema validation using familiar Python type annotations. In benchmarks msgspec decodes and validates JSON faster than orjson can decode it alone. * A speedy Struct type for representing structured data. If you already use dataclasses or attrs, Structs should feel familiar. However, they're 5-60x faster for common operations.