diff --git a/jsonschema-2.6.0.tar.gz b/jsonschema-2.6.0.tar.gz new file mode 100644 index 0000000..5d135a9 --- /dev/null +++ b/jsonschema-2.6.0.tar.gz @@ -0,0 +1,3 @@ +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 deleted file mode 100644 index 0b8a4a3..0000000 --- a/jsonschema-3.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c0a81564f181de3212efa2d17de1910f8732fa1b71c42266d983cd74304e20d -size 120834 diff --git a/python-jsonschema.changes b/python-jsonschema.changes index 7a7e2b5..c2a6fd2 100644 --- a/python-jsonschema.changes +++ b/python-jsonschema.changes @@ -1,12 +1,3 @@ -------------------------------------------------------------------- -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 a20b7e7..871f7aa 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -19,49 +19,32 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-jsonschema -Version: 3.0.1 +Version: 2.6.0 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 six >= 1.11.0} -BuildRequires: %{python_module strict-rfc3339} -BuildRequires: %{python_module webcolors} +BuildRequires: %{python_module vcversioner >= 2.16.0.0} 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 for Python +jsonschema is an implementation of JSON Schema (currently in Draft 3) +for Python (supporting 2.6+ including Python 3). %prep %setup -q -n jsonschema-%{version} @@ -71,11 +54,13 @@ jsonschema is an implementation of JSON Schema for Python %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +# Prepare for update-alternatives usage %python_clone -a %{buildroot}%{_bindir}/jsonschema %check -%python_exec -m unittest discover +%python_exec -m unittest jsonschema.tests.test_jsonschema_test_suite %post %python_install_alternative jsonschema