commit python-schema for openSUSE:Factory
Hello community, here is the log from the commit of package python-schema for openSUSE:Factory checked in at 2020-10-15 13:48:43 Comparing /work/SRC/openSUSE:Factory/python-schema (Old) and /work/SRC/openSUSE:Factory/.python-schema.new.3486 (New) Package is "python-schema" Thu Oct 15 13:48:43 2020 rev:5 rq:833486 version:0.7.3 Changes: --- /work/SRC/openSUSE:Factory/python-schema/python-schema.changes 2020-03-26 23:35:14.082817516 +0100 +++ /work/SRC/openSUSE:Factory/.python-schema.new.3486/python-schema.changes 2020-10-15 13:49:14.545270309 +0200 @@ -1,0 +2,10 @@ +Thu Sep 10 12:17:04 UTC 2020 - Antonio Larrosa + +- Update to 0.7.3 + * JSON Schema: Support schemas where the root is not a dict. + * Do not drop previous errors within an Or criterion. + +- Update to 0.7.2 + * Set the contextlib dependency as a minimum, rather than fixed. + +--- Old: schema-0.7.1.tar.gz New: schema-0.7.3.tar.gz Other differences: -- ++ python-schema.spec ++ --- /var/tmp/diff_new_pack.rIBtA2/_old 2020-10-15 13:49:17.085271372 +0200 +++ /var/tmp/diff_new_pack.rIBtA2/_new 2020-10-15 13:49:17.089271373 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-schema -Version:0.7.1 +Version:0.7.3 Release:0 Summary:Data validation library License:MIT ++ schema-0.7.1.tar.gz -> schema-0.7.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/schema-0.7.1/PKG-INFO new/schema-0.7.3/PKG-INFO --- old/schema-0.7.1/PKG-INFO 2019-09-09 19:39:48.0 +0200 +++ new/schema-0.7.3/PKG-INFO 2020-07-31 13:58:12.272543200 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: schema -Version: 0.7.1 +Version: 0.7.3 Summary: Simple data validation library Home-page: https://github.com/keleshev/schema Author: Vladimir Keleshev @@ -28,7 +28,7 @@ .. code:: python ->>> from schema import Schema, And, Use, Optional +>>> from schema import Schema, And, Use, Optional, SchemaError >>> schema = Schema([{'name': And(str, len), ... 'age': And(Use(int), lambda n: 18 <= n <= 99), @@ -87,7 +87,7 @@ >>> Schema(int).validate('123') Traceback (most recent call last): ... -SchemaUnexpectedTypeError: '123' should be instance of 'int' +schema.SchemaUnexpectedTypeError: '123' should be instance of 'int' >>> Schema(object).validate('hai') 'hai' @@ -109,7 +109,7 @@ >>> Schema(os.path.exists).validate('./non-existent/') Traceback (most recent call last): ... -SchemaError: exists('./non-existent/') should evaluate to True +schema.SchemaError: exists('./non-existent/') should evaluate to True >>> Schema(lambda n: n > 0).validate(123) 123 @@ -117,7 +117,7 @@ >>> Schema(lambda n: n > 0).validate(-12) Traceback (most recent call last): ... -SchemaError: (-12) should evaluate to True +schema.SchemaError: (-12) should evaluate to True "Validatables" ~~ @@ -142,7 +142,7 @@ >>> Regex(r'^[A-Z]+$', flags=re.I).validate('those-dashes-dont-match') Traceback (most recent call last): ... -SchemaError: Regex('^[A-Z]+$', flags=re.IGNORECASE) does not match 'those-dashes-dont-match' +schema.SchemaError: Regex('^[A-Z]+$', flags=re.IGNORECASE) does not match 'those-dashes-dont-match' For a more general case, you can use ``Use`` for creating such objects. ``Use`` helps to use a function or type to convert a value while validating it: @@ -155,7 +155,7 @@ 123 >>> Schema(Use(lambda f: open(f, 'a'))).validate('LICENSE-MIT') - +<_io.TextIOWrapper name='LICENSE-MIT' mode='a' encoding='UTF-8'> Dropping the details, ``Use`` is basically: @@ -194,10 +194,9 @@ Lists, similar containers ~ -If ``Schema(...)`` encounters an instance of ``list``, ``tuple``, ``set`` or -``frozenset``, it will validate contents of corresponding data container -against schemas listed inside that container: - +If ``Schema(...)`` encounters an instance of ``list``, ``tuple``, ``set`` +or ``frozenset``, it will validate
commit python-schema for openSUSE:Factory
Hello community, here is the log from the commit of package python-schema for openSUSE:Factory checked in at 2020-03-26 23:34:36 Comparing /work/SRC/openSUSE:Factory/python-schema (Old) and /work/SRC/openSUSE:Factory/.python-schema.new.3160 (New) Package is "python-schema" Thu Mar 26 23:34:36 2020 rev:4 rq:788549 version:0.7.1 Changes: --- /work/SRC/openSUSE:Factory/python-schema/python-schema.changes 2019-03-26 22:35:29.109652886 +0100 +++ /work/SRC/openSUSE:Factory/.python-schema.new.3160/python-schema.changes 2020-03-26 23:35:14.082817516 +0100 @@ -1,0 +2,9 @@ +Thu Mar 26 12:29:02 UTC 2020 - Marketa Calabkova + +- update to 0.7.1 + * JSON Schema: Fix allOf and oneOf with only one condition + * JSON Schema: Fix using falsy values as default + * Add 3.7 to "schema is tested with..." list + * JSON schema now rendering using references + +--- Old: schema-0.7.0.tar.gz New: schema-0.7.1.tar.gz Other differences: -- ++ python-schema.spec ++ --- /var/tmp/diff_new_pack.31pblS/_old 2020-03-26 23:35:14.598817702 +0100 +++ /var/tmp/diff_new_pack.31pblS/_new 2020-03-26 23:35:14.602817703 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-schema # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-schema -Version:0.7.0 +Version:0.7.1 Release:0 Summary:Data validation library License:MIT Group: Development/Languages/Python -Url:https://github.com/keleshev/schema +URL:https://github.com/keleshev/schema Source: https://files.pythonhosted.org/packages/source/s/schema/schema-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -54,7 +54,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec test_schema.py +%pytest test_schema.py %files %{python_files} %defattr(-,root,root,-) ++ schema-0.7.0.tar.gz -> schema-0.7.1.tar.gz ++ 2675 lines of diff (skipped)
commit python-schema for openSUSE:Factory
Hello community, here is the log from the commit of package python-schema for openSUSE:Factory checked in at 2019-03-26 22:34:56 Comparing /work/SRC/openSUSE:Factory/python-schema (Old) and /work/SRC/openSUSE:Factory/.python-schema.new.25356 (New) Package is "python-schema" Tue Mar 26 22:34:56 2019 rev:3 rq:688869 version:0.7.0 Changes: --- /work/SRC/openSUSE:Factory/python-schema/python-schema.changes 2018-12-24 11:43:38.593332371 +0100 +++ /work/SRC/openSUSE:Factory/.python-schema.new.25356/python-schema.changes 2019-03-26 22:35:29.109652886 +0100 @@ -1,0 +2,8 @@ +Tue Mar 26 16:29:04 UTC 2019 - pgaj...@suse.com + +- version update to 0.7.0 + * Add an is_valid method to the schema + * Fix typo in schema.py: vaidated->validated + * Fix callable check under PyPy2 + +--- Old: schema-0.6.7.tar.gz New: schema-0.7.0.tar.gz Other differences: -- ++ python-schema.spec ++ --- /var/tmp/diff_new_pack.KBs8lV/_old 2019-03-26 22:35:30.849652135 +0100 +++ /var/tmp/diff_new_pack.KBs8lV/_new 2019-03-26 22:35:30.889652118 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-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,9 +17,8 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-schema -Version:0.6.7 +Version:0.7.0 Release:0 Summary:Data validation library License:MIT @@ -29,9 +28,12 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} +# SECTION test requirements +BuildRequires: %{python_module contextlib2 >= 0.5.5} +BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} -%endif +# /SECTION +Requires: python-contextlib2 >= 0.5.5 BuildArch: noarch %python_subpackages @@ -51,10 +53,8 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check %python_exec test_schema.py -%endif %files %{python_files} %defattr(-,root,root,-) ++ schema-0.6.7.tar.gz -> schema-0.7.0.tar.gz ++ 2479 lines of diff (skipped)
commit python-schema for openSUSE:Factory
Hello community, here is the log from the commit of package python-schema for openSUSE:Factory checked in at 2018-12-24 11:43:38 Comparing /work/SRC/openSUSE:Factory/python-schema (Old) and /work/SRC/openSUSE:Factory/.python-schema.new.28833 (New) Package is "python-schema" Mon Dec 24 11:43:38 2018 rev:2 rq:659658 version:0.6.7 Changes: --- /work/SRC/openSUSE:Factory/python-schema/python-schema.changes 2018-05-16 11:44:05.414846621 +0200 +++ /work/SRC/openSUSE:Factory/.python-schema.new.28833/python-schema.changes 2018-12-24 11:43:38.593332371 +0100 @@ -1,0 +2,5 @@ +Tue Dec 4 12:54:17 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +--- Other differences: -- ++ python-schema.spec ++ --- /var/tmp/diff_new_pack.ZqTIyG/_old 2018-12-24 11:43:39.157331872 +0100 +++ /var/tmp/diff_new_pack.ZqTIyG/_new 2018-12-24 11:43:39.161331868 +0100 @@ -12,7 +12,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,15 +21,14 @@ Name: python-schema Version:0.6.7 Release:0 -License:MIT Summary:Data validation library -Url:https://github.com/keleshev/schema +License:MIT Group: Development/Languages/Python +Url:https://github.com/keleshev/schema Source: https://files.pythonhosted.org/packages/source/s/schema/schema-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros %if %{with test} BuildRequires: %{python_module pytest} %endif