Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #70 from cglewis/master
Browse files Browse the repository at this point in the history
release v0.2.0
  • Loading branch information
cglewis authored Sep 1, 2020
2 parents 7979c21 + 479ec87 commit 476879a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ include *.md
include LICENSE
include requirements.txt
include bin/portunus
include VERSION
include portunus/VERSION
recursive-include portunus *.py
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

1 change: 1 addition & 0 deletions portunus/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2.0
10 changes: 9 additions & 1 deletion portunus/portunus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,12 +1145,20 @@ def main(self):
description='Portunus - A tool for creating multi-tenant environments to run experiments in')
parser.add_argument('--viz', '-z', action='store_true',
help='Show serve up current state of the Portunus environment as a diagram')
parser.add_argument('--version', '-V', action='store_true',
help='Show version')
args = parser.parse_args()
if args.version:
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'VERSION'), 'r') as f:
print(f.read().strip())
sys.exit()

if args.viz:
self.simple_command('mkdir -p viz_output')
path = os.getcwd()
os.chdir('viz_output')
self.simple_command('python3 /opt/dovesnap/graph_dovesnap/graph_dovesnap.py')
self.simple_command(
'python3 /opt/dovesnap/graph_dovesnap/graph_dovesnap.py')
self.simple_command('python3 -m http.server')
os.chdir(path)
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='portunus',
version=open('VERSION', 'r').read().strip(),
version=open('portunus/VERSION', 'r').read().strip(),
include_package_data=True,
packages=find_packages(),
install_requires=open('requirements.txt', 'r').read().splitlines(),
Expand Down

0 comments on commit 476879a

Please sign in to comment.