From 8e6a31d3da19926ac46744e02b27a899ca5fbd7c Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 21 Jan 2022 14:08:19 -0800 Subject: [PATCH] minor fix for macOS binary --- CHANGELOG | 3 +++ docs/readme.md | 4 ++-- jc/__init__.py | 4 ++-- jc/lib.py | 7 +++++-- man/jc.1 | 2 +- setup.py | 2 +- 6 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 335c160e7..55227a3a0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ jc changelog +20220121 v1.18.1 +- Minor fix for MacOS binary + 20220121 v1.18.0 - Add high-level parse API for built-in and plugin parsers - Add python module developer documentation diff --git a/docs/readme.md b/docs/readme.md index 8a1485ace..e7e04964b 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -16,7 +16,7 @@ to dictionaries and lists of dictionaries. ## Online Documentation -### Latest: +### Latest https://github.com/kellyjonbrazil/jc/tree/master/docs @@ -28,7 +28,7 @@ Replace `{{full_version_number}}` - e.g. `1.17.7`: Specific versions can also be selected by tag in the branch dropdown menu. -## Usage Example: +## Usage Example >>> import subprocess >>> import jc diff --git a/jc/__init__.py b/jc/__init__.py index 40fb08177..d93c3a5fb 100644 --- a/jc/__init__.py +++ b/jc/__init__.py @@ -14,7 +14,7 @@ ## Online Documentation -### Latest: +### Latest https://github.com/kellyjonbrazil/jc/tree/master/docs @@ -26,7 +26,7 @@ Specific versions can also be selected by tag in the branch dropdown menu. -## Usage Example: +## Usage Example >>> import subprocess >>> import jc diff --git a/jc/lib.py b/jc/lib.py index 33b87c857..917a80b29 100644 --- a/jc/lib.py +++ b/jc/lib.py @@ -8,7 +8,7 @@ import importlib from jc import appdirs -__version__ = '1.18.0' +__version__ = '1.18.1' parsers = [ 'acpi', @@ -112,7 +112,10 @@ local_parsers.append(plugin_name) if plugin_name not in parsers: parsers.append(plugin_name) - del name + try: + del name + except Exception: + pass def _cliname_to_modname(parser_cli_name): diff --git a/man/jc.1 b/man/jc.1 index d4e607f11..61b8f0cc0 100644 --- a/man/jc.1 +++ b/man/jc.1 @@ -1,4 +1,4 @@ -.TH jc 1 2022-01-21 1.18.0 "JSON CLI output utility" +.TH jc 1 2022-01-21 1.18.1 "JSON CLI output utility" .SH NAME jc \- JSONifies the output of many CLI tools and file-types .SH SYNOPSIS diff --git a/setup.py b/setup.py index af4c67609..7c4432309 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='jc', - version='1.18.0', + version='1.18.1', author='Kelly Brazil', author_email='kellyjonbrazil@gmail.com', description='Converts the output of popular command-line tools and file-types to JSON.',