14
0

- update to 0.18.5:

* Support unhashable ``Annotated`` metadata in
    `msgspec.inspect.type_info`
  * Fix bug preventing decoding dataclasses/attrs types with
    default values and ``slots=True, frozen=True`` (:pr:`569`).
  * Support passing parametrized generic struct types to
    `msgspec.structs.fields`
  * Validate ``str`` constraints on dict keys when decoding
    msgpack (:pr:`577`).
  * Support ``UUID`` subclasses as inputs to `msgspec.convert`
  * Call ``__eq__`` from generated ``__ne__`` if user defines
    manual ``__eq__`` method on a ``Struct`` type (:pr:`593`).
  * Include the ``Struct`` type in the generated hash
  * Add a ``cache_hash`` struct option (:pr:`596`).
  * Fix a bug around caching of dataclass type info when dealing
    with subclasses of dataclasses (:pr:`599`).
  * Add `msgspec.structs.force_setattr` (:pr:`600`).
  * Support custom dict key types in JSON encoder and decoder
  * Include ``dict`` key constraints in generated JSON schema via
    the ``propertyNames`` field (:pr:`604`).
  * Add a ``schema_hook`` for generating JSON schemas for custom
    types
  * Add support for Python 3.12's ``type`` aliases (:pr:`606`).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-msgspec?expand=0&rev=5
This commit is contained in:
2023-12-27 10:52:21 +00:00
committed by Git OBS Bridge
parent 99a38afad6
commit 86349e9f38
4 changed files with 31 additions and 4 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:12947254922516558b2bd977d093dc22a1d1df1c2e5c311c8db658757283ce50
size 1278050

3
msgspec-0.18.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e10b758ab3b063c1674119da5105e4ee69353481b95f1d0538ff29c117de3a04
size 1286542

View File

@@ -1,3 +1,30 @@
-------------------------------------------------------------------
Wed Dec 27 10:51:29 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.18.5:
* Support unhashable ``Annotated`` metadata in
`msgspec.inspect.type_info`
* Fix bug preventing decoding dataclasses/attrs types with
default values and ``slots=True, frozen=True`` (:pr:`569`).
* Support passing parametrized generic struct types to
`msgspec.structs.fields`
* Validate ``str`` constraints on dict keys when decoding
msgpack (:pr:`577`).
* Support ``UUID`` subclasses as inputs to `msgspec.convert`
* Call ``__eq__`` from generated ``__ne__`` if user defines
manual ``__eq__`` method on a ``Struct`` type (:pr:`593`).
* Include the ``Struct`` type in the generated hash
* Add a ``cache_hash`` struct option (:pr:`596`).
* Fix a bug around caching of dataclass type info when dealing
with subclasses of dataclasses (:pr:`599`).
* Add `msgspec.structs.force_setattr` (:pr:`600`).
* Support custom dict key types in JSON encoder and decoder
* Include ``dict`` key constraints in generated JSON schema via
the ``propertyNames`` field (:pr:`604`).
* Add a ``schema_hook`` for generating JSON schemas for custom
types
* Add support for Python 3.12's ``type`` aliases (:pr:`606`).
-------------------------------------------------------------------
Thu Dec 7 23:03:38 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -17,7 +17,7 @@
Name: python-msgspec
Version: 0.18.4
Version: 0.18.5
Release: 0
Summary: A fast serialization and validation library
License: BSD-3-Clause