加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
openapi-schema-validator.spec 2.21 KB
一键复制 编辑 原始数据 按行查看 历史
jiangxinyu 提交于 2024-11-06 19:47 . Update package to version 0.6.2
%global _empty_manifest_terminate_build 0
Name: openapi-schema-validator
Version: 0.6.2
Release: 1
Summary: OpenAPI schema validation for Python
License: BSD-3-Clause
URL: https://github.com/p1c2u/openapi-schema-validator
Source0: https://files.pythonhosted.org/packages/source/o/openapi_schema_validator/openapi_schema_validator-%{version}.tar.gz
BuildArch: noarch
%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.
%package -n python3-openapi-schema-validator
Summary: OpenAPI schema validation for Python
Provides: python-openapi-schema-validator = %{version}-%{release}
BuildRequires: python3-devel python3-isodate python3-jsonschema
BuildRequires: python3-strict-rfc3339 python3-rfc3339-validator
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-flit
BuildRequires: python3-poetry-core
%description -n python3-openapi-schema-validator
OpenAPI schema validation for Python
%package help
Summary: Development documents and examples for openapi-schema-validator
Provides: python3-openapi-schema-validator-doc
%description help
Development documents and examples for openapi-schema-validator
%prep
%autosetup -n openapi_schema_validator-%{version}
%build
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
%files -n python3-openapi-schema-validator
%{python3_sitelib}/*
%files help
%{_docdir}/*
%changelog
* Wed Nov 06 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 0.6.2-1
- Update package to version 0.6.2
* OAS30Validator readonly writeonly fix
* Jsonschema package keywords module rename fix
* Formats raise error for other types fix
* Mon Nov 21 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.3.4-1
- Update package to version 0.3.4
* Tue May 10 2022 wulei <wulei80@h-partners.com> - 0.1.5-2
- License compliance rectification
* Tue Aug 31 2021 Python_Bot <Python_Bot@openeuler.org> - 0.1.5-1
- Package Spec generated
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化