commit eacc4ed331d69ba05a0eb1a43d98fddf6d4c876d304f6e5e6a324f8dbb8267cc Author: Robert Schweikert Date: Wed Aug 1 06:22:42 2018 +0000 Accepting request 626760 from home:seanmarlow:branches:devel:languages:python - Initial release v0.2.4 OBS-URL: https://build.opensuse.org/request/show/626760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-spec-validator?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/openapi-spec-validator-0.2.4.tar.gz b/openapi-spec-validator-0.2.4.tar.gz new file mode 100644 index 0000000..242026c --- /dev/null +++ b/openapi-spec-validator-0.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14684aaec4c4f30e911132ffad3c5863047908251647f49114d249dcc2d41f4e +size 20936 diff --git a/python-openapi-spec-validator.changes b/python-openapi-spec-validator.changes new file mode 100644 index 0000000..4ccff01 --- /dev/null +++ b/python-openapi-spec-validator.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Jul 30 16:24:46 UTC 2018 - sean.marlow@suse.com + +- Initial release v0.2.4 diff --git a/python-openapi-spec-validator.spec b/python-openapi-spec-validator.spec new file mode 100644 index 0000000..92fecf8 --- /dev/null +++ b/python-openapi-spec-validator.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-openapi-spec-validator +# +# Copyright (c) 2018 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-%{**}} +Name: python-openapi-spec-validator +Version: 0.2.4 +Release: 0 +Summary: Validates OpenAPI Specs against Swagger and OAS3 +License: Apache-2.0 +Group: Development/Languages/Python +Url: https://github.com/p1c2u/openapi-spec-validator +Source: https://files.pythonhosted.org/packages/source/o/openapi-spec-validator/openapi-spec-validator-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +Requires: python-jsonchema +Requires: python-PyYAML +Requires: python-six +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives + +%python_subpackages + +%description +OpenAPI Spec Validator is a Python library that validates +OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and +OpenAPI 3.0.0 specification. The validator aims to check +for full compliance with the Specification. + +%prep +%setup -q -n openapi-spec-validator-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/openapi-spec-validator +%fdupes %{buildroot}%{_prefix} + +%post +%python_install_alternative openapi-spec-validator + +%postun +%python_uninstall_alternative openapi-spec-validator + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/openapi-spec-validator +%{python_sitelib}/* + +%changelog +