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

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v1-10-test by this push:
     new bbf122b  Limited cryptography to < 3.2 for python 2.7
bbf122b is described below

commit bbf122b391ced3a78ddbcc18e8231da6fe9e3bca
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Nov 15 20:27:01 2020 +0100

    Limited cryptography to < 3.2 for python 2.7
    
    This is due to: 
https://github.com/pyca/cryptography/issues/5359#issuecomment-727622403
---
 Dockerfile.ci | 2 +-
 setup.py      | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Dockerfile.ci b/Dockerfile.ci
index 0535888..5578bc0 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -250,7 +250,7 @@ ENV AIRFLOW_CONSTRAINTS_URL=${AIRFLOW_CONSTRAINTS_URL}
 
 # By changing the CI build epoch we can force reinstalling Airflow from the 
current master
 # It can also be overwritten manually by setting the AIRFLOW_CI_BUILD_EPOCH 
environment variable.
-ARG AIRFLOW_CI_BUILD_EPOCH="3"
+ARG AIRFLOW_CI_BUILD_EPOCH="4"
 ENV AIRFLOW_CI_BUILD_EPOCH=${AIRFLOW_CI_BUILD_EPOCH}
 
 ARG AIRFLOW_PRE_CACHED_PIP_PACKAGES="true"
diff --git a/setup.py b/setup.py
index 5653296..64bedb7 100644
--- a/setup.py
+++ b/setup.py
@@ -219,7 +219,12 @@ cgroups = [
 cloudant = [
     'cloudant>=0.5.9,<2.0',
 ]
-crypto = ['cryptography>=0.9.3']
+crypto = [
+    # Cryptography 3.2 for python 2.7 is broken
+    # https://github.com/pyca/cryptography/issues/5359#issuecomment-727622403
+    'cryptography>=0.9.3,<3.2; python_version<"3.0"',
+    'cryptography>=0.9.3'
+]
 dask = [
     'distributed>=1.17.1, <2',
 ]

Reply via email to