diff --git a/cattrs-23.2.3.tar.gz b/cattrs-23.2.3.tar.gz deleted file mode 100644 index 5dc0ac2..0000000 --- a/cattrs-23.2.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a934090d95abaa9e911dac357e3a8699e0b4b14f8529bcc7d2b1ad9d51672b9f -size 610215 diff --git a/cattrs-24.1.2.tar.gz b/cattrs-24.1.2.tar.gz new file mode 100644 index 0000000..ae2d41a --- /dev/null +++ b/cattrs-24.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8028cfe1ff5382df59dd36474a86e02d817b06eaf8af84555441bac915d2ef85 +size 426462 diff --git a/python-cattrs.changes b/python-cattrs.changes index 641bae3..8e75396 100644 --- a/python-cattrs.changes +++ b/python-cattrs.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Mon Oct 28 22:38:02 UTC 2024 - Dirk Müller + +- update to 24.1.2: + * Fix {meth}`BaseConverter.register_structure_hook` and + {meth}`BaseConverter.register_unstructure_hook` type hints. + * Fix {meth}`BaseConverter.register_structure_hook_factory` and + {meth}`BaseConverter.register_unstructure_hook_factory` type + hints. + * **Potentially breaking**: Unstructuring hooks for + `typing.Any` are consistent now: values are unstructured + using their runtime type. + * Introduce {meth}`BaseConverter.get_structure_hook` and + {meth}`BaseConverter.get_unstructure_hook` methods. + * Enhance the {func}`cattrs.cols.is_mapping` predicate function + to also cover virtual subclasses of `abc.Mapping`. + * Introduce the _msgspec_ {mod}`preconf converter + `. + * Add support for PEP 695 type aliases. + * Add support for PEP 696 `TypeVar`s with defaults. + * Add support for named tuples with type metadata + (`typing.NamedTuple`). + * Add support for optionally un/unstructuring named tuples + using dictionaries. + * PEP 695 generics are now tested. + * Imports are now sorted using Ruff. + * Tests are run with the pytest-xdist plugin by default. + * Rework the introductory parts of the documentation, + introducing the Basics section. + * The documentation has been significantly reworked. + * The docs now use the Inter font. + * Make type annotations for `include_subclasses` and + `tagged_union` strategies more lenient. + ------------------------------------------------------------------- Mon Apr 8 10:41:21 UTC 2024 - Dirk Müller diff --git a/python-cattrs.spec b/python-cattrs.spec index 2df39cb..ce069b9 100644 --- a/python-cattrs.spec +++ b/python-cattrs.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-cattrs -Version: 23.2.3 +Version: 24.1.2 Release: 0 Summary: Composable complex class support for attrs and dataclasses License: MIT @@ -37,6 +37,7 @@ BuildRequires: %{python_module cbor2} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module immutables} BuildRequires: %{python_module msgpack >= 1.0.2} +BuildRequires: %{python_module msgspec} BuildRequires: %{python_module orjson} BuildRequires: %{python_module pymongo} BuildRequires: %{python_module pytest-benchmark}