This is an automated email from the ASF dual-hosted git repository. utkarsharma pushed a commit to branch sync_2-10-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit c9e8b544a878a9c66cd50822e3cd243204a9b6ce Author: Jarek Potiuk <[email protected]> AuthorDate: Sun Nov 24 09:37:31 2024 +0000 [v2-10-test] Only install eval-type-backport for Python < 3.10 (#44294) (#44315) The `eval-type-backport` is a tool to replace some of the controversial new type hints added with `from future imoport __annotations__` to "classic" type hint (| and list - into `Union` and `List`). This helps to battle some of the issues where Pydantic has troubles when they are used for classes that Pydantic uses. The library was initially added in #42196 but it was added for all Python versions - this change limits it only to Python < 3.10 (cherry picked from commit 29483384be5245a12ae1eb80fab364ddcbe41481) --- hatch_build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hatch_build.py b/hatch_build.py index ab7af6f13f0..93627da0193 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -436,6 +436,12 @@ DEPENDENCIES = [ "cryptography>=41.0.0", "deprecated>=1.2.13", "dill>=0.2.2", + # Required for python 3.8 and 3.9 to work with new annotations styles. Check package + # description on PyPI for more details: https://pypi.org/project/eval-type-backport/ + # NOTE! THIS MIGHT BE REMOVED BEFORE WE RELEASE 2.10.4 if + # Pydantic 2.10.2 will add eval-type-backport as dependency for Python 3.8/3.9 + # see https://github.com/pydantic/pydantic/issues/10958 + 'eval-type-backport>=0.2.0;python_version<"3.10"', "flask-caching>=2.0.0", # Flask-Session 0.6 add new arguments into the SqlAlchemySessionInterface constructor as well as # all parameters now are mandatory which make AirflowDatabaseSessionInterface incompatible with this version.
