chore(): Updates code to run on latest python

* Updates setup.py to use the markdown file
* Replaces load() with safe_load()
This commit is contained in:
Elia el Lazkani 2022-06-17 22:05:59 +02:00
parent 6060bd6b07
commit b2ca72a809
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,7 @@ from setuptools import setup
#<link rel=stylesheet type=text/css href="{{ url('static', filename='css/custom.css') }}">
here = Path(__file__).absolute().parent
with open(str(here.joinpath('README.rst')), encoding='utf-8') as f:
with open(str(here.joinpath('README.md')), encoding='utf-8') as f:
long_description = f.read()
with open(str(here.joinpath('requirements/requirements.txt')),
@ -40,6 +40,7 @@ setup(
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.10',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators'

View file

@ -32,7 +32,7 @@ class Config:
:returns: The configuration saved in the configruation file.
"""
with open(self.config_path, 'rt') as f:
config = yaml.load(f)
config = yaml.safe_load(f)
if self.validate_config(config):
return config