Hello community,

here is the log from the commit of package python-openapi-spec-validator for 
openSUSE:Factory checked in at 2019-06-06 18:16:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-openapi-spec-validator (Old)
 and      /work/SRC/openSUSE:Factory/.python-openapi-spec-validator.new.4811 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-openapi-spec-validator"

Thu Jun  6 18:16:15 2019 rev:4 rq:707150 version:0.2.7

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-openapi-spec-validator/python-openapi-spec-validator.changes
      2018-12-11 15:48:27.094165443 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-openapi-spec-validator.new.4811/python-openapi-spec-validator.changes
    2019-06-06 18:16:18.636703804 +0200
@@ -1,0 +2,8 @@
+Mon Jun  3 11:11:08 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.2.7:
+  * Replace pathlib with pathlib2 (#68)
+  * Bump PyYAML to 5.1 for CVE-2017-18342 (#69)
+  * Support jsonschema 3 (#72)
+
+-------------------------------------------------------------------

Old:
----
  0.2.4.tar.gz

New:
----
  0.2.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-openapi-spec-validator.spec ++++++
--- /var/tmp/diff_new_pack.9i83E3/_old  2019-06-06 18:16:19.176703645 +0200
+++ /var/tmp/diff_new_pack.9i83E3/_new  2019-06-06 18:16:19.176703645 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-openapi-spec-validator
 #
-# 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
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-openapi-spec-validator
-Version:        0.2.4
+Version:        0.2.7
 Release:        0
 Summary:        Python module for validating OpenAPI Specs against Swagger and 
OAS3
 License:        Apache-2.0
@@ -26,19 +26,23 @@
 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 PyYAML}
+BuildRequires:  %{python_module PyYAML >= 5.1}
 BuildRequires:  %{python_module jsonschema}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
+BuildRequires:  python-pathlib2
 BuildRequires:  python-rpm-macros
-Requires:       python-PyYAML
+Requires:       python-PyYAML >= 5.1
 Requires:       python-jsonschema
 Requires:       python-six
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 BuildArch:      noarch
+%ifpython2
+Requires:       python-pathlib2
+%endif
 %python_subpackages
 
 %description
@@ -66,7 +70,7 @@
 %python_uninstall_alternative openapi-spec-validator
 
 %check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_bin_suffix}
+%pytest
 
 %files %{python_files}
 %doc README.md

++++++ 0.2.4.tar.gz -> 0.2.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/openapi-spec-validator-0.2.4/.travis.yml 
new/openapi-spec-validator-0.2.7/.travis.yml
--- old/openapi-spec-validator-0.2.4/.travis.yml        2018-07-31 
00:12:37.000000000 +0200
+++ new/openapi-spec-validator-0.2.7/.travis.yml        2019-05-20 
11:36:21.000000000 +0200
@@ -8,6 +8,9 @@
   - python: 3.4
   - python: 3.5
   - python: 3.6
+  - python: 3.7
+    dist: xenial
+    sudo: true
   - python: nightly
   - python: pypy3
   allow_failures:
@@ -30,7 +33,7 @@
   provider: pypi
   user: p1c2u
   password:
-    secure: 
iZWZuDMIWyFtJf5cLDPwA82d7DVi+/8yBQJVowct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da04SHJqML88dS9ImbKchOnP1nUb/oUFA8SADFaMonxLbqe2k+PTLymZVTv0apPpiDXKpUF0K1+1WdggDRyr9WFhoBB7KYme6uQLLi78vmDo4gZzG+NvPYoux/VVsbm+upZdqRFL1jX8GGYMu/VbFwN3EHCAH3b6kFZFijZuTgCsIGvMfU2j/tJpLGUJLN8uLJlN88PqPxU4iz7lVKRU29hLwnCWY9yjPdTCZn0gdcZuosv6leNlc=
   distributions: sdist bdist_wheel
   on:
     tags: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/openapi-spec-validator-0.2.4/openapi_spec_validator/__init__.py 
new/openapi-spec-validator-0.2.7/openapi_spec_validator/__init__.py
--- old/openapi-spec-validator-0.2.4/openapi_spec_validator/__init__.py 
2018-07-31 00:12:37.000000000 +0200
+++ new/openapi-spec-validator-0.2.7/openapi_spec_validator/__init__.py 
2019-05-20 11:36:21.000000000 +0200
@@ -9,7 +9,7 @@
 
 __author__ = 'Artur Maciag'
 __email__ = '[email protected]'
-__version__ = '0.2.4'
+__version__ = '0.2.7'
 __url__ = 'https://github.com/p1c2u/openapi-spec-validator'
 __license__ = 'Apache License, Version 2.0'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/openapi-spec-validator-0.2.4/openapi_spec_validator/__main__.py 
new/openapi-spec-validator-0.2.7/openapi_spec_validator/__main__.py
--- old/openapi-spec-validator-0.2.4/openapi_spec_validator/__main__.py 
2018-07-31 00:12:37.000000000 +0200
+++ new/openapi-spec-validator-0.2.7/openapi_spec_validator/__main__.py 
2019-05-20 11:36:21.000000000 +0200
@@ -1,8 +1,13 @@
 import logging
 import argparse
 import os
+try:
+    import pathlib
+except ImportError:
+    import pathlib2 as pathlib
 import sys
 
+
 from openapi_spec_validator import validate_spec_url, validate_v2_spec_url
 from openapi_spec_validator.exceptions import ValidationError
 
@@ -33,7 +38,7 @@
         validate_url = validate_spec_url
     # validate
     try:
-        validate_url('file://'+filename)
+        validate_url(pathlib.Path(filename).as_uri())
     except ValidationError as e:
         print(e)
         sys.exit(1)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/openapi-spec-validator-0.2.4/openapi_spec_validator/generators.py 
new/openapi-spec-validator-0.2.7/openapi_spec_validator/generators.py
--- old/openapi-spec-validator-0.2.4/openapi_spec_validator/generators.py       
2018-07-31 00:12:37.000000000 +0200
+++ new/openapi-spec-validator-0.2.7/openapi_spec_validator/generators.py       
2019-05-20 11:36:21.000000000 +0200
@@ -2,7 +2,7 @@
 import logging
 
 from six import iteritems
-from jsonschema import _validators
+from jsonschema.validators import Draft4Validator
 
 from openapi_spec_validator.decorators import DerefValidatorDecorator
 
@@ -13,21 +13,20 @@
     """Generator factory for customized validators that follows $refs
     in the schema being validated.
     """
-
     validators = {
-        '$ref': _validators.ref,
-        'properties': _validators.properties_draft4,
-        'additionalProperties': _validators.additionalProperties,
-        'patternProperties': _validators.patternProperties,
-        'type': _validators.type_draft4,
-        'dependencies': _validators.dependencies,
-        'required': _validators.required_draft4,
-        'minProperties': _validators.minProperties_draft4,
-        'maxProperties': _validators.maxProperties_draft4,
-        'allOf': _validators.allOf_draft4,
-        'oneOf': _validators.oneOf_draft4,
-        'anyOf': _validators.anyOf_draft4,
-        'not': _validators.not_draft4,
+        '$ref',
+        'properties',
+        'additionalProperties',
+        'patternProperties',
+        'type',
+        'dependencies',
+        'required',
+        'minProperties',
+        'maxProperties',
+        'allOf',
+        'oneOf',
+        'anyOf',
+        'not',
     }
 
     @classmethod
@@ -38,5 +37,6 @@
         :type instance_resolver: :class:`jsonschema.RefResolver`
         """
         deref = DerefValidatorDecorator(spec_resolver)
-        for key, validator_callable in iteritems(cls.validators):
-            yield key, deref(validator_callable)
+        for key, validator_callable in iteritems(Draft4Validator.VALIDATORS):
+            if key in cls.validators:
+                yield key, deref(validator_callable)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/openapi-spec-validator-0.2.4/requirements.txt 
new/openapi-spec-validator-0.2.7/requirements.txt
--- old/openapi-spec-validator-0.2.4/requirements.txt   2018-07-31 
00:12:37.000000000 +0200
+++ new/openapi-spec-validator-0.2.7/requirements.txt   2019-05-20 
11:36:21.000000000 +0200
@@ -1,3 +1,3 @@
-jsonschema==2.6.0
-PyYAML==3.13
-six==1.11.0
+jsonschema
+PyYAML==4.2b4
+six==1.12.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/openapi-spec-validator-0.2.4/requirements_dev.txt 
new/openapi-spec-validator-0.2.7/requirements_dev.txt
--- old/openapi-spec-validator-0.2.4/requirements_dev.txt       2018-07-31 
00:12:37.000000000 +0200
+++ new/openapi-spec-validator-0.2.7/requirements_dev.txt       2019-05-20 
11:36:21.000000000 +0200
@@ -1,6 +1,5 @@
 mock==2.0.0
 pytest==3.5.0
-pytest-pep8==1.0.6
-pytest-flakes==2.0.0
+pytest-flake8
 pytest-cov==2.5.1
 tox==3.0.0rc4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/openapi-spec-validator-0.2.4/setup.py 
new/openapi-spec-validator-0.2.7/setup.py
--- old/openapi-spec-validator-0.2.4/setup.py   2018-07-31 00:12:37.000000000 
+0200
+++ new/openapi-spec-validator-0.2.7/setup.py   2019-05-20 11:36:21.000000000 
+0200
@@ -27,8 +27,7 @@
         TestCommand.finalize_options(self)
         self.test_args = [
             '-sv',
-            '--pep8',
-            '--flakes',
+            '--flake8',
             '--cov', 'openapi_spec_validator',
             '--cov-report', 'term-missing',
         ]
@@ -54,6 +53,7 @@
     url=metadata['url'],
     license=metadata['license'],
     long_description=read_file('README.md'),
+    long_description_content_type='text/markdown',
     packages=find_packages(include=('openapi_spec_validator*',)),
     package_data={
         'openapi_spec_validator': [
@@ -69,14 +69,14 @@
     },
     install_requires=[
         "jsonschema",
-        "PyYAML",
+        "PyYAML>=5.1",
         "six",
+        'pathlib2;python_version=="2.7"',
     ],
     tests_require=[
         "mock",
         "pytest",
-        "pytest-pep8",
-        "pytest-flakes",
+        "pytest-flake8",
         "pytest-cov",
         "tox",
     ],
@@ -90,5 +90,6 @@
         "Programming Language :: Python :: 3.4",
         "Programming Language :: Python :: 3.5",
         "Programming Language :: Python :: 3.6",
+        "Programming Language :: Python :: 3.7",
     ],
 )


Reply via email to