Skip to content

Commit c0309e7

Browse files
potiukChris Fei
authored and
Chris Fei
committed
Limited cryptography to < 3.2 for python 2.7
This is due to: pyca/cryptography#5359 (comment)
1 parent 93fdbff commit c0309e7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ ENV AIRFLOW_CONSTRAINTS_URL=${AIRFLOW_CONSTRAINTS_URL}
250250

251251
# By changing the CI build epoch we can force reinstalling Airflow from the current master
252252
# It can also be overwritten manually by setting the AIRFLOW_CI_BUILD_EPOCH environment variable.
253-
ARG AIRFLOW_CI_BUILD_EPOCH="3"
253+
ARG AIRFLOW_CI_BUILD_EPOCH="4"
254254
ENV AIRFLOW_CI_BUILD_EPOCH=${AIRFLOW_CI_BUILD_EPOCH}
255255

256256
ARG AIRFLOW_PRE_CACHED_PIP_PACKAGES="true"

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,12 @@ def write_version(filename=os.path.join(*[my_dir, "airflow", "git_version"])):
219219
cloudant = [
220220
'cloudant>=0.5.9,<2.0',
221221
]
222-
crypto = ['cryptography>=0.9.3']
222+
crypto = [
223+
# Cryptography 3.2 for python 2.7 is broken
224+
# https://github.com/pyca/cryptography/issues/5359#issuecomment-727622403
225+
'cryptography>=0.9.3,<3.2; python_version<"3.0"',
226+
'cryptography>=0.9.3;python_version>="3.0"',
227+
]
223228
dask = [
224229
'distributed>=1.17.1, <2',
225230
]

0 commit comments

Comments
 (0)