Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix usage of yaml loader (using yaml.SafeLoader) #381

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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