Skip to content

Commit be6adb4

Browse files
authored
Merge pull request #42 from mattsb42-aws/dev-20
adding AppVeyor build configuration and badge
2 parents 677d51d + 53ca52b commit be6adb4

4 files changed

+102
-2
lines changed

README.rst

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ aws-encryption-sdk
1313
.. image:: https://travis-ci.org/awslabs/aws-encryption-sdk-python.svg?branch=master
1414
:target: https://travis-ci.org/awslabs/aws-encryption-sdk-python
1515

16+
.. image:: https://ci.appveyor.com/api/projects/status/v42snaej4lavd5lm/branch/master?svg=true
17+
:target: https://ci.appveyor.com/project/mattsb42-aws/aws-encryption-sdk-python-m2mgl
18+
1619
The AWS Encryption SDK for Python provides a fully compliant, native Python implementation of the `AWS Encryption SDK`_.
1720

1821
The latest full documentation can be found at `Read the Docs`_.

appveyor.yml

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# https://packaging.python.org/guides/supporting-windows-using-appveyor/
2+
3+
environment:
4+
5+
matrix:
6+
# The only test we perform on Windows are our actual code tests. All linting, static
7+
# analysis, etc are only run on Linux (via Travis CI).
8+
9+
# Python 2.7
10+
- PYTHON: "C:\\Python27"
11+
TOXENV: "py27-local"
12+
- PYTHON: "C:\\Python27"
13+
TOXENV: "py27-integ"
14+
- PYTHON: "C:\\Python27"
15+
TOXENV: "py27-accept"
16+
- PYTHON: "C:\\Python27"
17+
TOXENV: "py27-examples"
18+
- PYTHON: "C:\\Python27-x64"
19+
TOXENV: "py27-local"
20+
- PYTHON: "C:\\Python27-x64"
21+
TOXENV: "py27-integ"
22+
- PYTHON: "C:\\Python27-x64"
23+
TOXENV: "py27-accept"
24+
- PYTHON: "C:\\Python27-x64"
25+
TOXENV: "py27-examples"
26+
27+
# Python 3.4
28+
- PYTHON: "C:\\Python34"
29+
TOXENV: "py34-local"
30+
- PYTHON: "C:\\Python34"
31+
TOXENV: "py34-integ"
32+
- PYTHON: "C:\\Python34"
33+
TOXENV: "py34-accept"
34+
- PYTHON: "C:\\Python34"
35+
TOXENV: "py34-examples"
36+
- PYTHON: "C:\\Python34-x64"
37+
DISTUTILS_USE_SDK: "1"
38+
TOXENV: "py34-local"
39+
- PYTHON: "C:\\Python34-x64"
40+
DISTUTILS_USE_SDK: "1"
41+
TOXENV: "py34-integ"
42+
- PYTHON: "C:\\Python34-x64"
43+
DISTUTILS_USE_SDK: "1"
44+
TOXENV: "py34-accept"
45+
- PYTHON: "C:\\Python34-x64"
46+
DISTUTILS_USE_SDK: "1"
47+
TOXENV: "py34-examples"
48+
49+
# Python 3.5
50+
- PYTHON: "C:\\Python35"
51+
TOXENV: "py35-local"
52+
- PYTHON: "C:\\Python35"
53+
TOXENV: "py35-integ"
54+
- PYTHON: "C:\\Python35"
55+
TOXENV: "py35-accept"
56+
- PYTHON: "C:\\Python35"
57+
TOXENV: "py35-examples"
58+
- PYTHON: "C:\\Python35-x64"
59+
TOXENV: "py35-local"
60+
- PYTHON: "C:\\Python35-x64"
61+
TOXENV: "py35-integ"
62+
- PYTHON: "C:\\Python35-x64"
63+
TOXENV: "py35-accept"
64+
- PYTHON: "C:\\Python35-x64"
65+
TOXENV: "py35-examples"
66+
67+
# Python 3.6
68+
- PYTHON: "C:\\Python36"
69+
TOXENV: "py36-local"
70+
- PYTHON: "C:\\Python36"
71+
TOXENV: "py36-integ"
72+
- PYTHON: "C:\\Python36"
73+
TOXENV: "py36-accept"
74+
- PYTHON: "C:\\Python36"
75+
TOXENV: "py36-examples"
76+
- PYTHON: "C:\\Python36-x64"
77+
TOXENV: "py36-local"
78+
- PYTHON: "C:\\Python36-x64"
79+
TOXENV: "py36-integ"
80+
- PYTHON: "C:\\Python36-x64"
81+
TOXENV: "py36-accept"
82+
- PYTHON: "C:\\Python36-x64"
83+
TOXENV: "py36-examples"
84+
85+
install:
86+
# Prepend newly installed Python to the PATH of this build
87+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
88+
# Check the Python version to verify the correct version was installed
89+
- "python --version"
90+
- "python -m pip install wheel tox"
91+
92+
build: off
93+
94+
test_script:
95+
- "tox"

examples/test/test_i_basic_file_encryption_with_multiple_providers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
def test_cycle_file():
3232
cmk_arn = get_cmk_arn()
33-
_handle, filename = tempfile.mkstemp()
33+
handle, filename = tempfile.mkstemp()
3434
with open(filename, 'wb') as f:
3535
f.write(os.urandom(1024))
3636
try:
@@ -42,4 +42,5 @@ def test_cycle_file():
4242
for f in new_files:
4343
os.remove(f)
4444
finally:
45+
os.close(handle)
4546
os.remove(filename)

examples/test/test_i_basic_file_encryption_with_raw_key_provider.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@
2727

2828

2929
def test_cycle_file():
30-
_handle, filename = tempfile.mkstemp()
30+
handle, filename = tempfile.mkstemp()
3131
with open(filename, 'wb') as f:
3232
f.write(os.urandom(1024))
3333
try:
3434
new_files = cycle_file(source_plaintext_filename=filename)
3535
for f in new_files:
3636
os.remove(f)
3737
finally:
38+
os.close(handle)
3839
os.remove(filename)

0 commit comments

Comments
 (0)