Skip to content

Commit

Permalink
Merge pull request #381 from phenobarbital/pluggable-logger
Browse files Browse the repository at this point in the history
fix usage of yaml loader (using yaml.SafeLoader)
  • Loading branch information
phenobarbital authored Jan 3, 2024
2 parents 6e358bd + cf3a479 commit 94a3a8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ __pycache__
.vscode/*
# C extensions
*.so
*.cpp
*.c
*.pyc
# Migrations Folder
migrations/
Expand Down
2 changes: 1 addition & 1 deletion navconfig/loaders/parsers/yaml.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cdef class YAMLParser:
content = None
async with aiofiles.open(filename) as f:
content = await f.read()
return yaml.load(content, Loader=yaml.CBaseLoader)
return yaml.load(content, Loader=yaml.SafeLoader)
except Exception as err:
raise RuntimeError(
f'Error parsing Yaml content: {err!s}.'
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.5.3'
__version__ = '1.5.4'
__author__ = 'Jesus Lara'
__author_email__ = 'jesuslarag@gmail.com'
__license__ = 'MIT'
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def readme():
],
author='Jesus Lara',
author_email='jesuslara@phenobarbital.info',
packages=find_packages(exclude=["docs", "tests", "settings"]),
packages=find_packages(
exclude=["docs", "tests", "settings", "examples", "dist", "etc"]
),
setup_requires=[
'wheel==0.42.0',
'Cython==3.0.6'
Expand Down

0 comments on commit 94a3a8d

Please sign in to comment.