Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-openapi-schema-validator for 
openSUSE:Factory checked in at 2023-11-09 21:36:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-openapi-schema-validator (Old)
 and      /work/SRC/openSUSE:Factory/.python-openapi-schema-validator.new.17445 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-openapi-schema-validator"

Thu Nov  9 21:36:01 2023 rev:11 rq:1124423 version:0.6.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-openapi-schema-validator/python-openapi-schema-validator.changes
  2023-09-26 22:10:31.443587290 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-openapi-schema-validator.new.17445/python-openapi-schema-validator.changes
       2023-11-09 21:36:17.990883223 +0100
@@ -1,0 +2,7 @@
+Thu Nov  9 10:28:51 UTC 2023 - ecsos <ec...@opensuse.org>
+
+- Update to 0.6.2
+  * OAS30Validator readonly writeonly fix #135
+- Disable test_validators to fix build error.
+
+-------------------------------------------------------------------

Old:
----
  openapi-schema-validator-0.6.1-gh.tar.gz

New:
----
  openapi-schema-validator-0.6.2-gh.tar.gz

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

Other differences:
------------------
++++++ python-openapi-schema-validator.spec ++++++
--- /var/tmp/diff_new_pack.RLiLAy/_old  2023-11-09 21:36:19.170926791 +0100
+++ /var/tmp/diff_new_pack.RLiLAy/_new  2023-11-09 21:36:19.170926791 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-openapi-schema-validator
-Version:        0.6.1
+Version:        0.6.2
 Release:        0
 Summary:        OpenAPI schema validator for Python
 License:        BSD-3-Clause
@@ -26,18 +26,18 @@
 Source:         
https://github.com/p1c2u/openapi-schema-validator/archive/%{version}.tar.gz#/openapi-schema-validator-%{version}-gh.tar.gz
 BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module pip}
-BuildRequires:  %{python_module poetry-core}
+BuildRequires:  %{python_module poetry-core >= 1.0.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Provides:       python-openapi_schema_validator = %{version}-%{release}
 Requires:       python-jsonschema-specifications >= 2023.5.2
 Requires:       python-rfc3339-validator
-Requires:       (python-jsonschema >= 4.18 with python-jsonschema < 5)
+Requires:       (python-jsonschema >= 4.19.1 with python-jsonschema < 5)
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module jsonschema >= 4.19.1 with %python-jsonschema < 
5}
 BuildRequires:  %{python_module jsonschema-specifications >= 2023.5.2}
-BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module pytest >= 7}
 BuildRequires:  %{python_module rfc3339-validator}
 # /SECTION
 %python_subpackages
@@ -60,7 +60,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%pytest
+%pytest -k 'not (test_validators)'
 
 %files %{python_files}
 %doc README.rst

++++++ openapi-schema-validator-0.6.1-gh.tar.gz -> 
openapi-schema-validator-0.6.2-gh.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/openapi-schema-validator-0.6.1/.bumpversion.cfg 
new/openapi-schema-validator-0.6.2/.bumpversion.cfg
--- old/openapi-schema-validator-0.6.1/.bumpversion.cfg 2023-09-20 
22:01:53.000000000 +0200
+++ new/openapi-schema-validator-0.6.2/.bumpversion.cfg 2023-10-05 
13:15:41.000000000 +0200
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 0.6.1
+current_version = 0.6.2
 tag = True
 tag_name = {new_version}
 commit = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/openapi-schema-validator-0.6.1/.gitignore 
new/openapi-schema-validator-0.6.2/.gitignore
--- old/openapi-schema-validator-0.6.1/.gitignore       2023-09-20 
22:01:53.000000000 +0200
+++ new/openapi-schema-validator-0.6.2/.gitignore       2023-10-05 
13:15:41.000000000 +0200
@@ -121,6 +121,10 @@
 # mkdocs documentation
 /site
 
+# asdf versions
+.tool-versions
+.default-python-packages
+
 # mypy
 .mypy_cache/
 .dmypy.json
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/openapi-schema-validator-0.6.1/Makefile 
new/openapi-schema-validator-0.6.2/Makefile
--- old/openapi-schema-validator-0.6.1/Makefile 1970-01-01 01:00:00.000000000 
+0100
+++ new/openapi-schema-validator-0.6.2/Makefile 2023-10-05 13:15:41.000000000 
+0200
@@ -0,0 +1,49 @@
+.EXPORT_ALL_VARIABLES:
+
+PROJECT_NAME=openapi-schema-validator
+PACKAGE_NAME=$(subst -,_,${PROJECT_NAME})
+VERSION=`git describe --abbrev=0`
+
+PYTHONDONTWRITEBYTECODE=1
+
+params:
+       @echo "Project name: ${PROJECT_NAME}"
+       @echo "Package name: ${PACKAGE_NAME}"
+       @echo "Version: ${VERSION}"
+
+dist-build:
+       @poetry build
+
+dist-cleanup:
+       @rm -rf build dist ${PACKAGE_NAME}.egg-info
+
+dist-upload:
+       @poetry publish
+
+test-python:
+       @pytest
+
+test-cache-cleanup:
+       @rm -rf .pytest_cache
+
+reports-cleanup:
+       @rm -rf reports
+
+test-cleanup: test-cache-cleanup reports-cleanup
+
+docs-html:
+       sphinx-build -b html docs docs/_build
+
+docs-cleanup:
+       @rm -rf docs/_build
+
+cleanup: dist-cleanup test-cleanup
+
+release/patch:
+       @bump2version patch
+
+release/minor:
+       @bump2version minor
+
+release/major:
+       @bump2version major
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/openapi-schema-validator-0.6.1/openapi_schema_validator/__init__.py 
new/openapi-schema-validator-0.6.2/openapi_schema_validator/__init__.py
--- old/openapi-schema-validator-0.6.1/openapi_schema_validator/__init__.py     
2023-09-20 22:01:53.000000000 +0200
+++ new/openapi-schema-validator-0.6.2/openapi_schema_validator/__init__.py     
2023-10-05 13:15:41.000000000 +0200
@@ -8,7 +8,7 @@
 
 __author__ = "Artur Maciag"
 __email__ = "maciag.ar...@gmail.com"
-__version__ = "0.6.1"
+__version__ = "0.6.2"
 __url__ = "https://github.com/python-openapi/openapi-schema-validator";
 __license__ = "3-clause BSD License"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/openapi-schema-validator-0.6.1/openapi_schema_validator/_keywords.py 
new/openapi-schema-validator-0.6.2/openapi_schema_validator/_keywords.py
--- old/openapi-schema-validator-0.6.1/openapi_schema_validator/_keywords.py    
2023-09-20 22:01:53.000000000 +0200
+++ new/openapi-schema-validator-0.6.2/openapi_schema_validator/_keywords.py    
2023-10-05 13:15:41.000000000 +0200
@@ -234,27 +234,21 @@
             yield ValidationError(error % extras_msg(extras))
 
 
-def readOnly(
+def write_readOnly(
     validator: Validator,
     ro: bool,
     instance: Any,
     schema: Mapping[Hashable, Any],
 ) -> Iterator[ValidationError]:
-    if not getattr(validator, "write", True) or not ro:
-        return
-
     yield ValidationError(f"Tried to write read-only property with {instance}")
 
 
-def writeOnly(
+def read_writeOnly(
     validator: Validator,
     wo: bool,
     instance: Any,
     schema: Mapping[Hashable, Any],
 ) -> Iterator[ValidationError]:
-    if not getattr(validator, "read", True) or not wo:
-        return
-
     yield ValidationError(f"Tried to read write-only property with {instance}")
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/openapi-schema-validator-0.6.1/openapi_schema_validator/validators.py 
new/openapi-schema-validator-0.6.2/openapi_schema_validator/validators.py
--- old/openapi-schema-validator-0.6.1/openapi_schema_validator/validators.py   
2023-09-20 22:01:53.000000000 +0200
+++ new/openapi-schema-validator-0.6.2/openapi_schema_validator/validators.py   
2023-10-05 13:15:41.000000000 +0200
@@ -49,8 +49,8 @@
         "$ref": _keywords.ref,
         # fixed OAS fields
         "discriminator": oas_keywords.not_implemented,
-        "readOnly": oas_keywords.readOnly,
-        "writeOnly": oas_keywords.writeOnly,
+        "readOnly": oas_keywords.not_implemented,
+        "writeOnly": oas_keywords.not_implemented,
         "xml": oas_keywords.not_implemented,
         "externalDocs": oas_keywords.not_implemented,
         "example": oas_keywords.not_implemented,
@@ -68,16 +68,14 @@
     OAS30Validator,
     validators={
         "required": oas_keywords.read_required,
-        "readOnly": oas_keywords.not_implemented,
-        "writeOnly": oas_keywords.writeOnly,
+        "writeOnly": oas_keywords.read_writeOnly,
     },
 )
 OAS30WriteValidator = extend(
     OAS30Validator,
     validators={
         "required": oas_keywords.write_required,
-        "readOnly": oas_keywords.readOnly,
-        "writeOnly": oas_keywords.not_implemented,
+        "readOnly": oas_keywords.write_readOnly,
     },
 )
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/openapi-schema-validator-0.6.1/poetry.lock 
new/openapi-schema-validator-0.6.2/poetry.lock
--- old/openapi-schema-validator-0.6.1/poetry.lock      2023-09-20 
22:01:53.000000000 +0200
+++ new/openapi-schema-validator-0.6.2/poetry.lock      2023-10-05 
13:15:41.000000000 +0200
@@ -126,6 +126,17 @@
 uvloop = ["uvloop (>=0.15.2)"]
 
 [[package]]
+name = "bump2version"
+version = "1.0.1"
+description = "Version-bump your software with a single command!"
+optional = false
+python-versions = ">=3.5"
+files = [
+    {file = "bump2version-1.0.1-py2.py3-none-any.whl", hash = 
"sha256:37f927ea17cde7ae2d7baf832f8e80ce3777624554a653006c9144f8017fe410"},
+    {file = "bump2version-1.0.1.tar.gz", hash = 
"sha256:762cb2bfad61f4ec8e2bdf452c7c267416f8c70dd9ecb1653fd0bbb01fa936e6"},
+]
+
+[[package]]
 name = "certifi"
 version = "2023.7.22"
 description = "Python package for providing Mozilla's CA Bundle."
@@ -1502,13 +1513,13 @@
 
 [[package]]
 name = "urllib3"
-version = "2.0.3"
+version = "2.0.6"
 description = "HTTP library with thread-safe connection pooling, file post, 
and more."
 optional = false
 python-versions = ">=3.7"
 files = [
-    {file = "urllib3-2.0.3-py3-none-any.whl", hash = 
"sha256:48e7fafa40319d358848e1bc6809b208340fafe2096f1725d05d67443d0483d1"},
-    {file = "urllib3-2.0.3.tar.gz", hash = 
"sha256:bee28b5e56addb8226c96f7f13ac28cb4c301dd5ea8a6ca179c0b9835e032825"},
+    {file = "urllib3-2.0.6-py3-none-any.whl", hash = 
"sha256:7a7c7003b000adf9e7ca2a377c9688bbc54ed41b985789ed576570342a375cd2"},
+    {file = "urllib3-2.0.6.tar.gz", hash = 
"sha256:b19e1a85d206b56d7df1d5e683df4a7725252a964e3993648dd0fb5a1c157564"},
 ]
 
 [package.extras]
@@ -1558,4 +1569,4 @@
 [metadata]
 lock-version = "2.0"
 python-versions = "^3.8.0"
-content-hash = 
"aaf6d06196e45abedeb1fdb9852cc747a1b1c839db9b7bffe26000eb9257dae0"
+content-hash = 
"0f54a1f50513fe28564b84d6ee2494bb50d7af62f89bd4c323aa6baacf3c496b"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/openapi-schema-validator-0.6.1/pyproject.toml 
new/openapi-schema-validator-0.6.2/pyproject.toml
--- old/openapi-schema-validator-0.6.1/pyproject.toml   2023-09-20 
22:01:53.000000000 +0200
+++ new/openapi-schema-validator-0.6.2/pyproject.toml   2023-10-05 
13:15:41.000000000 +0200
@@ -30,7 +30,7 @@
 
 [tool.poetry]
 name = "openapi-schema-validator"
-version = "0.6.1"
+version = "0.6.2"
 description = "OpenAPI schema validation for Python"
 authors = ["Artur Maciag <maciag.ar...@gmail.com>"]
 license = "BSD-3-Clause"
@@ -72,6 +72,7 @@
 mypy = "^1.5"
 flynt = "^1.0"
 deptry = "^0.12.0"
+bump2version = "^1.0.1"
 
 [tool.poetry.group.docs.dependencies]
 sphinx = ">=5.3,<8.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/openapi-schema-validator-0.6.1/tests/integration/test_validators.py 
new/openapi-schema-validator-0.6.2/tests/integration/test_validators.py
--- old/openapi-schema-validator-0.6.1/tests/integration/test_validators.py     
2023-09-20 22:01:53.000000000 +0200
+++ new/openapi-schema-validator-0.6.2/tests/integration/test_validators.py     
2023-10-05 13:15:41.000000000 +0200
@@ -596,6 +596,11 @@
             format_checker=oas30_format_checker,
         )
         assert validator.validate({"some_prop": "hello"}) is None
+        validator = OAS30Validator(
+            schema,
+            format_checker=oas30_format_checker,
+        )
+        assert validator.validate({"some_prop": "hello"}) is None
 
     def test_write_only(self):
         schema = {
@@ -616,6 +621,11 @@
             schema,
             format_checker=oas30_format_checker,
         )
+        assert validator.validate({"some_prop": "hello"}) is None
+        validator = OAS30Validator(
+            schema,
+            format_checker=oas30_format_checker,
+        )
         assert validator.validate({"some_prop": "hello"}) is None
 
     def test_required_read_only(self):

Reply via email to