From cb0780454703bbc72e308d3573a46822b41eba7811a0ee0fe929931d37fcedfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 28 May 2021 08:11:51 +0000 Subject: [PATCH] Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9 --- pykwalify-1.7.0.tar.gz | 3 --- pykwalify-1.8.0.tar.gz | 3 +++ python-pykwalify.changes | 35 +++++++++++++++++++++++++++++++++++ python-pykwalify.spec | 18 +++++++++--------- 4 files changed, 47 insertions(+), 12 deletions(-) delete mode 100644 pykwalify-1.7.0.tar.gz create mode 100644 pykwalify-1.8.0.tar.gz diff --git a/pykwalify-1.7.0.tar.gz b/pykwalify-1.7.0.tar.gz deleted file mode 100644 index e625b4b..0000000 --- a/pykwalify-1.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7e8b39c5a3a10bc176682b3bd9a7422c39ca247482df198b402e8015defcceb2 -size 69402 diff --git a/pykwalify-1.8.0.tar.gz b/pykwalify-1.8.0.tar.gz new file mode 100644 index 0000000..759ea1e --- /dev/null +++ b/pykwalify-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:796b2ad3ed4cb99b88308b533fb2f559c30fa6efb4fa9fda11347f483d245884 +size 62462 diff --git a/python-pykwalify.changes b/python-pykwalify.changes index 6add7c1..76dcb1a 100644 --- a/python-pykwalify.changes +++ b/python-pykwalify.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +Fri May 28 07:20:34 UTC 2021 - pgajdos@suse.com + +- version update to 1.8.0 + General changes: + + - Dropped support for python 3.5 and below, including 2.7 + - ruamel.yaml is now the default and preffered yaml parser + - Dropped support for pyyaml parser + - Update minimum version of ruamel.yaml to 0.16.0 + - Update minimum version of python-dateutil to 2.8.0 + + CLI changes: + + - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with + + Changed behaviour: + + - Enum error strings now output all possible values for easier debugging + - Removed deprecated imp module. Dynamic imports imght be affected + + New features: + + - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard + - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 + - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. + - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. + + Bug/issues fixed: + + - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. + All normal python tags should now be possible to use again. + - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. + This should validate things like integers and objects that support str() conversion better. + ------------------------------------------------------------------- Wed May 20 07:26:32 UTC 2020 - Petr Gajdos diff --git a/python-pykwalify.spec b/python-pykwalify.spec index f65617e..03e4072 100644 --- a/python-pykwalify.spec +++ b/python-pykwalify.spec @@ -1,7 +1,7 @@ # # spec file for package python-pykwalify # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # 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-pykwalify -Version: 1.7.0 +Version: 1.8.0 Release: 0 Summary: Python lib/cli for JSON/YAML schema validation License: MIT @@ -32,17 +31,19 @@ BuildRequires: python-rpm-macros Requires: python-PyYAML >= 3.11 Requires: python-docopt >= 0.6.2 Requires: python-python-dateutil >= 2.4.2 +Requires: python-ruamel.yaml >= 0.16.0 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Suggests: python-ruamel.yaml >= 0.11.0 BuildArch: noarch -%if %{with test} +# SECTION test requirements BuildRequires: %{python_module PyYAML >= 3.11} BuildRequires: %{python_module docopt >= 0.6.2} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dateutil >= 2.4.2} +BuildRequires: %{python_module ruamel.yaml >= 0.16.0} BuildRequires: %{python_module testfixtures} -%endif +# /SECTION %python_subpackages %description @@ -62,10 +63,9 @@ The schema this library is base and extended from: http://www.kuwata-lab.com/kwa %python_install %python_clone -a %{buildroot}%{_bindir}/pykwalify %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} + %check -%python_exec setup.py test -%endif +%pyunittest discover -v %post %python_install_alternative pykwalify