From: Nicola Tuveri Date: Tue, 26 Apr 2022 09:49:31 +0000 (+0300) Subject: [github-ci] Sync pyca workflow with master X-Git-Tag: OpenSSL_1_1_1o~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cf22024e82d59280616a16ef9b5c264cb1d70e1;p=thirdparty%2Fopenssl.git [github-ci] Sync pyca workflow with master Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/16340) --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4d0a005879..ad264ae8fb1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -254,17 +254,13 @@ jobs: strategy: matrix: RUST: - - 1.51.0 + - 1.51.0 PYTHON: - - 3.9 + - 3.9 steps: - uses: actions/checkout@v2 with: submodules: recursive - - name: package installs - run: | - sudo apt-get update - sudo apt-get -yq install python3-virtualenv virtualenv - name: Configure OpenSSL run: ./config --strict-warnings --debug enable-external-tests && perl configdata.pm --dump - name: make diff --git a/pyca-cryptography b/pyca-cryptography index 09403100de2..fa84d185c0f 160000 --- a/pyca-cryptography +++ b/pyca-cryptography @@ -1 +1 @@ -Subproject commit 09403100de2f6f1cdd0d484dcb8e620f1c335c8f +Subproject commit fa84d185c0fefa7d612759e02a26def2f948fe34 diff --git a/test/recipes/95-test_external_pyca_data/cryptography.sh b/test/recipes/95-test_external_pyca_data/cryptography.sh index e1616914a77..303ba10be46 100755 --- a/test/recipes/95-test_external_pyca_data/cryptography.sh +++ b/test/recipes/95-test_external_pyca_data/cryptography.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. +# Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved. # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. # # Licensed under the OpenSSL license (the "License"). You may not use @@ -12,6 +12,7 @@ # OpenSSL external testing using the Python Cryptography module # set -e +set -x O_EXE=`pwd`/$BLDTOP/apps O_BINC=`pwd`/$BLDTOP/include @@ -35,30 +36,29 @@ echo "------------------------------------------------------------------" cd $SRCTOP # Create a python virtual env and activate -rm -rf venv-pycrypto -virtualenv venv-pycrypto -. ./venv-pycrypto/bin/activate +rm -rf venv-cryptography +python -m venv venv-cryptography +. ./venv-cryptography/bin/activate cd pyca-cryptography pip install .[test] +pip install -e vectors echo "------------------------------------------------------------------" echo "Building cryptography" echo "------------------------------------------------------------------" -python ./setup.py clean - -CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" python ./setup.py build +CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" pip install . echo "------------------------------------------------------------------" echo "Running tests" echo "------------------------------------------------------------------" -CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" python ./setup.py test +CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" pytest -n auto tests --wycheproof-root=../wycheproof cd ../ deactivate -rm -rf venv-pycrypto +rm -rf venv-cryptography exit 0