Accepting request 689397 from devel:languages:python

- 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/request/show/689397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonschema?expand=0&rev=18
This commit is contained in:
Dominique Leuenberger 2019-03-29 19:38:56 +00:00 committed by Git OBS Bridge
commit 4f359487ee
4 changed files with 39 additions and 15 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02
size 53252

3
jsonschema-3.0.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0c0a81564f181de3212efa2d17de1910f8732fa1b71c42266d983cd74304e20d
size 120834

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Mar 28 14:57:16 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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

View File

@ -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