14
0

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
This commit is contained in:
Tomáš Chvátal
2019-04-05 09:03:19 +00:00
committed by Git OBS Bridge
parent a64ecdcbfa
commit 7932c32ae4
7 changed files with 72 additions and 131 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-zope.schema
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -17,8 +17,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zope.schema
Version: 4.4.2
%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
@@ -30,6 +38,13 @@ 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
@@ -51,12 +66,21 @@ rm -rf zope.schema.egg-info
%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