14
0

Accepting request 782878 from home:pgajdos:python

- update to version 5.0.1
  - Fix: add ``Text.unicode_normalization = 'NFC'`` as default, because some are
    persisting schema fields. Setting that attribute only in ``__init__``
    breaks loading old objects.
  - Set ``IDecimal`` attributes ``min``, ``max`` and ``default`` as ``Decimal``
    type instead of ``Number``.
    See `issue 88 <https://github.com/zopefoundation/zope.schema/issues/88>`_.
  - Enable unicode normalization for ``Text`` fields.
    The default is NFC normalization. Valid forms are 'NFC', 'NFKC', 'NFD', and
    'NFKD'. To disable normalization, set ``unicode_normalization`` to ``False``
    or ``None`` when calling ``__init__`` of the ``Text`` field.
    See `issue 86 <https://github.com/zopefoundation/zope.schema/issues/86>`_.

OBS-URL: https://build.opensuse.org/request/show/782878
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.schema?expand=0&rev=22
This commit is contained in:
Tomáš Chvátal
2020-03-09 10:42:11 +00:00
committed by Git OBS Bridge
parent ddc24ac23d
commit 59180c2a6c
4 changed files with 21 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-zope.schema
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,7 @@
%bcond_with test
%endif
Name: python-zope.schema%{psuffix}
Version: 4.9.3
Version: 5.0.1
Release: 0
Summary: Zope interface extension for defining data schemas
License: ZPL-2.1