Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #103 from keisukefukuda/release-0.1.2
Browse files Browse the repository at this point in the history
release 0.1.2
  • Loading branch information
keisukefukuda committed Oct 1, 2018
2 parents c402ff7 + fd204f2 commit 2d9e9b1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
3 changes: 2 additions & 1 deletion mpienv/command/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
prog='mpienv exec',
description='Call mpiexec with appropriate arguments')
parser.add_argument('args', nargs=argparse.REMAINDER,
default=[])
default=[],
help='Arguments passed to mpiexec')


def main():
Expand Down
4 changes: 3 additions & 1 deletion mpienv/command/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def format_help(self):
parser.print_help()
else:
try:
mod = importlib.import_module(args.command)
command = "mpienv.command.{}".format(args.command)
print("command = {}".format(command))
mod = importlib.import_module(command)
mod.parser.print_help()
except BaseException:
print('mpienv: no such command {}'.format(args.command))
9 changes: 5 additions & 4 deletions mpienv/command/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

parser = argparse.ArgumentParser(
prog='mpienv list', description='List all available MPI environments.')
parser.add_argument('--json', action="store_true",
default=None)
parser.add_argument('--simple', action="store_true",
default=None)
parser.add_argument('--json', action="store_true", default=None,
help="Print in JSON format (useful for parsing)")
parser.add_argument('--simple', action="store_true", default=None,
help="Print in a simpler format "
"(useful for shell command)")


def _print_info(mpi, max_label_len):
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="mpienv",
version="0.1.1",
version="0.1.2",
description="MPI environment switcher",
author="Keisuke Fukuda",
author_email="keisukefukuda@gmail.com",
Expand Down
14 changes: 14 additions & 0 deletions util/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

if [ ! -f $PWD/mpienv/__init__.py ]; then
echo "Must be in mpienv/ root directory" >&2
exit 1
fi

rm -rf build
rm -rf mpienv.egg-info

python setup.py bdist_wheel
twine upload dist/*


0 comments on commit 2d9e9b1

Please sign in to comment.