From cad04572969b57f85a95bcc1251afcd64fefe507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Pali=C4=8Dka?= Date: Fri, 6 Dec 2019 13:09:47 +0100 Subject: [PATCH 1/2] Bump pyyaml and specify explicit FullLoader for yaml Version for pyyaml has been restricted because it has started to require an explicit loader for loading yaml files. By appliying this commit, we can now remove the restriction, since we explicitly specify the loader. --- bellybutton/parsing.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bellybutton/parsing.py b/bellybutton/parsing.py index d2705bd..1e28078 100644 --- a/bellybutton/parsing.py +++ b/bellybutton/parsing.py @@ -173,7 +173,7 @@ def parse_rule(rule_name, rule_values, default_settings=None): def load_config(fileobj): """Load bellybutton config file, returning a list of rules.""" - loaded = yaml.load(fileobj) + loaded = yaml.load(fileobj, Loader = yaml.FullLoader) default_settings = loaded.get('default_settings') rules = [ parse_rule(rule_name, rule_values, default_settings) diff --git a/setup.py b/setup.py index d13c2d7..71eed5b 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ license='MIT', install_requires=[ 'astpath[xpath]==0.6.1', - 'pyyaml>=3.12,<4.0', + 'pyyaml>=4.0,<6.0', 'lxml>=4.1.1', ], tests_require=['pytest>=3.1.2', 'future>=0.16.0'], From ed644611394fca1d3d1cf2f8b705b41149777ba7 Mon Sep 17 00:00:00 2001 From: Andrej Palicka Date: Mon, 9 Dec 2019 23:02:31 +0100 Subject: [PATCH 2/2] Bump bellybutton version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 71eed5b..3efb04e 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ name='bellybutton', packages=['bellybutton'], platforms='any', - version='0.2.5', + version='0.3.0', description='Custom Python linting through AST expressions.', author='H. Chase Stevens', author_email='chase@chasestevens.com',