forked from pool/python-openapi-spec-validator
Accepting request 965440 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/965440 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-openapi-spec-validator?expand=0&rev=8
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f004bc1133b4c1ba1bc49577bf454be5e1bcc7ea64b21b7a112678da6577d35a
|
||||
size 27242
|
||||
3
0.4.0.tar.gz
Normal file
3
0.4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8042d76a4246026abb31a7c02a4c4a3c46f10de3a1998940069e8803f00f04ef
|
||||
size 46051
|
||||
@@ -1,70 +1,70 @@
|
||||
Index: openapi-spec-validator-0.2.4/tests/integration/test_shortcuts.py
|
||||
Index: openapi-spec-validator-0.4.0/tests/integration/test_shortcuts.py
|
||||
===================================================================
|
||||
--- openapi-spec-validator-0.2.4.orig/tests/integration/test_shortcuts.py
|
||||
+++ openapi-spec-validator-0.2.4/tests/integration/test_shortcuts.py
|
||||
@@ -78,6 +78,7 @@ class TestLocalPetstoreExample(BaseTestV
|
||||
--- openapi-spec-validator-0.4.0.orig/tests/integration/test_shortcuts.py 2022-03-28 17:05:43.215031152 +0200
|
||||
+++ openapi-spec-validator-0.4.0/tests/integration/test_shortcuts.py 2022-03-28 17:06:09.911189896 +0200
|
||||
@@ -112,6 +112,7 @@ class TestLocalPetstoreExample(BaseTestV
|
||||
return factory.spec_from_file("data/v3.0/petstore.yaml")
|
||||
|
||||
|
||||
+@pytest.mark.skip
|
||||
class TestPetstoreV2Example(BaseTestValidValidteV2SpecUrl):
|
||||
class TestPetstoreV2Example(BaseTestValidValidateV2SpecUrl):
|
||||
|
||||
@pytest.fixture
|
||||
@@ -88,7 +89,7 @@ class TestPetstoreV2Example(BaseTestVali
|
||||
@@ -122,7 +123,7 @@ class TestPetstoreV2Example(BaseTestVali
|
||||
'yaml/petstore.yaml'
|
||||
)
|
||||
|
||||
-
|
||||
+@pytest.mark.skip
|
||||
class TestApiV2WithExampe(BaseTestValidValidteV2SpecUrl):
|
||||
class TestApiV2WithExampe(BaseTestValidValidateV2SpecUrl):
|
||||
|
||||
@pytest.fixture
|
||||
@@ -99,7 +100,7 @@ class TestApiV2WithExampe(BaseTestValidV
|
||||
@@ -133,7 +134,7 @@ class TestApiV2WithExampe(BaseTestValidV
|
||||
'yaml/api-with-examples.yaml'
|
||||
)
|
||||
|
||||
-
|
||||
+@pytest.mark.skip
|
||||
class TestPetstoreV2ExpandedExample(BaseTestValidValidteV2SpecUrl):
|
||||
class TestPetstoreV2ExpandedExample(BaseTestValidValidateV2SpecUrl):
|
||||
|
||||
@pytest.fixture
|
||||
@@ -110,7 +111,7 @@ class TestPetstoreV2ExpandedExample(Base
|
||||
@@ -144,7 +145,7 @@ class TestPetstoreV2ExpandedExample(Base
|
||||
'yaml/petstore-expanded.yaml'
|
||||
)
|
||||
|
||||
-
|
||||
+@pytest.mark.skip
|
||||
class TestPetstoreExample(BaseTestValidValidteSpecUrl):
|
||||
class TestPetstoreExample(BaseTestValidValidateV3SpecUrl):
|
||||
|
||||
@pytest.fixture
|
||||
@@ -121,7 +122,7 @@ class TestPetstoreExample(BaseTestValidV
|
||||
@@ -155,7 +156,7 @@ class TestPetstoreExample(BaseTestValidV
|
||||
'petstore.yaml'
|
||||
)
|
||||
|
||||
-
|
||||
+@pytest.mark.skip
|
||||
class TestApiWithExampe(BaseTestValidValidteSpecUrl):
|
||||
class TestApiWithExample(BaseTestValidValidateV3SpecUrl):
|
||||
|
||||
@pytest.fixture
|
||||
@@ -132,7 +133,7 @@ class TestApiWithExampe(BaseTestValidVal
|
||||
@@ -166,7 +167,7 @@ class TestApiWithExample(BaseTestValidVa
|
||||
'api-with-examples.yaml'
|
||||
)
|
||||
|
||||
-
|
||||
+@pytest.mark.skip
|
||||
class TestPetstoreExpandedExample(BaseTestValidValidteSpecUrl):
|
||||
class TestPetstoreExpandedExample(BaseTestValidValidateV3SpecUrl):
|
||||
|
||||
@pytest.fixture
|
||||
Index: openapi-spec-validator-0.2.4/tests/integration/test_validate.py
|
||||
Index: openapi-spec-validator-0.4.0/tests/integration/test_validate.py
|
||||
===================================================================
|
||||
--- openapi-spec-validator-0.2.4.orig/tests/integration/test_validate.py
|
||||
+++ openapi-spec-validator-0.2.4/tests/integration/test_validate.py
|
||||
--- openapi-spec-validator-0.4.0.orig/tests/integration/test_validate.py 2022-03-28 17:05:43.215031152 +0200
|
||||
+++ openapi-spec-validator-0.4.0/tests/integration/test_validate.py 2022-03-28 17:05:59.471127814 +0200
|
||||
@@ -64,6 +64,7 @@ class TestLocalParentReferenceExample(Ba
|
||||
return factory.spec_from_file(self.spec_file)
|
||||
|
||||
|
||||
+@pytest.mark.skip
|
||||
class TestPetstoreExample(BaseTestValidOpeAPIv3Validator):
|
||||
class TestPetstoreExample(BaseTestValidOpenAPIv3Validator):
|
||||
|
||||
@pytest.fixture
|
||||
@@ -75,7 +76,7 @@ class TestPetstoreExample(BaseTestValidO
|
||||
@@ -73,15 +73,15 @@ Index: openapi-spec-validator-0.2.4/tests/integration/test_validate.py
|
||||
|
||||
-
|
||||
+@pytest.mark.skip
|
||||
class TestApiWithExampe(BaseTestValidOpeAPIv3Validator):
|
||||
class TestApiWithExample(BaseTestValidOpenAPIv3Validator):
|
||||
|
||||
@pytest.fixture
|
||||
@@ -87,7 +88,7 @@ class TestApiWithExampe(BaseTestValidOpe
|
||||
@@ -87,7 +88,7 @@ class TestApiWithExample(BaseTestValidOp
|
||||
)
|
||||
return factory.spec_from_url(url)
|
||||
|
||||
-
|
||||
+@pytest.mark.skip
|
||||
class TestPetstoreExpandedExample(BaseTestValidOpeAPIv3Validator):
|
||||
class TestPetstoreExpandedExample(BaseTestValidOpenAPIv3Validator):
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
@@ -1,3 +1,27 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 28 15:10:50 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- version update to 0.4.0
|
||||
* Drop Python 2.7, 3.5 and 3.6 support #137
|
||||
* Add Python 3.10 support #137
|
||||
* Bump dependency upper bounds #137
|
||||
* Drop pyrsistent direct dependency #142
|
||||
* Use valid licence registry identifier for Apache-2.0 licence #139
|
||||
* add setuptools dependency for pkg_resources, sort deps #141
|
||||
* On validation error: add cause and context. #129
|
||||
* Switch to poetry and update dependencies #136
|
||||
* File handler Windows compatibility fix (#122)
|
||||
* Recurse references in validation (#125)
|
||||
* A $ref may be a property name fix (#124)
|
||||
* Latest spec 3.0 schema (#110)
|
||||
* Switched to using requests rather than direct use of urllib3 (#93)
|
||||
* Handlers timeout param fix (#107)
|
||||
* Detect duplicate operationId fix (#109)
|
||||
* Repair default and $ref issue (#91)
|
||||
- python-mock is not required for build
|
||||
- modified patches
|
||||
% openapi-spec-validator-skip-urls.patch (refreshed)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 21 11:31:22 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-openapi-spec-validator
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,27 +19,30 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-openapi-spec-validator
|
||||
Version: 0.2.9
|
||||
Version: 0.4.0
|
||||
Release: 0
|
||||
Summary: Python module for validating OpenAPI Specs against Swagger and OAS3
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/p1c2u/openapi-spec-validator
|
||||
Source: https://github.com/p1c2u/openapi-spec-validator/archive/%{version}.tar.gz
|
||||
Patch0: openapi-spec-validator-skip-urls.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyYAML >= 5.1
|
||||
Requires: python-jsonschema
|
||||
Requires: python-openapi-schema-validator
|
||||
Requires: python-setuptools
|
||||
Requires: python-six
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyYAML >= 5.1}
|
||||
BuildRequires: %{python_module jsonschema}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module openapi-schema-validator}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module six}
|
||||
# /SECTION
|
||||
@@ -62,10 +65,10 @@ for full compliance with the Specification.
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/openapi-spec-validator
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
@@ -76,10 +79,11 @@ for full compliance with the Specification.
|
||||
%python_uninstall_alternative openapi-spec-validator
|
||||
|
||||
%check
|
||||
sed -i 's:tool.pytest.ini_options:hide:' pyproject.toml
|
||||
%pytest -rs
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/openapi-spec-validator
|
||||
%{python_sitelib}/*
|
||||
|
||||
Reference in New Issue
Block a user