14
0
Files
python-pykwalify/python-pykwalify.spec
Torsten Gruner 95d2952d4d Accepting request 674336 from home:Simmphonie:python
- update to verison 1.7.0 (October 3, 2018)
  - In this release there was a line removed from the license file. It was modified in the following commit
    (cc4e31b39ff4cce2dfbc662baa6469470dd3c033 
    the 1.7.0 release. All commits and tags and releases (1.6.1 and all releases before it) prior to this commit will
    use the old license that includes the change done in the above mentioned commit. Only release 1.7.0 and commits past
    this point will use the new/updated license file. 
  - Dropped support for python 3.3 and 3.4
- version 1.6.1 (March 13, 2018)
  - Added support for keyword *nullable*. It is now possible to allow for a key not to be empty, when *required* keyword is not used.
  - Added support for keyword *class*. It will not cause any validation errors, but serves to make kwalify schemas compatible that uses that keywork.
  - Bug fixes:
    - Improved compatibility with unicodes to validate as strings.
  - Changed behaviour:
    - Propergate json and yaml loading errors when used from the cli to the user for easier debugging.
  - General changes:
    - Allow ruamel.yaml versions up to 0.16
    - License is now bundled with the built release.

OBS-URL: https://build.opensuse.org/request/show/674336
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=5
2019-02-12 21:31:35 +00:00

76 lines
2.7 KiB
RPMSpec

#
# spec file for package python-pykwalify
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pykwalify
Version: 1.7.0
Release: 0
Summary: Python lib/cli for JSON/YAML schema validation
License: MIT
Group: Development/Languages/Python
Url: http://github.com/grokzen/pykwalify
Source: https://files.pythonhosted.org/packages/source/p/pykwalify/pykwalify-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module PyYAML >= 3.11}
BuildRequires: %{python_module docopt >= 0.6.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil >= 2.4.2}
BuildRequires: %{python_module testfixtures}
%endif
BuildRequires: fdupes
Requires: python-PyYAML >= 3.11
Requires: python-docopt >= 0.6.2
Requires: python-python-dateutil >= 2.4.2
Suggests: python-ruamel.yaml >= 0.11.0
BuildArch: noarch
%python_subpackages
%description
YAML/JSON validation library
This framework is a port with a lot added functionality of the java version of the framework kwalify that can be found at: http://www.kuwata-lab.com/kwalify/
The original source code can be found at: http://sourceforge.net/projects/kwalify/files/kwalify-java/0.5.1/
The source code of the latest release that has been used can be found at: https://github.com/sunaku/kwalify. Please note that source code is not the original authors code but a fork/upload of the last release available in ruby.
The schema this library is base and extended from: http://www.kuwata-lab.com/kwalify/ruby/users-guide.01.html#schema
%prep
%setup -q -n pykwalify-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%python3_only %{_bindir}/pykwalify
%{python_sitelib}/*
%changelog