Skip to content

Commit

Permalink
Merge pull request #3 from 5tefan/fix_show-flags
Browse files Browse the repository at this point in the history
Fix Python 3 issue with cli show_flags option
  • Loading branch information
5tefan authored Apr 3, 2020
2 parents b6f5d99 + 718718d commit 6f07bbe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v0.2.6 - 2020 04 03
- Bug fix: cli: fix `--show_flags` option not working for Python 3

# v0.2.5 - 2019 12 16
- cli: Support Python 3 by removing relative import.
- setup.py move to `convert_file` from deprecated pypandoc `convert`
Expand Down
3 changes: 3 additions & 0 deletions ncflag/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .cli import cli

cli()
2 changes: 1 addition & 1 deletion ncflag/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def show_flags(ctx, param, ncfile):
and len(v.dimensions) == 1
):
valid_flags.append(k)
click.echo("Inspectable flags: %s" % map(str, valid_flags))
click.echo("Inspectable flags: {}".format(" ".join(valid_flags)))
ctx.exit()


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="ncflag",
version="0.2.5",
version="0.2.6",
description="Utility and library to interface with CF-Compliant NetCDF flag variables.",
author="Stefan Codrescu",
author_email="[email protected]",
Expand Down

0 comments on commit 6f07bbe

Please sign in to comment.