commit 16052ee1d0c198e051854cdc4b3ed2e81863c4839c546a76f143240b24b59610 Author: Adrian Schröter Date: Fri May 3 23:40:51 2024 +0200 Sync from SUSE:SLFO:Main python-zope.schema revision 72549c07c75f942d1c38e13765755bdc diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-zope.schema.changes b/python-zope.schema.changes new file mode 100644 index 0000000..4d5f8e4 --- /dev/null +++ b/python-zope.schema.changes @@ -0,0 +1,168 @@ +------------------------------------------------------------------- +Fri Jan 6 12:40:52 UTC 2023 - Dirk Müller + +- update to 7.0.1: + * Fix fallback when ``zope.i18nmessageid`` is not installed (regression + introduced in 7.0.0). + * Add support for Python 3.11. + * Drop support for Python 2.7, 3.5, 3.6. + * Drop ``zope.schema._compat`` module. + * Fix test deprecation warning on Python 3.11. + +------------------------------------------------------------------- +Fri Sep 16 12:03:45 UTC 2022 - Markéta Machová + +- Update to 6.2.1 + * Fix incompatibility introduced in 6.1.0: The Bool field constructor + implicitly set required to False if not given. + * Add support for Python 3.10. + * Fix outsized integer test values that break tests on newer Python versions. + +------------------------------------------------------------------- +Mon Sep 12 14:02:56 UTC 2022 - Markéta Machová + +- Skip tests which broke with https://github.com/python/cpython/issues/95778 + +------------------------------------------------------------------- +Fri Jul 9 20:45:19 UTC 2021 - Jason Craig + +- Update to 6.1.0 + * Fix IField.required to not be required by default. +- Changes from 6.0.1 + * Bring branch coverage to 100%. + * Add support for Python 3.9. + * Fix FieldUpdateEvent implementation by having an object attribute + as the IFieldUpdatedEvent interfaces claims there should be. + +------------------------------------------------------------------- +Tue Mar 24 14:30:23 UTC 2020 - pgajdos@suse.com + +- version update to 6.0.0 + - Require zope.interface 5.0. + - Ensure the resolution orders of all fields are consistent and make + sense. In particular, ``Bool`` fields now correctly implement + ``IBool`` before ``IFromUnicode``. See `issue 80 + `_. + - Add support for Python 3.8. + - Drop support for Python 3.4. +- deleted sources + - pre_checkin.sh (not needed) + +------------------------------------------------------------------- +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 + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Tue Apr 2 11:44:31 UTC 2019 - Marketa Calabkova + +- update to version 4.9.3 + 4.5.0: + * Add support for Python 3.5 and 3.6. + * Drop support for Python 2.6, 3.2, and 3.3. + * Drop support for ‘setup.py test’. Use zope.testrunner instead. + 4.6.0 + * Add support for Python 3.7. + * Choice, SimpleVocabulary and SimpleTerm all gracefully handle + using Unicode token values with non-ASCII characters by encoding + them with the backslashreplace error handler. + * Add fields and interfaces representing Python’s numeric tower. + * More various enhancements. + 4.6.1 + * Fix the Field constructor to again allow MessageID values for + the description. + 4.6.2 + * Fix checking a field’s constraint to set the field and value + properties if the constraint raises a ValidationError. + 4.7.0 + * Give various classes some fields. + 4.8.0 + * Fix passing None as the description to a field constructor. + 4.9.0 + * Make NativeString and NativeStringLine distinct types. + * Fix Field.getDoc() when value_type or key_type is present. + * Make DottedName accept leading underscores for each segment. + 4.9.1 + * Fix SimpleTerm token for non-ASCII bytes values. + 4.9.2 + * Make sure that the title for IObject.validate_invariants is a + unicode string. + 4.9.3 + * Fixed a ReST error in getDoc() results when having “subfields” + with titles. +- drop *-doc subpackage, use multibuild instead + +------------------------------------------------------------------- +Tue Dec 4 13:11:31 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu Jul 13 20:31:17 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Split docs and tests into separate -doc package since running + tests and sometimes building docs had become very messy. + Also see (gh#/zopefoundation/zope.proxy#18) + +------------------------------------------------------------------- +Fri May 15 13:11:18 UTC 2015 - benoit.monin@gmx.fr + +- update to version 4.4.2: + * Fix description of min max field: max value is included, + not excluded. +- additional changes from version 4.4.1: + * Added support for Python 3.4. +- switch the source archive to tar.gz (zip not available) +- remove unzip from BuildRequires +- pass -q to test to avoid spamming the build log + +------------------------------------------------------------------- +Fri Feb 28 20:02:35 UTC 2014 - os-dev@jacraig.com + +- Update to 4.4.0: + * Add an event on field properties to notify that a field has been updated. + This event enables definition of subscribers based on an event, a context + and a field. The event contains also the old value and the new value. + (also see package ``zope.schemaevent`` that define a field event handler) +- Changes from 4.3.3: + * PEP 8 cleanup. + * Don't raise RequiredMissing if a field's defaultFactory returns the field's + missing_value. + * Updated ``boostrap.py`` to version 2.2. + * Add the ability to swallow ValueErrors when rendering a SimpleVocabulary, + allowing for cases where vocabulary items may be duplicated (e.g., due to + user input). + * It was a pain that ``ConstraintNotSatisfied`` did not tell the field name. + +------------------------------------------------------------------- +Mon Jul 29 12:16:07 UTC 2013 - hpj@urpla.net + +- generate separate -doc package + +------------------------------------------------------------------- +Wed Mar 20 10:50:22 UTC 2013 - speilicke@suse.com + +- Add (Build)Requires python-ordereddict for SLE_11 only + +------------------------------------------------------------------- +Fri Mar 15 13:44:06 UTC 2013 - speilicke@suse.com + +- Initial version + diff --git a/python-zope.schema.spec b/python-zope.schema.spec new file mode 100644 index 0000000..7c463a2 --- /dev/null +++ b/python-zope.schema.spec @@ -0,0 +1,86 @@ +# +# spec file +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-zope.schema%{psuffix} +Version: 7.0.1 +Release: 0 +Summary: Zope interface extension for defining data schemas +License: ZPL-2.1 +URL: https://pypi.python.org/pypi/zope.schema +Source: https://files.pythonhosted.org/packages/source/z/zope.schema/zope.schema-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-zope.event +Requires: python-zope.interface >= 5.0.0 +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module zope.event} +BuildRequires: %{python_module zope.i18nmessageid} +BuildRequires: %{python_module zope.interface >= 3.6.0} +BuildRequires: %{python_module zope.testing} +BuildRequires: %{python_module zope.testrunner} +%endif +%python_subpackages + +%description +Schemas extend the notion of interfaces to detailed descriptions of +Attributes (but not methods). Every schema is an interface and +specifies the public fields of an object. A *field* roughly +corresponds to an attribute of a Python object. But a Field provides +space for at least a title and a description. It can also constrain +its value and provide a validation method. Besides you can optionally +specify characteristics such as its value being read-only or not +required. + +%prep +%setup -q -n zope.schema-%{version} +rm -rf zope.schema.egg-info + +%build +%python_build + +%install +%if !%{with test} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +%python_expand PYTHONPATH=src %{_bindir}/zope-testrunner-%{$python_bin_suffix} -vvv --test-path src +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE.txt +%doc COPYRIGHT.txt CHANGES.rst README.rst +%{python_sitelib}/* +%endif + +%changelog diff --git a/zope.schema-7.0.1.tar.gz b/zope.schema-7.0.1.tar.gz new file mode 100644 index 0000000..d30a253 --- /dev/null +++ b/zope.schema-7.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ead4dbcb03354d4e410c9a3b904451eb44d90254751b1cbdedf4a61aede9fbb9 +size 108737