From 01c3c5b4a7a30dde58b76e0683380efc50f595120fbf84df0283ac2c419af46a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:20:07 +0000 Subject: [PATCH] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colander?expand=0&rev=22 --- .gitattributes | 23 ++++++ .gitignore | 1 + colander-2.0.tar.gz | 3 + python-colander.changes | 172 ++++++++++++++++++++++++++++++++++++++++ python-colander.spec | 80 +++++++++++++++++++ 5 files changed, 279 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 colander-2.0.tar.gz create mode 100644 python-colander.changes create mode 100644 python-colander.spec 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc 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/python-colander.changes b/python-colander.changes new file mode 100644 index 0000000..3a902cb --- /dev/null +++ b/python-colander.changes @@ -0,0 +1,172 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:18 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + +------------------------------------------------------------------- +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 + +- Obsolete the lang subpackage to avoid conflicts +- Do not generate docu twice, it is provided online by + upstream so we don't have to bother really at all + +------------------------------------------------------------------- +Mon Apr 20 09:19:56 UTC 2020 - Matej Cepl + +- Eliminate complicated py2k constructs + +------------------------------------------------------------------- +Fri Apr 17 08:10:18 UTC 2020 - Matej Cepl + +- Add fix-tests.patch allowing use of pytest (gh#Pylons/colander#210) + +------------------------------------------------------------------- +Mon Oct 14 11:44:08 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Thu Feb 7 12:18:38 UTC 2019 - Hans-Peter Jansen + +- Update to 1.7.0 (2019-02-01), also fixes bsc#1123996 (CVE-2017-18361) + + 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 + +- Update to 1.6.0 (2019-01-31) + + Support custom format strings on DateTime and Date fields. + See https://github.com/Pylons/colander/pull/318 + + Support sub-second precision on Time fields if provided. + See https://github.com/Pylons/colander/pull/319 + + Format Python code of colander to conform to the PEP 8 style guide. + Add some linters (flake8, black and other) into tox.ini. + See https://github.com/Pylons/colander/pull/320 + +- Update to 1.5.1 (2018-09-10) + + Support deserializing colander.drop and colander.required. + See https://github.com/Pylons/colander/pull/304 + +- Update to 1.5.0 (2018-09-07) + + Drop Python 3.3 support. Add PyPy3 and Python 3.7 as allowed failures. + See https://github.com/Pylons/colander/pull/309 + + Fix email validation to not allow all ASCII characters between + and /. + This prevents email addresses like ‘foo1,foo2@bar.baz’ from being + validated, which would be handled as multiple email addresses by + subsequent tools. + See https://github.com/Pylons/colander/pull/315 + + Add support for enum.Enum objects. + See https://github.com/Pylons/colander/pull/305 + + Recompiled language translations and updated de and el locales. + See https://github.com/Pylons/colander/pull/284 + and https://github.com/Pylons/colander/pull/314 + +------------------------------------------------------------------- +Wed Dec 5 01:20:39 UTC 2018 - Jan Engelhardt + +- Ensure neutrality of descriptions. + +------------------------------------------------------------------- +Tue Dec 4 12:46:44 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu May 24 17:30:12 UTC 2018 - toddrme2178@gmail.com + +- spec file cleanups + +------------------------------------------------------------------- +Tue Sep 19 14:55:27 UTC 2017 - bruno@ioda-net.ch + +- Update to upstream 1.4 +- Backport python3 to singlespec + lang package + +------------------------------------------------------------------- +Thu Feb 9 22:32:43 UTC 2017 - hpj@urpla.net + +- Update to version 1.3.2: initial build for python3 + +------------------------------------------------------------------- +Fri Feb 6 11:21:47 UTC 2015 - hpj@urpla.net + +- Update to version 1.0 + to many changes to list here, check: + https://pypi.python.org/pypi/colander/1.0 + +------------------------------------------------------------------- +Mon Aug 5 16:32:46 UTC 2013 - hpj@urpla.net + +- Version 1.0a5: initial build + diff --git a/python-colander.spec b/python-colander.spec new file mode 100644 index 0000000..52fb3b8 --- /dev/null +++ b/python-colander.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-colander +# +# Copyright (c) 2025 SUSE LLC +# 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/ +# + + +Name: python-colander +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 +BuildRequires: %{python_module Babel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module translationstring} +BuildRequires: %{python_module wheel} +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 +%autosetup -p1 -n colander-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_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 +%{python_sitelib}/colander-%{version}.dist-info + +%changelog