Skip to content

Commit

Permalink
Version 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Nov 3, 2016
1 parent 83299ee commit 872d8df
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

Version 0.6.1
-------------

- Changing config_dict auto_find to accept a path to search at
- PyPI is stupid is why 0.6.0 is not up there

Version 0.6.0
-------------

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Command line helpers
--------------------

Use the Python interpreter as much as a shell? Here's some handy helpers to
fill the void. (Please don't do 'import *' in production code, this is used
fill the void. (Please don't do 'import \*' in production code, this is used
as an easy to use example using the interpreter interactively.)

.. code:: python
Expand Down
2 changes: 1 addition & 1 deletion reusables/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
from .web import *

__author__ = "Chris Griffith"
__version__ = "0.6.0"
__version__ = "0.6.1"
5 changes: 3 additions & 2 deletions reusables/reusables.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ def config_dict(config_file=None, auto_find=False, verify=True, **cfg_options):
cfg_files.extend(config_file)

if auto_find:
cfg_files.extend(find_all_files(current_root,
ext=(".cfg", ".config", ".ini")))
cfg_files.extend(find_all_files(
current_root if isinstance(auto_find, bool) else auto_find,
ext=(".cfg", ".config", ".ini")))

_logger.info("config files to be used: {0}".format(cfg_files))

Expand Down
2 changes: 1 addition & 1 deletion test/test_reuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_get_config_dict(self):
assert resp['Section 2'] == {}

def test_get_config_dict_auto(self):
resp = reusables.config_dict(auto_find=True)
resp = reusables.config_dict(auto_find="test")
assert resp.get('Section1') == {'key 1': 'value 1', 'key2': 'Value2'}

def test_get_config_dict_no_verify(self):
Expand Down

0 comments on commit 872d8df

Please sign in to comment.