Skip to content

Commit b55e8ed

Browse files
authored
chore: Fix broken CI (#441)
1 parent 90606ec commit b55e8ed

25 files changed

+95
-269
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,6 @@ on:
99
- cron: '0 0 * * *'
1010

1111
jobs:
12-
# Hypothesis no longer supports Python 2 and
13-
# there is a bug that appears with our slow tests
14-
# only on Python 2.
15-
# Until we also drop Python 2 support,
16-
# the workaround is just that we don't run the slow tests
17-
# on Python 2.
18-
py2-tests:
19-
runs-on: ${{ matrix.platform.os }}
20-
strategy:
21-
fail-fast: true
22-
matrix:
23-
platform:
24-
- os: ubuntu-latest
25-
architecture: x64
26-
- os: windows-latest
27-
architecture: x64
28-
# x86 builds are only meaningful for Windows
29-
- os: windows-latest
30-
architecture: x86
31-
- os: macos-latest
32-
architecture: x64
33-
category:
34-
- local-fast
35-
# These require credentials.
36-
# Enable them once we sort how to provide them.
37-
# - integ-fast
38-
# - examples
39-
steps:
40-
- uses: actions/checkout@v2
41-
- uses: actions/setup-python@v1
42-
with:
43-
python-version: 2.7
44-
architecture: ${{ matrix.platform.architecture }}
45-
- run: |
46-
python -m pip install --upgrade pip
47-
pip install --upgrade -r ci-requirements.txt
48-
- name: run test
49-
env:
50-
TOXENV: ${{ matrix.category }}
51-
run: tox -- -vv
5212
tests:
5313
runs-on: ${{ matrix.platform.os }}
5414
strategy:
@@ -65,8 +25,6 @@ jobs:
6525
- os: macos-latest
6626
architecture: x64
6727
python:
68-
- 3.5
69-
- 3.6
7028
- 3.7
7129
- 3.8
7230
- 3.x
@@ -110,22 +68,3 @@ jobs:
11068
env:
11169
TOXENV: ${{ matrix.category }}
11270
run: tox -- -vv
113-
upstream-py2:
114-
runs-on: ubuntu-latest
115-
strategy:
116-
fail-fast: true
117-
matrix:
118-
category:
119-
- test-upstream-requirements-py27
120-
steps:
121-
- uses: actions/checkout@v2
122-
- uses: actions/setup-python@v1
123-
with:
124-
python-version: 2.7
125-
- run: |
126-
python -m pip install --upgrade pip
127-
pip install --upgrade -r ci-requirements.txt
128-
- name: run test
129-
env:
130-
TOXENV: ${{ matrix.category }}
131-
run: tox -- -vv

buildspec.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ version: 0.2
33
batch:
44
fast-fail: false
55
build-list:
6-
- identifier: python2_7
7-
buildspec: codebuild/python2.7.yml
8-
- identifier: python3_5
9-
buildspec: codebuild/python3.5.yml
10-
- identifier: python3_6
11-
buildspec: codebuild/python3.6.yml
126
- identifier: python3_7
137
buildspec: codebuild/python3.7.yml
148
- identifier: python3_8

codebuild/python2.7.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

codebuild/python3.5.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

codebuild/python3.6.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

codebuild/python3.8.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ phases:
1414
python: latest
1515
build:
1616
commands:
17-
- pip install tox
17+
- pyenv install 3.8.6
18+
- pyenv local 3.8.6
19+
- pip install tox tox-pyenv
1820
- tox

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_version():
2929
return _release
3030

3131

32-
project = u"dynamodb-encryption-sdk-python"
32+
project = "dynamodb-encryption-sdk-python"
3333
version = get_version()
3434
release = get_release()
3535

@@ -53,7 +53,7 @@ def get_version():
5353
source_suffix = ".rst" # The suffix of source filenames.
5454
master_doc = "index" # The master toctree document.
5555

56-
copyright = u"%s, Amazon" % datetime.now().year # pylint: disable=redefined-builtin
56+
copyright = "%s, Amazon" % datetime.now().year # pylint: disable=redefined-builtin
5757

5858
# List of directories, relative to source directory, that shouldn't be searched
5959
# for source files.

examples/src/aws_kms_encrypted_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ def encrypt_batch_items(table_name, aws_cmk_id):
124124
def _select_index_from_item(item):
125125
"""Find the index keys that match this item."""
126126
for index in index_keys:
127-
if all([item[key] == value for key, value in index.items()]):
127+
if all(item[key] == value for key, value in index.items()):
128128
return index
129129

130130
raise Exception("Index key not found in item.")
131131

132132
def _select_item_from_index(index, all_items):
133133
"""Find the item that matches these index keys."""
134134
for item in all_items:
135-
if all([item[key] == value for key, value in index.items()]):
135+
if all(item[key] == value for key, value in index.items()):
136136
return item
137137

138138
raise Exception("Index key not found in item.")

examples/src/aws_kms_encrypted_resource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ def encrypt_batch_items(table_name, aws_cmk_id):
7676
def _select_index_from_item(item):
7777
"""Find the index keys that match this item."""
7878
for index in index_keys:
79-
if all([item[key] == value for key, value in index.items()]):
79+
if all(item[key] == value for key, value in index.items()):
8080
return index
8181

8282
raise Exception("Index key not found in item.")
8383

8484
def _select_item_from_index(index, all_items):
8585
"""Find the item that matches these index keys."""
8686
for item in all_items:
87-
if all([item[key] == value for key, value in index.items()]):
87+
if all(item[key] == value for key, value in index.items()):
8888
return item
8989

9090
raise Exception("Index key not found in item.")

examples/src/pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
disable =
44
duplicate-code, # these examples often feature similar code
55
too-many-locals, # for these examples, we prioritize keeping everything together for simple readability
6+
consider-using-f-string, # Not supported in Python 3.5
67

78
[BASIC]
89
# Allow function names up to 50 characters

0 commit comments

Comments
 (0)