From 59180c2a6c42c54195c8aa2cd05092d6d9ba273502ddbf326d29f7701025e786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 9 Mar 2020 10:42:11 +0000 Subject: [PATCH] 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 `_. - 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 `_. 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 --- python-zope.schema.changes | 16 ++++++++++++++++ python-zope.schema.spec | 4 ++-- zope.schema-4.9.3.tar.gz | 3 --- zope.schema-5.0.1.tar.gz | 3 +++ 4 files changed, 21 insertions(+), 5 deletions(-) delete mode 100644 zope.schema-4.9.3.tar.gz create mode 100644 zope.schema-5.0.1.tar.gz diff --git a/python-zope.schema.changes b/python-zope.schema.changes index a71fac0..56ffe0c 100644 --- a/python-zope.schema.changes +++ b/python-zope.schema.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon Mar 9 10:24:34 UTC 2020 - pgajdos@suse.com + +- 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 `_. + - 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 `_. + ------------------------------------------------------------------- Mon Oct 14 14:51:30 UTC 2019 - Matej Cepl diff --git a/python-zope.schema.spec b/python-zope.schema.spec index 1fc55dc..b81378d 100644 --- a/python-zope.schema.spec +++ b/python-zope.schema.spec @@ -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 diff --git a/zope.schema-4.9.3.tar.gz b/zope.schema-4.9.3.tar.gz deleted file mode 100644 index 0d522ba..0000000 --- a/zope.schema-4.9.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d971da8707cab47b1916534b9929dcd9d7f23aed790e6b4cbe3103d5b18069d -size 98217 diff --git a/zope.schema-5.0.1.tar.gz b/zope.schema-5.0.1.tar.gz new file mode 100644 index 0000000..f985da9 --- /dev/null +++ b/zope.schema-5.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca136177e7fcfe22d4a0183e2e87a71ccc25b804892a11389c8228513a902361 +size 106251