Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3653a2b

Browse files
committedNov 5, 2024·
m
1 parent 234b9a6 commit 3653a2b

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed
 

‎requirements_mpl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aws-cryptographic-material-providers==1.7.2
1+
aws-cryptographic-material-providers==1.7.3

‎test_vector_handlers/scripts/install_mpl_test_vector_runner.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,21 @@
44
# This script is intended to be used by ESDK-Python's integration tests.
55
# You may need or want to make local changes to get this work on your machine.
66

7+
# Change to the directory of the script
8+
cd "$(dirname "$0")"
9+
10+
# Get MPL version specified in requirements.txt
11+
export mplVersion=$(grep 'aws-cryptographic-material-providers==' ../requirements_mpl.txt | sed -E 's/.*==(.+)/\1/')
12+
713
# Clone MPL repo to get test vectors runner source code and the Dafny version to use
8-
git clone --recurse-submodules https://github.com/aws/aws-cryptographic-material-providers-library.git
14+
git clone --branch v$mplVersion --recurse-submodules https://github.com/aws/aws-cryptographic-material-providers-library.git
15+
916
# Download Dafny to build the test vector runner; get Dafny version from ESDK's project.properties file
1017
export dafnyVersion=$(grep '^dafnyVersion=' aws-cryptographic-material-providers-library/project.properties | cut -d '=' -f 2)
1118
curl https://github.com/dafny-lang/dafny/releases/download/v$dafnyVersion/dafny-$dafnyVersion-x64-ubuntu-20.04.zip -L -o dafny.zip
1219
unzip -qq dafny.zip && rm dafny.zip
1320
export PATH="$PWD/dafny:$PATH"
21+
1422
# Build MPL test vector runner from source
1523
cd aws-cryptographic-material-providers-library/TestVectorsAwsCryptographicMaterialProviders/
1624
make transpile_python
17-
# Install built runner.
18-
# (no-deps skips installing its local MPL dependency in favor of the one from PyPI.)
19-
pip install runtimes/python --no-deps
20-
cd ../../

‎test_vector_handlers/tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ deps =
5151
-rtest/requirements.txt
5252
# Install the MPL requirements if the `-mpl` suffix is present
5353
mpl: -rrequirements_mpl.txt
54+
# This is the filepath used in ESDK-Python's integration tests.
55+
# You may need to change this to run this project locally.
56+
mpl: scripts/aws-cryptographic-material-providers-library/TestVectorsAwsCryptographicMaterialProviders/runtimes/python
5457
..
5558
commands =
5659
awses_local: {[testenv:base-command]commands}

0 commit comments

Comments
 (0)
Please sign in to comment.