14
0
Files
python-zope.schema/python-zope.schema.spec
Tomáš Chvátal 7932c32ae4 Accepting request 691745 from home:mcalabkova:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/691745
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.schema?expand=0&rev=17
2019-04-05 09:03:19 +00:00

87 lines
2.7 KiB
RPMSpec

#
# spec file for package python-zope.schema
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: 4.9.3
Release: 0
Summary: Zope interface extension for defining data schemas
License: ZPL-2.1
Group: Development/Languages/Python
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 setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-zope.event
Requires: python-zope.interface >= 3.6.0
%if %{with test}
BuildRequires: %{python_module zope.event}
BuildRequires: %{python_module zope.i18nmessageid}
BuildRequires: %{python_module zope.interface}
BuildRequires: %{python_module zope.testing}
BuildRequires: %{python_module zope.testrunner}
%endif
BuildArch: noarch
%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 -s %{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