Accepting request 692367 from devel:languages:python

- downgrade to < 3.0.0 again to fix all openstack clients

OBS-URL: https://build.opensuse.org/request/show/692367
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonschema?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2019-04-10 21:08:47 +00:00 committed by Git OBS Bridge
commit edeb33dcff
4 changed files with 20 additions and 30 deletions

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

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

View File

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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 8 19:16:49 UTC 2019 - Dirk Mueller <dmueller@suse.com>
- downgrade to < 3.0.0 again to fix all openstack clients
-------------------------------------------------------------------
Thu Mar 28 14:57:16 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

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