Skip to content

Commit

Permalink
upgraded version of redis
Browse files Browse the repository at this point in the history
  • Loading branch information
phenobarbital committed Jun 14, 2023
1 parent b9d4d98 commit 34ca0e2
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 25 deletions.
11 changes: 11 additions & 0 deletions examples/test_multi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Import Config Class
from navconfig import (
BASE_DIR,
config,
DEBUG
)

file = BASE_DIR.joinpath('env', 'dev', '.prueba')
config.addEnv(file)

print(config.get('TEST'))
2 changes: 1 addition & 1 deletion navconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"""
Loading main Configuration Object.
"""
config = cellarConfig(SITE_ROOT, env_type = ENV_TYPE, create=CREATE)
config = cellarConfig(SITE_ROOT, env_type=ENV_TYPE, create=CREATE)
# ENV version (dev, prod, staging)
ENV = config.ENV

Expand Down
2 changes: 1 addition & 1 deletion navconfig/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__title__ = 'navconfig'
__description__ = ('Configuration tool for all Navigator Services '
'Tool for accessing Config info from different sources.')
__version__ = '1.3.5'
__version__ = '1.3.6'
__author__ = 'Jesus Lara'
__author_email__ = '[email protected]'
__license__ = 'MIT'
47 changes: 24 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,27 @@ def readme():
for node in (n for n in t.body if isinstance(n, ast.Assign)):
if len(node.targets) == 1:
name = node.targets[0]
if isinstance(name, ast.Name) and \
name.id in (
'__version__',
'__title__',
'__description__',
'__author__',
'__license__', '__author_email__'):
v = node.value
if name.id == '__version__':
__version__ = v.s
if name.id == '__title__':
__title__ = v.s
if name.id == '__description__':
__description__ = v.s
if name.id == '__license__':
__license__ = v.s
if name.id == '__author__':
__author__ = v.s
if name.id == '__author_email__':
__author_email__ = v.s
if isinstance(name, ast.Name) and name.id in (
'__version__',
'__title__',
'__description__',
'__author__',
'__license__',
'__author_email__'
):
v = node.value
if name.id == '__version__':
__version__ = v.s
if name.id == '__title__':
__title__ = v.s
if name.id == '__description__':
__description__ = v.s
if name.id == '__license__':
__license__ = v.s
if name.id == '__author__':
__author__ = v.s
if name.id == '__author_email__':
__author_email__ = v.s

COMPILE_ARGS = ["-O2"]

Expand Down Expand Up @@ -150,7 +151,7 @@ def readme():
'elasticsearch==8.8.0'
],
"redis": [
'redis==4.5.1',
'redis==4.5.5',
'aioredis==2.0.1',
],
"toml": [
Expand All @@ -164,7 +165,7 @@ def readme():
],
"default": [
'pytomlpp==1.0.11',
'redis==4.5.1',
'redis==4.5.5',
'aioredis==2.0.1',
'python-logstash-async==2.5.0',
'aiologstash==2.0.0',
Expand All @@ -173,7 +174,7 @@ def readme():
],
"all": [
'pytomlpp==1.0.11',
'redis==4.5.1',
'redis==4.5.5',
'aioredis==2.0.1',
'python-logstash-async==2.5.0',
'aiologstash==2.0.0',
Expand Down

0 comments on commit 34ca0e2

Please sign in to comment.