2023-05-10 14:18:33 +00:00
committed by Git OBS Bridge
4 changed files with 36 additions and 19 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aa9246b398cd99f87fef86da115337f443e96b890997249c307e717dccf34eb5
size 16593

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2aad8e8ed1a9313b82f2fcc27084a1e630eeed17747461c1e393e74d0febea0b
size 45207

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Tue May 9 19:01:39 UTC 2023 - Ben Greiner <code@bnavigator.de>
- 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
-------------------------------------------------------------------
Tue Mar 28 07:52:05 UTC 2023 - pgajdos@suse.com

View File

@@ -16,30 +16,27 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-openapi-schema-validator
Version: 0.3.4
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
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}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-isodate
Requires: python-jsonschema
Requires: python-setuptools
Requires: python-strict-rfc3339
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 isodate}
BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module jsonschema >= 4 with %python-jsonschema < 4.18}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module strict-rfc3339}
BuildRequires: %{python_module rfc3339-validator}
# /SECTION
%python_subpackages
@@ -51,6 +48,7 @@ Wright Draft 00.
%prep
%setup -q -n openapi-schema-validator-%{version}
sed -i 's:tool.pytest.ini_options:hide:' pyproject.toml
%build
%pyproject_wheel
@@ -60,13 +58,12 @@ Wright Draft 00.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
sed -i 's:tool.pytest.ini_options:hide:' pyproject.toml
# no rfc3339-validator installed
%pytest -k 'not test_string_format_datetime_rfc3339_validator'
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*openapi_schema_validator*/
%{python_sitelib}/openapi_schema_validator-%{version}.dist-info
%{python_sitelib}/openapi_schema_validator
%changelog