Upgrade keyring to 10.3.2 (#11531)

This commit is contained in:
Fabian Affolter 2018-01-10 04:51:35 +01:00 committed by Paulus Schoutsen
parent cf04a81f70
commit c4bc42d527
2 changed files with 9 additions and 6 deletions

View file

@ -1,11 +1,11 @@
"""Script to get, set, and delete secrets stored in the keyring.""" """Script to get, set and delete secrets stored in the keyring."""
import os
import argparse import argparse
import getpass import getpass
import os
from homeassistant.util.yaml import _SECRET_NAMESPACE from homeassistant.util.yaml import _SECRET_NAMESPACE
REQUIREMENTS = ['keyring>=9.3,<10.0'] REQUIREMENTS = ['keyring==10.3.2', 'keyrings.alt==2.3']
def run(args): def run(args):
@ -39,8 +39,8 @@ def run(args):
return 1 return 1
if args.action == 'set': if args.action == 'set':
the_secret = getpass.getpass('Please enter the secret for {}: ' the_secret = getpass.getpass(
.format(args.name)) 'Please enter the secret for {}: '.format(args.name))
keyring.set_password(_SECRET_NAMESPACE, args.name, the_secret) keyring.set_password(_SECRET_NAMESPACE, args.name, the_secret)
print('Secret {} set successfully'.format(args.name)) print('Secret {} set successfully'.format(args.name))
elif args.action == 'get': elif args.action == 'get':

View file

@ -416,7 +416,10 @@ jsonrpc-async==0.6
jsonrpc-websocket==0.5 jsonrpc-websocket==0.5
# homeassistant.scripts.keyring # homeassistant.scripts.keyring
keyring>=9.3,<10.0 keyring==10.3.2
# homeassistant.scripts.keyring
keyrings.alt==2.3
# homeassistant.components.device_tracker.owntracks # homeassistant.components.device_tracker.owntracks
# homeassistant.components.device_tracker.owntracks_http # homeassistant.components.device_tracker.owntracks_http