commit python-openapi-core for openSUSE:Factory
Hello community, here is the log from the commit of package python-openapi-core for openSUSE:Factory checked in at 2020-06-02 14:35:50 Comparing /work/SRC/openSUSE:Factory/python-openapi-core (Old) and /work/SRC/openSUSE:Factory/.python-openapi-core.new.3606 (New) Package is "python-openapi-core" Tue Jun 2 14:35:50 2020 rev:9 rq:810161 version:0.13.3 Changes: --- /work/SRC/openSUSE:Factory/python-openapi-core/python-openapi-core.changes 2020-03-31 17:16:28.891674704 +0200 +++ /work/SRC/openSUSE:Factory/.python-openapi-core.new.3606/python-openapi-core.changes 2020-06-02 14:36:03.811032547 +0200 @@ -1,0 +2,5 @@ +Tue May 5 12:21:53 UTC 2020 - Tomáš Chvátal + +- Skip one test so we can use pytest5 + +--- Other differences: -- ++ python-openapi-core.spec ++ --- /var/tmp/diff_new_pack.qVSvH3/_old 2020-06-02 14:36:04.903036002 +0200 +++ /var/tmp/diff_new_pack.qVSvH3/_new 2020-06-02 14:36:04.903036002 +0200 @@ -17,18 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%if 0%{?suse_version} > 1500 -%define skip_python2 1 -%bcond_with python2 -%else %bcond_without python2 -%endif Name: python-openapi-core Version:0.13.3 Release:0 Summary:Adds client-side and server-side support for the oas3 License:BSD-3-Clause -Group: Development/Languages/Python URL:https://github.com/p1c2u/openapi-core Source: https://github.com/p1c2u/openapi-core/archive/%{version}.tar.gz BuildRequires: %{python_module Flask} @@ -40,7 +34,7 @@ BuildRequires: %{python_module openapi-schema-validator} BuildRequires: %{python_module openapi-spec-validator} BuildRequires: %{python_module parse >= 1.14.0} -BuildRequires: %{python_module pytest < 5} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: %{python_module strict-rfc3339} @@ -88,7 +82,8 @@ %check sed -i '/addopts/d' setup.cfg export LANG=en_US.UTF-8 -%pytest tests/unit +# test_string_format_invalid_value pytest5 incompatible, fixed in git by major rewrite +%pytest tests/unit -k 'not test_string_format_invalid_value' %files %{python_files} %license LICENSE
commit python-openapi-core for openSUSE:Factory
Hello community, here is the log from the commit of package python-openapi-core for openSUSE:Factory checked in at 2020-03-31 17:16:25 Comparing /work/SRC/openSUSE:Factory/python-openapi-core (Old) and /work/SRC/openSUSE:Factory/.python-openapi-core.new.3160 (New) Package is "python-openapi-core" Tue Mar 31 17:16:25 2020 rev:8 rq:790004 version:0.13.3 Changes: --- /work/SRC/openSUSE:Factory/python-openapi-core/python-openapi-core.changes 2020-01-10 17:51:35.882128753 +0100 +++ /work/SRC/openSUSE:Factory/.python-openapi-core.new.3160/python-openapi-core.changes 2020-03-31 17:16:28.891674704 +0200 @@ -1,0 +2,7 @@ +Fri Mar 27 14:07:28 UTC 2020 - pgaj...@suse.com + +- version update to 0.13.3 + * lot of changes, see +https://github.com/p1c2u/openapi-core/releases + +--- Old: 0.12.0.tar.gz New: 0.13.3.tar.gz Other differences: -- ++ python-openapi-core.spec ++ --- /var/tmp/diff_new_pack.oZXYIM/_old 2020-03-31 17:16:29.615675164 +0200 +++ /var/tmp/diff_new_pack.oZXYIM/_new 2020-03-31 17:16:29.619675167 +0200 @@ -24,7 +24,7 @@ %bcond_without python2 %endif Name: python-openapi-core -Version:0.12.0 +Version:0.13.3 Release:0 Summary:Adds client-side and server-side support for the oas3 License:BSD-3-Clause @@ -36,7 +36,10 @@ BuildRequires: %{python_module isodate} BuildRequires: %{python_module lazy-object-proxy} BuildRequires: %{python_module mock} +BuildRequires: %{python_module more-itertools >= 5.0.0} +BuildRequires: %{python_module openapi-schema-validator} BuildRequires: %{python_module openapi-spec-validator} +BuildRequires: %{python_module parse >= 1.14.0} BuildRequires: %{python_module pytest < 5} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} @@ -46,7 +49,10 @@ Requires: python-attrs Requires: python-isodate Requires: python-lazy-object-proxy +Requires: python-more-itertools >= 5.0.0 +Requires: python-openapi-schema-validator Requires: python-openapi-spec-validator +Requires: python-parse >= 1.14.0 Requires: python-six Requires: python-strict-rfc3339 BuildArch: noarch @@ -80,6 +86,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +sed -i '/addopts/d' setup.cfg export LANG=en_US.UTF-8 %pytest tests/unit ++ 0.12.0.tar.gz -> 0.13.3.tar.gz ++ 15307 lines of diff (skipped)
commit python-openapi-core for openSUSE:Factory
Hello community, here is the log from the commit of package python-openapi-core for openSUSE:Factory checked in at 2020-01-10 17:51:23 Comparing /work/SRC/openSUSE:Factory/python-openapi-core (Old) and /work/SRC/openSUSE:Factory/.python-openapi-core.new.6675 (New) Package is "python-openapi-core" Fri Jan 10 17:51:23 2020 rev:7 rq:762860 version:0.12.0 Changes: --- /work/SRC/openSUSE:Factory/python-openapi-core/python-openapi-core.changes 2020-01-09 22:54:19.198821148 +0100 +++ /work/SRC/openSUSE:Factory/.python-openapi-core.new.6675/python-openapi-core.changes 2020-01-10 17:51:35.882128753 +0100 @@ -1,0 +2,6 @@ +Fri Jan 10 14:50:55 UTC 2020 - Tomáš Chvátal + +- Properly conditionalize the python2 drop so it lets us backport + the packages + +--- Other differences: -- ++ python-openapi-core.spec ++ --- /var/tmp/diff_new_pack.4A1NNB/_old 2020-01-10 17:51:36.926129278 +0100 +++ /var/tmp/diff_new_pack.4A1NNB/_new 2020-01-10 17:51:36.930129281 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-openapi-core # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%if 0%{?suse_version} > 1500 %define skip_python2 1 +%bcond_with python2 +%else +%bcond_without python2 +%endif Name: python-openapi-core Version:0.12.0 Release:0 @@ -45,6 +50,16 @@ Requires: python-six Requires: python-strict-rfc3339 BuildArch: noarch +%if %{with python2} +BuildRequires: python-backports.functools_lru_cache +BuildRequires: python-backports.functools_partialmethod +BuildRequires: python-enum34 +%endif +%ifpython2 +Requires: python-backports.functools_lru_cache +Requires: python-backports.functools_partialmethod +Requires: python-enum34 +%endif %python_subpackages %description
commit python-openapi-core for openSUSE:Factory
Hello community, here is the log from the commit of package python-openapi-core for openSUSE:Factory checked in at 2020-01-09 22:53:43 Comparing /work/SRC/openSUSE:Factory/python-openapi-core (Old) and /work/SRC/openSUSE:Factory/.python-openapi-core.new.6675 (New) Package is "python-openapi-core" Thu Jan 9 22:53:43 2020 rev:6 rq:762508 version:0.12.0 Changes: --- /work/SRC/openSUSE:Factory/python-openapi-core/python-openapi-core.changes 2019-09-26 20:46:49.301646703 +0200 +++ /work/SRC/openSUSE:Factory/.python-openapi-core.new.6675/python-openapi-core.changes 2020-01-09 22:54:19.198821148 +0100 @@ -1,0 +2,5 @@ +Thu Jan 9 18:01:55 UTC 2020 - Todd R + +- Drop python2 subpackage due to dropping backports dependencies. + +--- Other differences: -- ++ python-openapi-core.spec ++ --- /var/tmp/diff_new_pack.Pu0pLd/_old 2020-01-09 22:54:20.106821602 +0100 +++ /var/tmp/diff_new_pack.Pu0pLd/_new 2020-01-09 22:54:20.134821616 +0100 @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-openapi-core Version:0.12.0 Release:0 @@ -36,9 +37,6 @@ BuildRequires: %{python_module six} BuildRequires: %{python_module strict-rfc3339} BuildRequires: fdupes -BuildRequires: python-backports.functools_lru_cache -BuildRequires: python-backports.functools_partialmethod -BuildRequires: python-enum34 BuildRequires: python-rpm-macros Requires: python-attrs Requires: python-isodate @@ -47,11 +45,6 @@ Requires: python-six Requires: python-strict-rfc3339 BuildArch: noarch -%ifpython2 -Requires: python-backports.functools_lru_cache -Requires: python-backports.functools_partialmethod -Requires: python-enum34 -%endif %python_subpackages %description
commit python-openapi-core for openSUSE:Factory
Hello community, here is the log from the commit of package python-openapi-core for openSUSE:Factory checked in at 2019-09-26 20:46:47 Comparing /work/SRC/openSUSE:Factory/python-openapi-core (Old) and /work/SRC/openSUSE:Factory/.python-openapi-core.new.2352 (New) Package is "python-openapi-core" Thu Sep 26 20:46:47 2019 rev:5 rq:733464 version:0.12.0 Changes: --- /work/SRC/openSUSE:Factory/python-openapi-core/python-openapi-core.changes 2019-09-13 14:57:58.689276371 +0200 +++ /work/SRC/openSUSE:Factory/.python-openapi-core.new.2352/python-openapi-core.changes 2019-09-26 20:46:49.301646703 +0200 @@ -1,0 +2,6 @@ +Thu Sep 26 14:02:50 UTC 2019 - Tomáš Chvátal + +- Update to 0.12.0: + * OAS validation with JSONSchema (#157) + +--- Old: 0.11.1.tar.gz New: 0.12.0.tar.gz Other differences: -- ++ python-openapi-core.spec ++ --- /var/tmp/diff_new_pack.PlLjmP/_old 2019-09-26 20:46:49.973644907 +0200 +++ /var/tmp/diff_new_pack.PlLjmP/_new 2019-09-26 20:46:49.973644907 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-openapi-core -Version:0.11.1 +Version:0.12.0 Release:0 Summary:Adds client-side and server-side support for the oas3 License:BSD-3-Clause @@ -27,10 +27,11 @@ Source: https://github.com/p1c2u/openapi-core/archive/%{version}.tar.gz BuildRequires: %{python_module Flask} BuildRequires: %{python_module attrs} +BuildRequires: %{python_module isodate} BuildRequires: %{python_module lazy-object-proxy} BuildRequires: %{python_module mock} BuildRequires: %{python_module openapi-spec-validator} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest < 5} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: %{python_module strict-rfc3339} @@ -40,6 +41,7 @@ BuildRequires: python-enum34 BuildRequires: python-rpm-macros Requires: python-attrs +Requires: python-isodate Requires: python-lazy-object-proxy Requires: python-openapi-spec-validator Requires: python-six ++ 0.11.1.tar.gz -> 0.12.0.tar.gz ++ 2116 lines of diff (skipped)
commit python-openapi-core for openSUSE:Factory
Hello community, here is the log from the commit of package python-openapi-core for openSUSE:Factory checked in at 2019-09-13 14:57:54 Comparing /work/SRC/openSUSE:Factory/python-openapi-core (Old) and /work/SRC/openSUSE:Factory/.python-openapi-core.new.7948 (New) Package is "python-openapi-core" Fri Sep 13 14:57:54 2019 rev:4 rq:730065 version:0.11.1 Changes: --- /work/SRC/openSUSE:Factory/python-openapi-core/python-openapi-core.changes 2019-07-23 22:41:01.306899418 +0200 +++ /work/SRC/openSUSE:Factory/.python-openapi-core.new.7948/python-openapi-core.changes 2019-09-13 14:57:58.689276371 +0200 @@ -1,0 +2,7 @@ +Wed Sep 11 08:40:59 UTC 2019 - Tomáš Chvátal + +- Update to 0.11.1: + * Path item parameter override (#145) + * Separate cast and unmarshal (#156) + +--- Old: 0.11.0.tar.gz New: 0.11.1.tar.gz Other differences: -- ++ python-openapi-core.spec ++ --- /var/tmp/diff_new_pack.TZEABK/_old 2019-09-13 14:58:00.061276429 +0200 +++ /var/tmp/diff_new_pack.TZEABK/_new 2019-09-13 14:58:00.061276429 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-openapi-core -Version:0.11.0 +Version:0.11.1 Release:0 Summary:Adds client-side and server-side support for the oas3 License:BSD-3-Clause ++ 0.11.0.tar.gz -> 0.11.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openapi-core-0.11.0/openapi_core/__init__.py new/openapi-core-0.11.1/openapi_core/__init__.py --- old/openapi-core-0.11.0/openapi_core/__init__.py2019-06-18 23:42:44.0 +0200 +++ new/openapi-core-0.11.1/openapi_core/__init__.py2019-09-07 14:03:58.0 +0200 @@ -6,7 +6,7 @@ __author__ = 'Artur Maciag' __email__ = 'maciag.ar...@gmail.com' -__version__ = '0.11.0' +__version__ = '0.11.1' __url__ = 'https://github.com/p1c2u/openapi-core' __license__ = 'BSD 3-Clause License' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openapi-core-0.11.0/openapi_core/schema/parameters/models.py new/openapi-core-0.11.1/openapi_core/schema/parameters/models.py --- old/openapi-core-0.11.0/openapi_core/schema/parameters/models.py 2019-06-18 23:42:44.0 +0200 +++ new/openapi-core-0.11.1/openapi_core/schema/parameters/models.py 2019-09-07 14:03:58.0 +0200 @@ -109,10 +109,15 @@ raise InvalidParameterValue(self.name, exc) try: +casted = self.schema.cast(deserialized) +except OpenAPISchemaError as exc: +raise InvalidParameterValue(self.name, exc) + +try: unmarshalled = self.schema.unmarshal( -deserialized, +casted, custom_formatters=custom_formatters, -strict=False, +strict=True, ) except OpenAPISchemaError as exc: raise InvalidParameterValue(self.name, exc) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openapi-core-0.11.0/openapi_core/schema/schemas/models.py new/openapi-core-0.11.1/openapi_core/schema/schemas/models.py --- old/openapi-core-0.11.0/openapi_core/schema/schemas/models.py 2019-06-18 23:42:44.0 +0200 +++ new/openapi-core-0.11.1/openapi_core/schema/schemas/models.py 2019-09-07 14:03:58.0 +0200 @@ -38,7 +38,13 @@ class Schema(object): """Represents an OpenAPI Schema.""" -DEFAULT_CAST_CALLABLE_GETTER = { +TYPE_CAST_CALLABLE_GETTER = { +SchemaType.INTEGER: int, +SchemaType.NUMBER: float, +SchemaType.BOOLEAN: forcebool, +} + +DEFAULT_UNMARSHAL_CALLABLE_GETTER = { } STRING_FORMAT_CALLABLE_GETTER = { @@ -155,7 +161,39 @@ return set(required) -def get_cast_mapping(self, custom_formatters=None, strict=True): +def are_additional_properties_allowed(self, one_of_schema=None): +return ( +(self.additional_properties is not False) and +(one_of_schema is None or +one_of_schema.additional_properties is not False) +) + +def get_cast_mapping(self): +mapping = self.TYPE_CAST_CALLABLE_GETTER.copy() +mapping.update({ +SchemaType.ARRAY: self._cast_collection, +}) + +return defaultdict(lambda: lambda x: x, mapping) + +def cast(self, value): +"""Cast value from string to schema type""" +if value is None: +return value + +cast_mapping = self.get_cast_mapping() + +
commit python-openapi-core for openSUSE:Factory
Hello community, here is the log from the commit of package python-openapi-core for openSUSE:Factory checked in at 2019-07-23 22:40:55 Comparing /work/SRC/openSUSE:Factory/python-openapi-core (Old) and /work/SRC/openSUSE:Factory/.python-openapi-core.new.4126 (New) Package is "python-openapi-core" Tue Jul 23 22:40:55 2019 rev:3 rq:717909 version:0.11.0 Changes: --- /work/SRC/openSUSE:Factory/python-openapi-core/python-openapi-core.changes 2019-06-06 18:18:13.196670257 +0200 +++ /work/SRC/openSUSE:Factory/.python-openapi-core.new.4126/python-openapi-core.changes 2019-07-23 22:41:01.306899418 +0200 @@ -1,0 +2,11 @@ +Tue Jul 23 13:45:01 UTC 2019 - Tomáš Chvátal + +- Update to 0.11.0: + * End of Python 3.4 support (#136) + * Add support for one-of with any type (#133) + * Modify FlaskOpenAPIRequest to accommodate path variables (#141) + * Primitive types unmarshallers (#138) + * attr errors hashable fix (#143) + * Parameters on path item object support (#144) + +--- Old: 0.10.0.tar.gz New: 0.11.0.tar.gz Other differences: -- ++ python-openapi-core.spec ++ --- /var/tmp/diff_new_pack.GC3GWq/_old 2019-07-23 22:41:01.814898774 +0200 +++ /var/tmp/diff_new_pack.GC3GWq/_new 2019-07-23 22:41:01.814898774 +0200 @@ -17,9 +17,8 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# remove with update to > 0.5.0; atm it is not working on py2 at all Name: python-openapi-core -Version:0.10.0 +Version:0.11.0 Release:0 Summary:Adds client-side and server-side support for the oas3 License:BSD-3-Clause ++ 0.10.0.tar.gz -> 0.11.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openapi-core-0.10.0/.travis.yml new/openapi-core-0.11.0/.travis.yml --- old/openapi-core-0.10.0/.travis.yml 2019-05-21 14:21:42.0 +0200 +++ new/openapi-core-0.11.0/.travis.yml 2019-06-18 23:42:44.0 +0200 @@ -3,7 +3,6 @@ matrix: include: - python: 2.7 - - python: 3.4 - python: 3.5 - python: 3.6 - python: 3.7 @@ -14,12 +13,12 @@ allow_failures: - python: nightly before_install: -- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install 'coverage<4.0.0'; fi - pip install codecov - pip install 'py>=1.5.0' install: -- pip install -e . +- pip install -r requirements.txt - pip install -r requirements_dev.txt +- pip install -e . script: - python setup.py test after_success: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openapi-core-0.10.0/openapi_core/__init__.py new/openapi-core-0.11.0/openapi_core/__init__.py --- old/openapi-core-0.10.0/openapi_core/__init__.py2019-05-21 14:21:42.0 +0200 +++ new/openapi-core-0.11.0/openapi_core/__init__.py2019-06-18 23:42:44.0 +0200 @@ -6,7 +6,7 @@ __author__ = 'Artur Maciag' __email__ = 'maciag.ar...@gmail.com' -__version__ = '0.10.0' +__version__ = '0.11.0' __url__ = 'https://github.com/p1c2u/openapi-core' __license__ = 'BSD 3-Clause License' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openapi-core-0.10.0/openapi_core/schema/content/exceptions.py new/openapi-core-0.11.0/openapi_core/schema/content/exceptions.py --- old/openapi-core-0.10.0/openapi_core/schema/content/exceptions.py 2019-05-21 14:21:42.0 +0200 +++ new/openapi-core-0.11.0/openapi_core/schema/content/exceptions.py 2019-06-18 23:42:44.0 +0200 @@ -1,13 +1,13 @@ -from openapi_core.schema.exceptions import OpenAPIMappingError - import attr +from openapi_core.schema.exceptions import OpenAPIMappingError + class OpenAPIContentError(OpenAPIMappingError): pass -@attr.s +@attr.s(hash=True) class MimeTypeNotFound(OpenAPIContentError): mimetype = attr.ib() availableMimetypes = attr.ib() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openapi-core-0.10.0/openapi_core/schema/content/models.py new/openapi-core-0.11.0/openapi_core/schema/content/models.py --- old/openapi-core-0.10.0/openapi_core/schema/content/models.py 2019-05-21 14:21:42.0 +0200 +++ new/openapi-core-0.11.0/openapi_core/schema/content/models.py 2019-06-18 23:42:44.0 +0200 @@ -18,4 +18,4 @@ if fnmatch.fnmatch(mimetype, key): return value -raise MimeTypeNotFound(mimetype, self.keys()) +raise MimeTypeNotFound(mimetype, list(self.keys())) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore'
commit python-openapi-core for openSUSE:Factory
Hello community, here is the log from the commit of package python-openapi-core for openSUSE:Factory checked in at 2019-06-06 18:18:10 Comparing /work/SRC/openSUSE:Factory/python-openapi-core (Old) and /work/SRC/openSUSE:Factory/.python-openapi-core.new.4811 (New) Package is "python-openapi-core" Thu Jun 6 18:18:10 2019 rev:2 rq:707880 version:0.10.0 Changes: --- /work/SRC/openSUSE:Factory/python-openapi-core/python-openapi-core.changes 2018-08-29 12:26:30.215567641 +0200 +++ /work/SRC/openSUSE:Factory/.python-openapi-core.new.4811/python-openapi-core.changes 2019-06-06 18:18:13.196670257 +0200 @@ -1,0 +2,7 @@ +Mon Jun 3 11:20:00 UTC 2019 - Tomáš Chvátal + +- Update to 0.10.0: + * Various tests and support updates +- Update requirements to match up upstream + +--- Old: 0.5.0.tar.gz New: 0.10.0.tar.gz Other differences: -- ++ python-openapi-core.spec ++ --- /var/tmp/diff_new_pack.KFpYhi/_old 2019-06-06 18:18:13.640670127 +0200 +++ /var/tmp/diff_new_pack.KFpYhi/_new 2019-06-06 18:18:13.648670124 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-openapi-core # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,15 +12,14 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} # remove with update to > 0.5.0; atm it is not working on py2 at all -%define skip_python2 1 Name: python-openapi-core -Version:0.5.0 +Version:0.10.0 Release:0 Summary:Adds client-side and server-side support for the oas3 License:BSD-3-Clause @@ -28,26 +27,29 @@ URL:https://github.com/p1c2u/openapi-core Source: https://github.com/p1c2u/openapi-core/archive/%{version}.tar.gz BuildRequires: %{python_module Flask} +BuildRequires: %{python_module attrs} BuildRequires: %{python_module lazy-object-proxy} BuildRequires: %{python_module mock} BuildRequires: %{python_module openapi-spec-validator} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} -BuildRequires: %{python_module yarl} +BuildRequires: %{python_module strict-rfc3339} BuildRequires: fdupes +BuildRequires: python-backports.functools_lru_cache +BuildRequires: python-backports.functools_partialmethod +BuildRequires: python-enum34 BuildRequires: python-rpm-macros -BuildRequires: python2-backports.functools_lru_cache -BuildRequires: python2-backports.functools_partialmethod -BuildRequires: python2-enum34 +Requires: python-attrs Requires: python-lazy-object-proxy Requires: python-openapi-spec-validator Requires: python-six -Requires: python-yarl +Requires: python-strict-rfc3339 BuildArch: noarch %ifpython2 -Requires: python2-backports.functools_lru_cache -Requires: python2-enum34 +Requires: python-backports.functools_lru_cache +Requires: python-backports.functools_partialmethod +Requires: python-enum34 %endif %python_subpackages @@ -70,7 +72,7 @@ %check export LANG=en_US.UTF-8 -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} tests/unit +%pytest tests/unit %files %{python_files} %license LICENSE ++ 0.5.0.tar.gz -> 0.10.0.tar.gz ++ 4577 lines of diff (skipped)