Skip to content

Commit ef07dd0

Browse files
Merge branch 'master' into lucmcdon/cfn-ci
2 parents 4e45935 + a93ffe7 commit ef07dd0

12 files changed

+21
-76
lines changed

.github/workflows/ci_decrypt-oracle.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
tests:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: actions/setup-python@v4
1616
with:
1717
# The oracle will run on a Python 3.9 Lamba
@@ -38,7 +38,7 @@ jobs:
3838
- flake8-tests
3939
- pylint-tests
4040
steps:
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
4242
- uses: actions/setup-python@v4
4343
with:
4444
python-version: 3.9

.github/workflows/ci_static-analysis.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- black-check
2828
- isort-check
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
- uses: actions/setup-python@v4
3232
with:
3333
python-version: 3.8

.github/workflows/ci_test-vector-handler.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737
- os: macos-latest
3838
architecture: x86
3939
steps:
40-
- uses: aws-actions/configure-aws-credentials@v1
40+
- uses: aws-actions/configure-aws-credentials@v4
4141
with:
4242
aws-access-key-id: ${{ secrets.INTEG_AWS_ACCESS_KEY_ID }}
4343
aws-secret-access-key: ${{ secrets.INTEG_AWS_SECRET_ACCESS_KEY }}
4444
aws-region: us-west-2
45-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@v4
4646
- uses: actions/setup-python@v4
4747
with:
4848
python-version: ${{ matrix.python }}
@@ -69,7 +69,7 @@ jobs:
6969
- flake8-tests
7070
- pylint-tests
7171
steps:
72-
- uses: actions/checkout@v3
72+
- uses: actions/checkout@v4
7373
- uses: actions/setup-python@v4
7474
with:
7575
python-version: 3.9

.github/workflows/ci_tests.yaml

+2-22
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- os: macos-latest
5353
architecture: x86
5454
steps:
55-
- uses: actions/checkout@v3
55+
- uses: actions/checkout@v4
5656
- uses: actions/setup-python@v4
5757
with:
5858
python-version: ${{ matrix.python }}
@@ -64,26 +64,6 @@ jobs:
6464
env:
6565
TOXENV: ${{ matrix.category }}
6666
run: tox -- -vv
67-
upstream-py37:
68-
runs-on: ubuntu-latest
69-
strategy:
70-
fail-fast: true
71-
matrix:
72-
category:
73-
- nocmk
74-
- test-upstream-requirements-py37
75-
steps:
76-
- uses: actions/checkout@v3
77-
- uses: actions/setup-python@v4
78-
with:
79-
python-version: 3.7
80-
- run: |
81-
python -m pip install --upgrade pip
82-
pip install --upgrade -r dev_requirements/ci-requirements.txt
83-
- name: run test
84-
env:
85-
TOXENV: ${{ matrix.category }}
86-
run: tox -- -vv
8767
upstream-py311:
8868
runs-on: ubuntu-latest
8969
strategy:
@@ -93,7 +73,7 @@ jobs:
9373
- nocmk
9474
- test-upstream-requirements-py311
9575
steps:
96-
- uses: actions/checkout@v3
76+
- uses: actions/checkout@v4
9777
- uses: actions/setup-python@v4
9878
with:
9979
python-version: "3.11"

.github/workflows/repo-sync.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
environment: repo-sync
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- uses: repo-sync/github-sync@v2
1414
name: Sync repo to branch
1515
with:

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Required Prerequisites
3535
======================
3636

3737
* Python 3.7+
38-
* cryptography >= 2.5.0
38+
* cryptography >= 3.4.6
3939
* boto3 >= 1.10.0
4040
* attrs
4141

dev_requirements/linter-requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
bandit==1.7.4
2-
black==22.3.0
2+
black==24.2.0
33
doc8==0.10.1
44
flake8==4.0.1
55
flake8-bugbear==22.9.11
@@ -10,4 +10,4 @@ pyflakes==2.4.0
1010
pylint==2.13.5
1111
readme_renderer==37.3
1212
seed-isort-config==2.2.0
13-
vulture==2.6
13+
vulture==2.9.1

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
boto3>=1.10.0
2-
cryptography>=3.4.0
2+
cryptography>=3.4.6
33
attrs>=17.4.0
44
wrapt>=1.10.11

test/upstream-requirements-py311.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ boto3==1.26.54
33
botocore==1.29.54
44
cffi==1.15.1
55
coverage==7.0.5
6-
cryptography==41.0.6
6+
cryptography==42.0.4
77
iniconfig==2.0.0
88
jmespath==1.0.1
99
mock==4.0.3

test/upstream-requirements-py37.txt

-25
This file was deleted.

test/upstream.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
AWS Crypto Tools maintains `test/upstream-requirements-py<VERSION>.txt` in our Python products such that
2+
our Cryptographic Primitive Provider for Python ([pyca/cryptography](https://github.com/pyca/cryptography))
3+
may execute downstream tests against AWS Crypto Tools Python products.
4+
These files allow pyca to install and test the Crypto Tools products.
5+
Additionally, Crypto Tools should maintain a test configuration that can be completed without using any AWS resources.
6+
If Crypto Tools needs to contact pyca about this expectation,
7+
they should cut a issue to the pyca/cryptography repo.

tox.ini

-17
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ recreate = True
9494
deps =
9595
commands = {toxinidir}/test/freeze-upstream-requirements.sh
9696

97-
# Freeze for Python 3.7
98-
[testenv:freeze-upstream-requirements-py37]
99-
basepython = python3.7
100-
sitepackages = {[testenv:freeze-upstream-requirements-base]sitepackages}
101-
skip_install = {[testenv:freeze-upstream-requirements-base]skip_install}
102-
recreate = {[testenv:freeze-upstream-requirements-base]recreate}
103-
deps = {[testenv:freeze-upstream-requirements-base]deps}
104-
commands = {[testenv:freeze-upstream-requirements-base]commands} test/upstream-requirements-py37.txt
105-
10697
# Freeze for Python 3.11
10798
[testenv:freeze-upstream-requirements-py311]
10899
basepython = python3.11
@@ -118,14 +109,6 @@ sitepackages = False
118109
recreate = True
119110
commands = {[testenv:base-command]commands} test/ -m local
120111

121-
# Test frozen upstream requirements for Python 3.7
122-
[testenv:test-upstream-requirements-py37]
123-
basepython = python3.7
124-
deps = -rtest/upstream-requirements-py37.txt
125-
sitepackages = {[testenv:test-upstream-requirements-base]sitepackages}
126-
recreate = {[testenv:test-upstream-requirements-base]recreate}
127-
commands = {[testenv:test-upstream-requirements-base]commands}
128-
129112
# Test frozen upstream requirements for Python 3.11
130113
[testenv:test-upstream-requirements-py311]
131114
basepython = python3.11

0 commit comments

Comments
 (0)