From 779893c1b723b0cc46c8af2554be2d05398e1f6a146b88df5bb0fca143f15eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 28 Mar 2019 15:04:01 +0000 Subject: [PATCH] - Update to 3.0.1: * Support for Draft 6 and Draft 7 * Draft 7 is now the default * New TypeChecker object for more complex type definitions (and overrides) * Falling back to isodate for the date-time format checker is no longer attempted, in accordance with the specification OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonschema?expand=0&rev=33 --- jsonschema-2.6.0.tar.gz | 3 --- jsonschema-3.0.1.tar.gz | 3 +++ python-jsonschema.changes | 9 +++++++++ python-jsonschema.spec | 39 +++++++++++++++++++++++++++------------ 4 files changed, 39 insertions(+), 15 deletions(-) delete mode 100644 jsonschema-2.6.0.tar.gz create mode 100644 jsonschema-3.0.1.tar.gz diff --git a/jsonschema-2.6.0.tar.gz b/jsonschema-2.6.0.tar.gz deleted file mode 100644 index 5d135a9..0000000 --- a/jsonschema-2.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02 -size 53252 diff --git a/jsonschema-3.0.1.tar.gz b/jsonschema-3.0.1.tar.gz new file mode 100644 index 0000000..0b8a4a3 --- /dev/null +++ b/jsonschema-3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c0a81564f181de3212efa2d17de1910f8732fa1b71c42266d983cd74304e20d +size 120834 diff --git a/python-jsonschema.changes b/python-jsonschema.changes index c2a6fd2..7a7e2b5 100644 --- a/python-jsonschema.changes +++ b/python-jsonschema.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Mar 28 14:57:16 UTC 2019 - Tomáš Chvátal + +- Update to 3.0.1: + * Support for Draft 6 and Draft 7 + * Draft 7 is now the default + * New TypeChecker object for more complex type definitions (and overrides) + * Falling back to isodate for the date-time format checker is no longer attempted, in accordance with the specification + ------------------------------------------------------------------- Mon Jan 14 15:34:35 CET 2019 - kukuk@suse.de diff --git a/python-jsonschema.spec b/python-jsonschema.spec index 871f7aa..a20b7e7 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -19,32 +19,49 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-jsonschema -Version: 2.6.0 +Version: 3.0.1 Release: 0 Summary: An implementation of JSON-Schema validation for Python License: MIT Group: Development/Languages/Python -Url: http://github.com/Julian/jsonschema +URL: http://github.com/Julian/jsonschema Source: https://files.pythonhosted.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz +BuildRequires: %{python_module Twisted} +BuildRequires: %{python_module attrs >= 17.4.0} +BuildRequires: %{python_module idna} +BuildRequires: %{python_module jsonpointer > 1.13} BuildRequires: %{python_module mock} +BuildRequires: %{python_module pyrsistent >= 0.14.0} +BuildRequires: %{python_module rfc3987} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module vcversioner >= 2.16.0.0} +BuildRequires: %{python_module six >= 1.11.0} +BuildRequires: %{python_module strict-rfc3339} +BuildRequires: %{python_module webcolors} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-attrs >= 17.4.0 +Requires: python-pyrsistent >= 0.14.0 +Requires: python-setuptools +Requires: python-six >= 1.11.0 +Requires(post): update-alternatives +Requires(preun): update-alternatives +Recommends: python-idna +Recommends: python-jsonpointer > 1.13 +Recommends: python-rfc3987 +Recommends: python-strict-rfc3339 +Recommends: python-webcolors +BuildArch: noarch %if %{with python2} BuildRequires: python2-functools32 %endif -Requires(post): update-alternatives -Requires(preun): update-alternatives -BuildArch: noarch %ifpython2 Requires: python-functools32 %endif %python_subpackages %description -jsonschema is an implementation of JSON Schema (currently in Draft 3) -for Python (supporting 2.6+ including Python 3). +jsonschema is an implementation of JSON Schema for Python %prep %setup -q -n jsonschema-%{version} @@ -54,13 +71,11 @@ for Python (supporting 2.6+ including Python 3). %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} - -# Prepare for update-alternatives usage +%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/jsonschema %check -%python_exec -m unittest jsonschema.tests.test_jsonschema_test_suite +%python_exec -m unittest discover %post %python_install_alternative jsonschema