summaryrefslogtreecommitdiff
path: root/.github/downstream.d
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2021-09-29 06:57:03 +0800
committerGitHub <noreply@github.com>2021-09-28 18:57:03 -0400
commit0f2c416e4598877c779cd7a370d9e06d616b562f (patch)
tree9d9d8c6f178749cea3ca4fbfd95459581b4a50d1 /.github/downstream.d
parent57e5176f4d736d84bcc0c32ae303fe7db9f82078 (diff)
downloadcryptography-0f2c416e4598877c779cd7a370d9e06d616b562f.tar.gz
add CRL pyopenssl fallback (#6325)
* add tests to verify we haven't broken the current pyopenssl release * add CRL pyopenssl fallback * simplify CRL with helpers * more readable pyopenssl-release
Diffstat (limited to '.github/downstream.d')
-rwxr-xr-x.github/downstream.d/pyopenssl-release.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/downstream.d/pyopenssl-release.sh b/.github/downstream.d/pyopenssl-release.sh
new file mode 100755
index 000000000..8428892ee
--- /dev/null
+++ b/.github/downstream.d/pyopenssl-release.sh
@@ -0,0 +1,18 @@
+#!/bin/bash -ex
+
+case "${1}" in
+ install)
+ VERSION=$(curl https://pypi.org/pypi/pyOpenSSL/json | jq -r .info.version)
+ git clone https://github.com/pyca/pyopenssl
+ cd pyopenssl
+ git checkout "$VERSION"
+ pip install -e ".[test]"
+ ;;
+ run)
+ cd pyopenssl
+ pytest tests
+ ;;
+ *)
+ exit 1
+ ;;
+esac