From ecd25be72a1ca6ac0f15eb98138d049737ad18be Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sat, 21 May 2022 18:15:12 +0200 Subject: [PATCH] Add limit for JPype1 (#23847) The JPype1 limit has to be introduced because otherwise the 1.4.0 JPype1 breaks our ARM builds. The 1.4.0 did not release the sdist version of the package. This made our cache refresh job to fail as 1.4.0 version cannot be installed on ARM image. The issue is captured in https://github.com/jpype-project/jpype/issues/1069 (cherry picked from commit 3699be49b24ef5a0a8d8de81a149af2c5a7dc206) --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 711f60504f6fc..2c44897444cbe 100644 --- a/setup.py +++ b/setup.py @@ -408,6 +408,10 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version ] jdbc = [ 'jaydebeapi>=1.1.1', + # JPype1 has been published without sdist in PyPI which caused failures when trying to build an + # ARM image (JPype1 does not publish binary ARM packages) + # The whole line below can be removed when https://github.com/jpype-project/jpype/issues/1069 is solved + 'jpype1<1.4.0', ] jenkins = [ 'python-jenkins>=1.0.0',