commit 317543d4f2d55337bac52972ca5bc1573b630ccb8c0d9696afc3e538375adbc1 Author: Todd R Date: Tue Oct 10 15:07:47 2017 +0000 Accepting request 533042 from home:Simmphonie:python - Initial release 1.6.0 OBS-URL: https://build.opensuse.org/request/show/533042 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pykwalify-1.6.0.tar.gz b/pykwalify-1.6.0.tar.gz new file mode 100644 index 0000000..5d2b9b6 --- /dev/null +++ b/pykwalify-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2298fafe84dc68161835f62a1b8d0d72dd749d5742baa196224882a6ac2ff844 +size 63149 diff --git a/python-pykwalify.changes b/python-pykwalify.changes new file mode 100644 index 0000000..462c133 --- /dev/null +++ b/python-pykwalify.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Aug 23 12:01:09 UTC 2017 - t.gruner@katodev.de + +- Initial release 1.6.0 + diff --git a/python-pykwalify.spec b/python-pykwalify.spec new file mode 100644 index 0000000..b2ebb06 --- /dev/null +++ b/python-pykwalify.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-pykwalify +# +# Copyright (c) 2017 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.6.0 +Release: 0 +License: MIT +Summary: Python lib/cli for JSON/YAML schema validation +Url: http://github.com/grokzen/pykwalify +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/pykwalify/pykwalify-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: %{python_module docopt >= 0.6.2} +BuildRequires: %{python_module python-dateutil >= 2.4.2} +BuildRequires: %{python_module PyYAML >= 3.11} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module testfixtures} +%endif +BuildRequires: fdupes +Requires: python-docopt >= 0.6.2 +Requires: python-python-dateutil >= 2.4.2 +Requires: python-PyYAML >= 3.11 +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 +%python3_only %{_bindir}/pykwalify +%{python_sitelib}/* + +%changelog