Files
python-openapi-schema-valid…/python-openapi-schema-validator.spec
Dirk Mueller c256b116d2 Accepting request 1085789 from home:bnavigator:branches:devel:languages:python
- Update to 0.4.4
  * Include tests in sdist archives #71
  * jsonschema 4.17 dependency limit #73
  * add python 3.11 support #74
- Release 0.4.3
  * test required formats only #62
- Release 0.4.2
  * Rely on jsonschema date date-time and uuid format checkers.
    Format checkers assigned to validators #60
  * Backward incompatibility: Missing format checker for format no
    longer raise FormatError
- Release 0.4.1
  * OAS30 read write validators #59
- Release 0.4.0
  * Drop no longer used runtime dependency on attrs #54
  * Re-implemented nullable based on OAS 3.0.3 definition. #57

OBS-URL: https://build.opensuse.org/request/show/1085789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-schema-validator?expand=0&rev=11
2023-05-09 20:47:38 +00:00

70 lines
2.3 KiB
RPMSpec

#
# spec file for package python-openapi-schema-validator
#
# Copyright (c) 2023 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/
#
Name: python-openapi-schema-validator
Version: 0.4.4
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#/openapi-schema-validator-%{version}-gh.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Provides: python-openapi_schema_validator = %{version}-%{release}
Requires: python-rfc3339-validator
Requires: (python-jsonschema >= 4 with python-jsonschema < 4.18)
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module jsonschema >= 4 with %python-jsonschema < 4.18}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rfc3339-validator}
# /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}
sed -i 's:tool.pytest.ini_options:hide:' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/openapi_schema_validator-%{version}.dist-info
%{python_sitelib}/openapi_schema_validator
%changelog