From 4ba577db33efb73237286f5b9bb9bdb4717e1e7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radom=C3=ADr=20Bos=C3=A1k?= Date: Wed, 4 Jan 2017 19:24:03 +0100 Subject: [PATCH] Fix failing behave tests (#447) The keyring package broke backward compatibility in version 8.0 by moving some keyring backends to another package, keyrings.alt, as documented in the changelog [1]. This change broke behave tests which were trying to use keyring.backends.file.PlaintextKeyring - no longer existing in keyring package. This commit adds the keyrings.alt package as dependency so that the PlaintextKeyring class can be used. [1] https://pythonhosted.org/keyring/history.html#id22 --- features/steps/core.py | 3 ++- setup.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/features/steps/core.py b/features/steps/core.py index d0ea8460..e3e0100b 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -5,7 +5,8 @@ import os import codecs import json import keyring -keyring.set_keyring(keyring.backends.file.PlaintextKeyring()) +import keyrings +keyring.set_keyring(keyrings.alt.file.PlaintextKeyring()) try: from io import StringIO except ImportError: diff --git a/setup.py b/setup.py index 0208acdf..851170bb 100644 --- a/setup.py +++ b/setup.py @@ -146,6 +146,7 @@ setup( "six>=1.6.1", "tzlocal>=1.1", "keyring>=3.3", + "keyrings.alt>=1.3", ] + [p for p, cond in conditional_dependencies.items() if cond], extras_require = { "encrypted": "pycrypto>=2.6"