diff --git a/colander-1.7.0.tar.gz b/colander-1.7.0.tar.gz deleted file mode 100644 index 004ad5e..0000000 --- a/colander-1.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d758163a22d22c39b9eaae049749a5cd503f341231a02ed95af480b1145e81f2 -size 131320 diff --git a/colander-2.0.tar.gz b/colander-2.0.tar.gz new file mode 100644 index 0000000..0805338 --- /dev/null +++ b/colander-2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:419cd68178d2ee6ee4cae5d5cb1830725634b0a2840917156e89eb2592237ef3 +size 137014 diff --git a/fix-tests.patch b/fix-tests.patch deleted file mode 100644 index d423d05..0000000 --- a/fix-tests.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- a/colander/tests/test_colander.py -+++ b/colander/tests/test_colander.py -@@ -4156,7 +4156,7 @@ class TestTupleSchema(unittest.TestCase) - self.assertEqual(schema.children[0], node) - - --class TestFunctional(object): -+class FunctionalBase(object): - def test_deserialize_ok(self): - import colander.tests - -@@ -4433,7 +4433,7 @@ class TestFunctional(object): - self.assertEqual(errors, expected) - - --class TestImperative(unittest.TestCase, TestFunctional): -+class TestImperative(unittest.TestCase, FunctionalBase): - def _makeSchema(self, name='schema'): - import colander - -@@ -4472,7 +4472,7 @@ class TestImperative(unittest.TestCase, - return schema - - --class TestDeclarative(unittest.TestCase, TestFunctional): -+class TestDeclarative(unittest.TestCase, FunctionalBase): - def _makeSchema(self, name='schema'): - import colander - -@@ -4503,7 +4503,7 @@ class TestDeclarative(unittest.TestCase, - return schema - - --class TestUltraDeclarative(unittest.TestCase, TestFunctional): -+class TestUltraDeclarative(unittest.TestCase, FunctionalBase): - def _makeSchema(self, name='schema'): - import colander - -@@ -4547,7 +4547,7 @@ class TestUltraDeclarative(unittest.Test - return schema - - --class TestDeclarativeWithInstantiate(unittest.TestCase, TestFunctional): -+class TestDeclarativeWithInstantiate(unittest.TestCase, FunctionalBase): - def _makeSchema(self, name='schema'): - import colander - diff --git a/python-colander.changes b/python-colander.changes index 8b835c3..eb0e521 100644 --- a/python-colander.changes +++ b/python-colander.changes @@ -1,3 +1,49 @@ +------------------------------------------------------------------- +Sun Jan 14 17:09:21 UTC 2024 - Dirk Müller + +- update to 2.0: + * Drop support for Python 2.7, 3.4, 3.5, 3.6. + * Add support for Python 3.10, 3.11. + * [breaking] If a bytes object is serialized by a String schema + node with the encoding parameter specified, it will be passed + through directly to str first, causing it to come out with a + b'' prefix. In order to serialize it properly, it should be + decoded to a string first. Previously, when the encoding + parameter was specified it would be decoded and re-encoded, + effectively passing it through untouched, despite not being a + string type. + * Add a new colander.DataURL validator. + * Add IDN support to colander.url. + * colander.All now supports colander.Invalid.msg being None or + a list, otherwise colander.Invalid.asdict crashes with + TypeError: sequence item 1: expected str instance, NoneType + found. + * Fixed an issue with colander.Mapping and colander.Sequence + where a default value of drop caused missing values to be + dropped during deserialization. (Only missing values should + affect deserialization, and only default values should affect + serialization.) Added many new test cases for MappingSchema + and SequenceSchema. + * Remove the dependency on setuptools for resolving + pkg_resources-style importable paths in + colander.GlobalObject. + * Refresh localization files with Babel 2.11. + * Add support for Python 3.9. + * Fix handling of insert_before on deferred nodes so that it + inserts the new node before the specified node instead of + always appending to the end of node.children after binding. + * Fix the broken wheels in 1.8.1 and 1.8.0 to include the + locale data. sigh + * Fix the broken wheels in 1.8.0 to include the locale data. + * Drop support for Python 3.4. + * Add support for Python 3.7 and 3.8. + * Fix deserializer on Date and DateTime fields to correctly + catch ValueError and TypeError exception, which can arise + when using custom formats on the field. Instead of allowing + these exceptions to propagate, replace then with an Invalid + exception instead. +- drop fix-tests.patch (obsolete) + ------------------------------------------------------------------- Mon Apr 20 13:05:17 UTC 2020 - Tomáš Chvátal @@ -28,10 +74,10 @@ Thu Feb 7 12:18:38 UTC 2019 - Hans-Peter Jansen 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. + 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 + + 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. @@ -100,7 +146,7 @@ Thu May 24 17:30:12 UTC 2018 - toddrme2178@gmail.com Tue Sep 19 14:55:27 UTC 2017 - bruno@ioda-net.ch - Update to upstream 1.4 -- Backport python3 to singlespec + lang package +- Backport python3 to singlespec + lang package ------------------------------------------------------------------- Thu Feb 9 22:32:43 UTC 2017 - hpj@urpla.net diff --git a/python-colander.spec b/python-colander.spec index 7c3d63e..9a90cba 100644 --- a/python-colander.spec +++ b/python-colander.spec @@ -1,7 +1,7 @@ # # spec file for package python-colander # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2013-2019 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -19,15 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-colander -Version: 1.7.0 +Version: 2.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 Babel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module translationstring} BuildRequires: fdupes @@ -59,8 +57,7 @@ An extensible package which can be used to: of strings, mappings, and lists. %prep -%setup -q -n colander-%{version} -%autopatch -p1 +%autosetup -p1 -n colander-%{version} %build %python_build