14
0
forked from pool/python-cattrs

- 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
    <cattrs.preconf.msgspec>`.
  * 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cattrs?expand=0&rev=9
This commit is contained in:
2024-10-28 22:40:48 +00:00
committed by Git OBS Bridge
parent 99f2f310cd
commit 0b9d352d27
4 changed files with 39 additions and 4 deletions

View File

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

3
cattrs-24.1.2.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,37 @@
-------------------------------------------------------------------
Mon Oct 28 22:38:02 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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
<cattrs.preconf.msgspec>`.
* 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 <dmueller@suse.com>

View File

@@ -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}