Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
Open
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: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.8
3.10.9
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ sphinx_rtd_theme = ">=0.1.6"
mysqlclient = ">=1.4.2"
# MySQL-python = "*"
# Force PyYAML version due awscli conflict
PyYAML = "<=3.13"
PyYAML = ">=5.1"
PyPrind = "*"
nose = "*"

[dev-packages]
ipython = "*"

[requires]
python_version = "3.6"
python_version = "3.10.9"
912 changes: 551 additions & 361 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dataduct/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def load_yaml(config_files):
"""
for config_file in config_files:
try:
return yaml.load(jinja2.Template(open(config_file, 'r').read()).render(ENV=environ))
return yaml.load(jinja2.Template(open(config_file, 'r').read()).render(ENV=environ), Loader=yaml.FullLoader)
except (OSError, IOError):
continue
raise IOError('Dataduct config file is missing')
Expand Down
2 changes: 1 addition & 1 deletion dataduct/etl/etl_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def read_pipeline_definition(file_path):
if extension not in ['yml', 'yaml']:
raise ETLInputError('Pipeline definition should have a yml or yaml extention')
with open(file_path) as f:
definition = yaml.load(f.read())
definition = yaml.load(f.read(), Loader=yaml.FullLoader)

# remove the variables key from the pipeline definition
# http://stackoverflow.com/questions/4150782/using-yaml-with-variables
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'pyparsing',
'pytimeparse>=1.1.4',
# Force PyYAML version due awscli conflict
'PyYAML<=3.13',
'PyYAML>=5.1',
'testfixtures>=4.1.2',
'pyprind',
'sqlparse>=0.2.0'
Expand Down