15
0
Files
python-colander/python-colander.spec

82 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-colander
#
# Copyright (c) 2020 SUSE LLC
Accepting request 672555 from home:frispete:python - Update to 1.7.0 (2019-02-01) + The URL validator regex has been updated to no longer be vulnerable to a catastrophic backtracking that would have led to an infinite loop. See https://github.com/Pylons/colander/pull/323 and https://github.com/Pylons/colander/issues/290. With thanks to Przemek (https://github.com/p-m-k). + This does change the behaviour of the URL validator and it no longer supports file:// URI scheme (https://tools.ietf.org/html/rfc8089). Users that wish to validate file:// URI’s should change their validator to use colander.file_uri instead. + It has also dropped support for alternate schemes outside of http/ftp (and their secure equivelants). Please let us know if we need to relax this requirement. + CVE-ID: CVE-2017-18361 + The Email validator has been updated to use the same regular expression that is used by the WhatWG HTML specification, thereby increasing the email addresses that will validate correctly from web forms submitted. See https://github.com/Pylons/colander/pull/324 and https://github.com/Pylons/colander/issues/283 + Number once again will allow you to serialize None to colander.null, this reverts an accidental revert. See https://github.com/Pylons/colander/issues/204#issuecomment-459556100 + Integer SchemaType now supports an optional strict mode that will validate that the number is an integer, rather than silently accepting floats and truncating. See https://github.com/Pylons/colander/pull/322 and https://github.com/Pylons/colander/issues/292 OBS-URL: https://build.opensuse.org/request/show/672555 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colander?expand=0&rev=8
2019-02-08 11:13:50 +00:00
# Copyright (c) 2013-2019 LISA GmbH, Bingen, 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-%{**}}
Name: python-colander
Accepting request 672555 from home:frispete:python - Update to 1.7.0 (2019-02-01) + The URL validator regex has been updated to no longer be vulnerable to a catastrophic backtracking that would have led to an infinite loop. See https://github.com/Pylons/colander/pull/323 and https://github.com/Pylons/colander/issues/290. With thanks to Przemek (https://github.com/p-m-k). + This does change the behaviour of the URL validator and it no longer supports file:// URI scheme (https://tools.ietf.org/html/rfc8089). Users that wish to validate file:// URI’s should change their validator to use colander.file_uri instead. + It has also dropped support for alternate schemes outside of http/ftp (and their secure equivelants). Please let us know if we need to relax this requirement. + CVE-ID: CVE-2017-18361 + The Email validator has been updated to use the same regular expression that is used by the WhatWG HTML specification, thereby increasing the email addresses that will validate correctly from web forms submitted. See https://github.com/Pylons/colander/pull/324 and https://github.com/Pylons/colander/issues/283 + Number once again will allow you to serialize None to colander.null, this reverts an accidental revert. See https://github.com/Pylons/colander/issues/204#issuecomment-459556100 + Integer SchemaType now supports an optional strict mode that will validate that the number is an integer, rather than silently accepting floats and truncating. See https://github.com/Pylons/colander/pull/322 and https://github.com/Pylons/colander/issues/292 OBS-URL: https://build.opensuse.org/request/show/672555 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colander?expand=0&rev=8
2019-02-08 11:13:50 +00:00
Version: 1.7.0
Release: 0
Summary: A schema-based serialization and deserialization library
License: BSD-4-Clause AND ZPL-2.1 AND MIT
URL: https://github.com/Pylons/colander
Source: https://files.pythonhosted.org/packages/source/c/colander/colander-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-tests.patch gh#Pylons/colander#210 mcepl@suse.com
# Fix tests to work with pytest (and nose2) as well
Patch0: fix-tests.patch
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module translationstring}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-iso8601
Requires: python-translationstring
Obsoletes: python2-colander-doc
Obsoletes: python2-colander-lang
Obsoletes: python3-colander-doc
Obsoletes: python3-colander-lang
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module hupper}
BuildRequires: %{python_module iso8601}
BuildRequires: %{python_module plaster-pastedeploy}
BuildRequires: %{python_module plaster}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
An extensible package which can be used to:
- deserialize and validate a data structure composed of strings,
mappings, and lists.
- serialize an arbitrary data structure to a data structure composed
of strings, mappings, and lists.
%prep
%setup -q -n colander-%{version}
%autopatch -p1
%build
%python_build
%install
%python_install
%find_lang colander
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.rst README.rst
%{python_sitelib}/colander*
%changelog