Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit 9065ded

Browse files
authored
Bugfix/breaking change (#73)
* use "compatible-release" operator in pipfile upgrade container-app-conf to 5.x.x * container-app-conf v5.x.x migration
1 parent e71df7e commit 9065ded

File tree

7 files changed

+65
-56
lines changed

7 files changed

+65
-56
lines changed

Pipfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7-
requests = ">=2.20.0"
7+
requests = "~=2.20"
88
click = "*"
99
tabulate = ">=0.8.3"
1010
PyYAML = "*"
1111
inflect = "*"
12-
urllib3 = ">=1.24.2"
13-
tenacity = ">=5.1.1"
14-
container-app-conf = ">=4.2.3"
12+
urllib3 = "~=1.24"
13+
tenacity = "~=5.1"
14+
container-app-conf = "~=5.0"
1515

1616
[dev-packages]
1717
pytest = "*"

Pipfile.lock

Lines changed: 57 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ This is going to use the same mechanism to load configuration as the CLI tool, t
118118
from n26.api import Api
119119
from n26.config import Config
120120

121-
conf = Config(write_reference=False, validate=False)
121+
conf = Config(validate=False)
122122
conf.USERNAME.value = "john.doe@example.com"
123123
conf.PASSWORD.value = "$upersecret"
124124
conf.LOGIN_DATA_STORE_PATH.value = None

n26/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, cfg: Config = None):
4545
:param cfg: configuration object
4646
"""
4747
if not cfg:
48-
cfg = Config(write_reference=False)
48+
cfg = Config()
4949
self.config = cfg
5050
self._token_data = {}
5151

n26/config.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ def __new__(cls, *args, **kwargs):
2424
]
2525
kwargs["data_sources"] = data_sources
2626

27-
if "write_reference" not in kwargs.keys():
28-
kwargs["write_reference"] = False
29-
3027
return super(Config, cls).__new__(cls, *args, **kwargs)
3128

3229
USERNAME = StringConfigEntry(

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_init_without_config(self):
4040

4141
def test_init_with_config(self):
4242
from container_app_conf.source.yaml_source import YamlSource
43-
conf = config.Config(singleton=False, write_reference=False, data_sources=[
43+
conf = config.Config(singleton=False, data_sources=[
4444
YamlSource("test_creds", "./tests/")
4545
])
4646
api_client = api.Api(conf)

tests/test_api_base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ class N26TestBase(unittest.TestCase):
116116
singleton=True,
117117
data_sources=[
118118
YamlSource("test_creds", "./tests/")
119-
],
120-
write_reference=False
119+
]
121120
)
122121

123122
# this is the Api client

0 commit comments

Comments
 (0)