You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/11/15 00:27:36 UTC

(airflow) branch main updated: Add temporary limit for jsonschema-specification package (#35640)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new b69e912ad2 Add temporary limit for jsonschema-specification package (#35640)
b69e912ad2 is described below

commit b69e912ad281060dd9795468ba67c4f32e406d4e
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Nov 15 01:27:25 2023 +0100

    Add temporary limit for jsonschema-specification package (#35640)
    
    The jsonschema-specifications 2023.11.1 has referencing>=0.31 dependency
    where jsonschema-path used under-the-hood has referencing<0.31.0 which
    makes the two incompatible.
    
    That makes pip to find a resolution where latest
    jsonschema-specification 2023.11.1 gets installed, while it removes
    jsonschema-path but also downgrades openapi-schema-validator and
    openapi-spec-validator causing failures when importing moto.
    
    See https://github.com/p1c2u/jsonschema-path/issues/91
---
 setup.cfg | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/setup.cfg b/setup.cfg
index 2cda0924cc..7e4c9fa3c5 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -116,6 +116,18 @@ install_requires =
     itsdangerous>=2.0
     jinja2>=3.0.0
     jsonschema>=4.18.0
+    # The jsonschema-specifications 2023.11.1 has referencing>=0.31 dependency
+    # where jsonschema-path used under-the-hood has referencing<0.31.0 which
+    # makes the two incompatible.
+    #
+    # That makes pip to find a resolution where latest
+    # jsonschema-specification 2023.11.1 gets installed, while it removes
+    # jsonschema-path but also downgrades openapi-schema-validator and
+    # openapi-spec-validator causing failures when importing moto.
+    #
+    # See https://github.com/p1c2u/jsonschema-path/issues/91
+    # This line should be removed once jsonschema-path release version that removes referencing limit
+    jsonschema-specifications<2023.11.1
     lazy-object-proxy
     linkify-it-py>=2.0.0
     lockfile>=0.12.2