From f95bbb4bbd74cba12747cca9662ef062e44b252835498a94ea82da6157b2bb3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 31 Mar 2020 07:24:23 +0000 Subject: [PATCH] Accepting request 789975 from home:pgajdos:python OBS-URL: https://build.opensuse.org/request/show/789975 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-schema-validator?expand=0&rev=1 --- .gitattributes | 24 +++++++++ .gitignore | 4 ++ 0.1.1.tar.gz | 3 ++ python-openapi-schema-validator.changes | 5 ++ python-openapi-schema-validator.spec | 72 +++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0.1.1.tar.gz create mode 100644 python-openapi-schema-validator.changes create mode 100644 python-openapi-schema-validator.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.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 +*.tar 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..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/0.1.1.tar.gz b/0.1.1.tar.gz new file mode 100644 index 0000000..651cfc9 --- /dev/null +++ b/0.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d31ac768e3c35ec81af247b57483fa3c91eeeca6d7b59655310145fb853fb8fe +size 8156 diff --git a/python-openapi-schema-validator.changes b/python-openapi-schema-validator.changes new file mode 100644 index 0000000..f9dca73 --- /dev/null +++ b/python-openapi-schema-validator.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Mar 31 06:52:02 UTC 2020 - pgajdos@suse.com + +- initial version 0.1.1, required by openapi-core + diff --git a/python-openapi-schema-validator.spec b/python-openapi-schema-validator.spec new file mode 100644 index 0000000..7b71f0d --- /dev/null +++ b/python-openapi-schema-validator.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-openapi-schema-validator +# +# Copyright (c) 2020 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-openapi-schema-validator +Version: 0.1.1 +Release: 0 +Summary: OpenAPI schema validator for Python +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/p1c2u/openapi-schema-validator +Source: https://github.com/p1c2u/openapi-schema-validator/archive/%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-isodate +Requires: python-jsonschema +Requires: python-setuptools +Requires: python-six +Requires: python-strict-rfc3339 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module isodate} +BuildRequires: %{python_module jsonschema} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module six} +BuildRequires: %{python_module strict-rfc3339} +# /SECTION +%python_subpackages + +%description +Openapi-schema-validator is a Python library that validates +schema against the OpenAPI Schema Specification v3.0 which +is an extended subset of the JSON Schema Specification +Wright Draft 00. + +%prep +%setup -q -n openapi-schema-validator-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +sed -i 's:\(addopts = -sv\).*:\1:' setup.cfg +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog