14
0
forked from pool/python-schema

Accepting request 688838 from home:pgajdos

- version update to 0.7.0
  * Add an is_valid method to the schema
  * Fix typo in schema.py: vaidated->validated
  * Fix callable check under PyPy2

OBS-URL: https://build.opensuse.org/request/show/688838
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-schema?expand=0&rev=5
This commit is contained in:
2019-03-26 18:54:18 +00:00
committed by Git OBS Bridge
parent 760569c0e6
commit fccf539bec
4 changed files with 18 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-schema
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,9 +17,8 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-schema
Version: 0.6.7
Version: 0.7.0
Release: 0
Summary: Data validation library
License: MIT
@@ -29,9 +28,12 @@ Source: https://files.pythonhosted.org/packages/source/s/schema/schema-%
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
# SECTION test requirements
BuildRequires: %{python_module contextlib2 >= 0.5.5}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
%endif
# /SECTION
Requires: python-contextlib2 >= 0.5.5
BuildArch: noarch
%python_subpackages
@@ -51,10 +53,8 @@ parsing, converted from JSON/YAML (or something else) to Python data-types.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec test_schema.py
%endif
%files %{python_files}
%defattr(-,root,root,-)