mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
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:
parent
b2ddd22e50
commit
4ba577db33
2 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,8 @@ import os
|
||||||
import codecs
|
import codecs
|
||||||
import json
|
import json
|
||||||
import keyring
|
import keyring
|
||||||
keyring.set_keyring(keyring.backends.file.PlaintextKeyring())
|
import keyrings
|
||||||
|
keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())
|
||||||
try:
|
try:
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -146,6 +146,7 @@ setup(
|
||||||
"six>=1.6.1",
|
"six>=1.6.1",
|
||||||
"tzlocal>=1.1",
|
"tzlocal>=1.1",
|
||||||
"keyring>=3.3",
|
"keyring>=3.3",
|
||||||
|
"keyrings.alt>=1.3",
|
||||||
] + [p for p, cond in conditional_dependencies.items() if cond],
|
] + [p for p, cond in conditional_dependencies.items() if cond],
|
||||||
extras_require = {
|
extras_require = {
|
||||||
"encrypted": "pycrypto>=2.6"
|
"encrypted": "pycrypto>=2.6"
|
||||||
|
|
Loading…
Add table
Reference in a new issue