Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-voluptuous for openSUSE:Factory checked in at 2024-09-09 14:44:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-voluptuous (Old) and /work/SRC/openSUSE:Factory/.python-voluptuous.new.10096 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-voluptuous" Mon Sep 9 14:44:46 2024 rev:12 rq:1199497 version:0.15.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-voluptuous/python-voluptuous.changes 2024-07-01 11:20:58.924397609 +0200 +++ /work/SRC/openSUSE:Factory/.python-voluptuous.new.10096/python-voluptuous.changes 2024-09-09 14:45:44.305929311 +0200 @@ -1,0 +2,6 @@ +Sun Sep 8 16:37:17 UTC 2024 - Dirk Müller <dmuel...@suse.com> + +- update to 0.15.2: + * 522 Fix regression with ALLOW_EXTRA and `Any` validator + +------------------------------------------------------------------- Old: ---- python-voluptuous-0.15.1-gh.tar.gz New: ---- python-voluptuous-0.15.2-gh.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-voluptuous.spec ++++++ --- /var/tmp/diff_new_pack.HcphOT/_old 2024-09-09 14:45:45.517979731 +0200 +++ /var/tmp/diff_new_pack.HcphOT/_new 2024-09-09 14:45:45.521979897 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-voluptuous -Version: 0.15.1 +Version: 0.15.2 Release: 0 Summary: A Python data validation library License: BSD-3-Clause ++++++ python-voluptuous-0.15.1-gh.tar.gz -> python-voluptuous-0.15.2-gh.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/voluptuous-0.15.1/CHANGELOG.md new/voluptuous-0.15.2/CHANGELOG.md --- old/voluptuous-0.15.1/CHANGELOG.md 2024-06-27 00:12:16.000000000 +0200 +++ new/voluptuous-0.15.2/CHANGELOG.md 2024-07-02 21:06:37.000000000 +0200 @@ -1,5 +1,22 @@ # Changelog +## [0.15.2] + +**Fixes**: + +* [522](https://github.com/alecthomas/voluptuous/pull/522) Fix regression with ALLOW_EXTRA and `Any` validator + +## [0.15.1] + +**Fixes**: + +* [515](https://github.com/alecthomas/voluptuous/pull/515) Fix `Remove` not removing keys that do not validate +* [516](https://github.com/alecthomas/voluptuous/pull/516) Improve validator typing to allow non-number formats for min and max +* [517](https://github.com/alecthomas/voluptuous/pull/517) Remove `Maybe` validator typing +* [518](https://github.com/alecthomas/voluptuous/pull/518) Use typing.Container for `In` validator +* [519](https://github.com/alecthomas/voluptuous/pull/519) Don't enforce type for unused description attribute +* [521](https://github.com/alecthomas/voluptuous/pull/521) Type schema attribute as `Any` + ## [0.15.0] **Fixes**: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/voluptuous-0.15.1/voluptuous/__init__.py new/voluptuous-0.15.2/voluptuous/__init__.py --- old/voluptuous-0.15.1/voluptuous/__init__.py 2024-06-27 00:12:16.000000000 +0200 +++ new/voluptuous-0.15.2/voluptuous/__init__.py 2024-07-02 21:06:37.000000000 +0200 @@ -73,6 +73,7 @@ ... 'Users': {'snmp_community': 'monkey'}}}} True """ + # flake8: noqa # fmt: off from voluptuous.schema_builder import * @@ -83,5 +84,5 @@ # fmt: on -__version__ = '0.15.1' +__version__ = '0.15.2' __author__ = 'alecthomas' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/voluptuous-0.15.1/voluptuous/schema_builder.py new/voluptuous-0.15.2/voluptuous/schema_builder.py --- old/voluptuous-0.15.1/voluptuous/schema_builder.py 2024-06-27 00:12:16.000000000 +0200 +++ new/voluptuous-0.15.2/voluptuous/schema_builder.py 2024-07-02 21:06:37.000000000 +0200 @@ -1,4 +1,3 @@ - # fmt: off from __future__ import annotations @@ -363,10 +362,10 @@ if remove_key: # remove key continue - elif error: - errors.append(error) elif self.extra == ALLOW_EXTRA: out[key] = value + elif error: + errors.append(error) elif self.extra != REMOVE_EXTRA: errors.append(er.Invalid('extra keys not allowed', key_path)) # else REMOVE_EXTRA: ignore the key so it's removed from output diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/voluptuous-0.15.1/voluptuous/tests/tests.py new/voluptuous-0.15.2/voluptuous/tests/tests.py --- old/voluptuous-0.15.1/voluptuous/tests/tests.py 2024-06-27 00:12:16.000000000 +0200 +++ new/voluptuous-0.15.2/voluptuous/tests/tests.py 2024-07-02 21:06:37.000000000 +0200 @@ -1704,6 +1704,23 @@ assert str(ctx.value.errors[1]) == "expecting a number @ data['four']" +def test_key3(): + schema = Schema( + { + Any("name", "area"): str, + "domain": str, + }, + extra=ALLOW_EXTRA, + ) + schema( + { + "name": "one", + "domain": "two", + "additional_key": "extra", + } + ) + + def test_coerce_enum(): """Test Coerce Enum"""