File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
- aws-cryptographic-material-providers==1.7.2
1
+ aws-cryptographic-material-providers==1.7.3
Original file line number Diff line number Diff line change 4
4
# This script is intended to be used by ESDK-Python's integration tests.
5
5
# You may need or want to make local changes to get this work on your machine.
6
6
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
+
7
13
# 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
+
9
16
# Download Dafny to build the test vector runner; get Dafny version from ESDK's project.properties file
10
17
export dafnyVersion=$( grep ' ^dafnyVersion=' aws-cryptographic-material-providers-library/project.properties | cut -d ' =' -f 2)
11
18
curl https://github.com/dafny-lang/dafny/releases/download/v$dafnyVersion /dafny-$dafnyVersion -x64-ubuntu-20.04.zip -L -o dafny.zip
12
19
unzip -qq dafny.zip && rm dafny.zip
13
20
export PATH=" $PWD /dafny:$PATH "
21
+
14
22
# Build MPL test vector runner from source
15
23
cd aws-cryptographic-material-providers-library/TestVectorsAwsCryptographicMaterialProviders/
16
24
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 ../../
Original file line number Diff line number Diff line change 51
51
-rtest/requirements.txt
52
52
# Install the MPL requirements if the `-mpl` suffix is present
53
53
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
54
57
..
55
58
commands =
56
59
awses_local: {[testenv:base-command]commands}
You can’t perform that action at this time.
0 commit comments