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
This commit is contained in:
Radomír Bosák 2017-01-04 19:24:03 +01:00
parent b2ddd22e50
commit 4ba577db33
2 changed files with 3 additions and 1 deletions

View file

@ -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:

View file

@ -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"