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.2.tar.gz b/jsonschema-3.0.2.tar.gz new file mode 100644 index 0000000..87c17a4 --- /dev/null +++ b/jsonschema-3.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d4a2b7b6c2237e0199c8ea1a6d3e05bf118e289ae2b9d7ba444182a2959560d +size 143432 diff --git a/python-jsonschema.changes b/python-jsonschema.changes index eb0d6b5..9e770ac 100644 --- a/python-jsonschema.changes +++ b/python-jsonschema.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Tue Sep 17 05:31:26 UTC 2019 - John Vandenberg + +- Activate more of the test suite +- Remove tests and benchmarking from the runtime package +- Update to v3.0.2 + * Fixed a bug where 0 and False were considered equal by + const and enum +- from v3.0.1 + * Fixed a bug where extending validators did not preserve their + notion of which validator property contains $id information. +- from v3.0.0 + * 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 + ------------------------------------------------------------------- Tue Apr 16 16:17:12 UTC 2019 - Matej Cepl diff --git a/python-jsonschema.spec b/python-jsonschema.spec index da5e60d..6d15572 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -19,26 +19,38 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-jsonschema -# Please, do not update to the current version, it breaks numerous other -# packages, because of unstable API. -Version: 2.6.0 +# v3 incompatibility with OpenStack raised upstream at +# https://github.com/Julian/jsonschema/issues/604 +Version: 3.0.2 Release: 0 Summary: An implementation of JSON-Schema validation for Python License: MIT Group: Development/Languages/Python -Url: http://github.com/Julian/jsonschema +URL: https://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 -%if %{with python2} -BuildRequires: python2-functools32 -%endif +Requires: python-attrs >= 17.4.0 +Requires: python-pyrsistent >= 0.14.0 +Requires: python-six >= 1.11.0 Requires(post): update-alternatives Requires(preun): update-alternatives BuildArch: noarch +%if %{with python2} +BuildRequires: python2-functools32 +%endif %ifpython2 Requires: python-functools32 %endif @@ -56,13 +68,16 @@ for Python (supporting 2.6+ including Python 3). %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +# Remove benchmark tests +%{python_expand rm -r %{buildroot}%{$python_sitelib}/jsonschema/benchmarks %{buildroot}%{$python_sitelib}/jsonschema/tests +%fdupes -s %{buildroot}%{$python_sitelib} +} # Prepare for update-alternatives usage %python_clone -a %{buildroot}%{_bindir}/jsonschema %check -%python_exec -m unittest jsonschema.tests.test_jsonschema_test_suite +%python_exec setup.py test --test-suite=jsonschema.tests %post %python_install_alternative jsonschema