Accepting request 731508 from home:jayvdb:jsonschema
Try to upgrade again -- see issue mentioned ... poetry needs this. - Activate more of the test suite - Remove tests and benchmarking from the runtime package - Update to v3.0.2 OBS-URL: https://build.opensuse.org/request/show/731508 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonschema?expand=0&rev=42
This commit is contained in:
parent
569bddbef8
commit
d13e73b0c0
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02
|
||||
size 53252
|
3
jsonschema-3.0.2.tar.gz
Normal file
3
jsonschema-3.0.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8d4a2b7b6c2237e0199c8ea1a6d3e05bf118e289ae2b9d7ba444182a2959560d
|
||||
size 143432
|
@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 17 05:31:26 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- 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 <mcepl@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user