Commit Graph

  • 2c96a04e2a Accepting request 1318119 from devel:languages:python factory Ana Guerrero 2025-11-18 14:33:32 +00:00
  • 44b2c79ae8 - Update to 25.3.0: * Potentially breaking: Abstract sets are now structured into frozensets. * Python 3.14 is now supported and part of the test matrix. * Fix unstructuring NewTypes with the {class}BaseConverter. * Make some Hypothesis tests more robust. * {func}cattrs.strategies.include_subclasses now works with generic parent classes and the tagged union strategy. * Potentially breaking: Sequences are now structured into tuples. * Add a use_alias parameter to cattrs.Converter. * The union passthrough strategy now by default accepts ints for unions that contain floats but not ints, when configured to be able to handle both ints and floats. This more closely matches the current typing behavior. * Fix unstructuring of generic classes with stringified annotations. * The default disambiguation hook factory is now only enabled for converters with unstructure_strat=AS_DICT (the default). * Switch to uv and just in lieu of PDM, tox and Make. * Fixed AttributeError: no attribute '__parameters__' while structuring attrs classes that inherit from parametrized generic aliases from collections.abc. * Potentially breaking: The converters raise StructureHandlerNotFoundError more eagerly (on hook creation, instead of on hook use). This helps surfacing problems with missing hooks sooner. * typing.Self is now supported in attrs classes, dataclasses, TypedDicts and the dict NamedTuple factories. See typing.Self for details. * PEP 695 type aliases can now be used with BaseConverter.register_structure_hook and BaseConverter.register_unstructure_hook. Previously, they required the use of BaseConverter.register_structure_hook_func. * Some defaultdicts are now supported by default, and Steve Kowalik 2025-11-17 02:11:25 +00:00
  • 7d20680956 Accepting request 1275452 from devel:languages:python leap-16.1 leap-16.0 Dominique Leuenberger 2025-05-08 16:23:30 +00:00
  • cf71db5484 - Update to 24.1.3 * Fix structuring of keyword-only dataclass fields when not using detailed validation. (#637) - Refresh support-python-3.13.patch Nico Krapp 2025-05-08 09:05:40 +00:00
  • 116e91a3ab Accepting request 1224570 from devel:languages:python Ana Guerrero 2024-11-17 15:42:02 +00:00
  • dd2c4d5779 - add fix-test-no-nans.patch to get the tests to work with the latest attrs - add support-python-3.13.patch to add python-3.13 support Matej Cepl 2024-11-16 12:20:54 +00:00
  • 31ca8d3ec6 Accepting request 1218887 from devel:languages:python Ana Guerrero 2024-10-29 13:35:40 +00:00
  • e9d5696d18 - 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 TypeVars 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. Dirk Mueller 2024-10-28 22:40:48 +00:00
  • 6e22381690 Accepting request 1166149 from devel:languages:python Ana Guerrero 2024-04-08 15:40:14 +00:00
  • 99f2f310cd - add sle15_python_module_pythons - Initial release of 22.2.0. Dirk Mueller 2024-04-08 10:41:30 +00:00
  • 71dd58ef64 Accepting request 1133406 from devel:languages:python Ana Guerrero 2023-12-15 20:50:07 +00:00
  • 7730f10d39 Accepting request 1133144 from home:pgajdos:python Markéta Machová 2023-12-15 12:04:44 +00:00
  • 08c1d0301a Accepting request 1085631 from devel:languages:python Dominique Leuenberger 2023-05-09 11:09:05 +00:00
  • 223e2bba4b Accepting request 1085582 from home:bnavigator:branches:devel:languages:python Dirk Mueller 2023-05-09 06:41:42 +00:00
  • d512715f91 Accepting request 1060317 from devel:languages:python Dominique Leuenberger 2023-01-23 17:31:49 +00:00
  • 8dde05d660 - Initial release of 22.2.0. Steve Kowalik 2023-01-23 04:23:54 +00:00