Skip to content

Commit ceb3560

Browse files
authored
Removing the direct dependency on the attrs lib. (#4)
* Removing the direct dependency on the attrs lib. * Changing the lib version to 0.1.0
1 parent 8f86d5e commit ceb3560

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

kmsencryption/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2+
from kmsencryption import lib
3+
24
import click
35
import sys
46

5-
from kmsencryption import lib
6-
77

88
@click.group(context_settings={"help_option_names": ['-h', '--help']})
99
def main():

kmsencryption/lib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import json
55
import os
66

7+
78
def get_key_provider(cmk_arn, profile):
89
if cmk_arn:
910
kms_kwargs = dict(key_ids=[cmk_arn])

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name='kms-encryption-toolbox',
6-
version='0.0.14',
6+
version='0.1.0',
77
url='https://github.com/ApplauseOSS/kms-encryption-toolbox',
88
license='Applause',
99
description='Encryption toolbox to be used with the Amazon Key Management Service for securing your deployment secrets. It encapsulates the aws-encryption-sdk package to expose cmdline actions.',
@@ -15,7 +15,6 @@
1515
'cffi>=1.10.0',
1616
'aws-encryption-sdk>=1.2.0',
1717
'click>=6.6',
18-
'attrs>=16.3.0,<17.0.0',
1918
'cryptography>=1.8.1'
2019
],
2120
entry_points={

test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
kms_key_provider = aws_encryption_sdk.KMSMasterKeyProvider(key_ids=[
44
'arn:aws:kms:us-east-1:873559269338:key/1e1a6a81-93e0-4b9a-954b-cc09802bf3ce'
55
])
6-
import pdb; pdb.set_trace()
76
my_plaintext = 'This is some super secret data! Yup, sure is!'
87

98
my_ciphertext, encryptor_header = aws_encryption_sdk.encrypt(
@@ -16,6 +15,6 @@
1615
key_provider=kms_key_provider
1716
)
1817

19-
assert my_plaintext == decrypted_plaintext
18+
assert my_plaintext == decrypted_plaintext.decode('ascii')
2019
assert encryptor_header.encryption_context == decryptor_header.encryption_context
2120

0 commit comments

Comments
 (0)