cryptography/.github/downstream.d/pyopenssl-release.sh
Paul Kehrer 0f2c416e45
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
2021-09-28 18:57:03 -04:00

18 lines
377 B
Bash
Executable file

#!/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