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

Commit

Permalink
1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
MacHu-GWU committed Apr 13, 2022
1 parent 47c8c76 commit 1ba3a95
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 27 deletions.
2 changes: 1 addition & 1 deletion aws_tools/_version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

__version__ = "1.0.7"
__version__ = "1.0.8"

if __name__ == "__main__":
print(__version__)
2 changes: 1 addition & 1 deletion aws_tools/handlers/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def sh_top20_main_service(self, wf):
icon=HotIcons.info,
valid=True,
)
cmd = "/usr/bin/python main.py '{} {}'".format("mh_rebuild_index", "do-build-index")
cmd = "~/.pyenv/shims/python2.7 main.py '{} {}'".format("mh_rebuild_index", "do-build-index")
item_arg.run_script(cmd)
item_arg.open_file(path=DIR_AWS_TOOL_USER_DATA.abspath)
item_arg.notify(title="AWS Console url index is rebuilt!")
Expand Down
8 changes: 4 additions & 4 deletions aws_tools/handlers/aws_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def mh_clear_aws_tools_cache(self, wf, query_str):
if query_str == magic_command:
cache.clear()
return wf
cmd = "/usr/bin/python main.py '{} {}'".format(self.mh_clear_aws_tools_cache.__name__, magic_command)
cmd = "~/.pyenv/shims/python2.7 main.py '{} {}'".format(self.mh_clear_aws_tools_cache.__name__, magic_command)
item_arg = ItemArgs(
title="Clear AWS tools workflow cache data",
subtitle="hit 'Enter' to clear cache",
Expand Down Expand Up @@ -143,7 +143,7 @@ def handle_wrong_setting_key(wf, st_key):
icon=HotIcons.run,
valid=True,
)
cmd = "/usr/bin/python main.py '{} {} {}'".format(
cmd = "~/.pyenv/shims/python2.7 main.py '{} {} {}'".format(
self.mh_set_value.__name__,
st_key,
st_value,
Expand All @@ -165,7 +165,7 @@ def mh_rebuild_index(self, wf, query_str):
main_service_searcher.build_index(force_rebuild=True)
sub_service_searcher.build_index(force_rebuild=True)
return wf
cmd = "/usr/bin/python main.py '{} {}'".format(self.mh_rebuild_index.__name__, magic_command)
cmd = "~/.pyenv/shims/python2.7 main.py '{} {}'".format(self.mh_rebuild_index.__name__, magic_command)
item_arg = ItemArgs(
title="Rebuild AWS console url index",
subtitle="hit 'Enter' to rebuild the index",
Expand All @@ -183,7 +183,7 @@ def mh_clear_log(self, wf, query_str):
if query_str == magic_command:
clear_log()
return wf
cmd = "/usr/bin/python main.py '{} {}'".format(self.mh_clear_log.__name__, magic_command)
cmd = "~/.pyenv/shims/python2.7 main.py '{} {}'".format(self.mh_clear_log.__name__, magic_command)
item_arg = ItemArgs(
title="Clear all log files",
subtitle="hit 'Enter' to clear the log",
Expand Down
12 changes: 6 additions & 6 deletions aws_tools/handlers/item_builder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def select_aws_profile_as_default(
:rtype: Workflow3
"""
for aws_profile in aws_profile_list:
cmd = "/usr/bin/python main.py '{} {}'".format(
cmd = "~/.pyenv/shims/python2.7 main.py '{} {}'".format(
set_default_aws_profile_handler_id,
aws_profile,
)
Expand Down Expand Up @@ -56,7 +56,7 @@ def select_aws_profile_for_mfa(
:rtype: Workflow3
"""
for aws_profile in aws_profile_list:
cmd = "/usr/bin/python main.py '{} {}'".format(
cmd = "~/.pyenv/shims/python2.7 main.py '{} {}'".format(
execute_mfa_auth_handler_id,
aws_profile,
)
Expand Down Expand Up @@ -85,7 +85,7 @@ def set_aws_profile_as_aws_tools_default(
:rtype: Workflow3
"""
for aws_profile in aws_profile_list:
cmd = "/usr/bin/python main.py '{} {}'".format(
cmd = "~/.pyenv/shims/python2.7 main.py '{} {}'".format(
set_aws_profile_as_aws_tools_default_handler_id,
aws_profile,
)
Expand Down Expand Up @@ -114,7 +114,7 @@ def set_aws_region_as_aws_tools_default(
:rtype: Workflow3
"""
for long_name, short_name in all_regions:
cmd = "/usr/bin/python main.py '{} {}'".format(
cmd = "~/.pyenv/shims/python2.7 main.py '{} {}'".format(
set_aws_region_as_aws_tools_default_handler_id,
short_name,
)
Expand Down Expand Up @@ -143,12 +143,12 @@ def set_aws_profile_as_default_for_everything(
:rtype: Workflow3
"""
for aws_profile, region in aws_profile_and_region_list:
cmd = "/usr/bin/python main.py '{} {}'".format(
cmd = "~/.pyenv/shims/python2.7 main.py '{} {}'".format(
set_aws_profile_as_default_for_everything_handler_id,
"{}____{}".format(aws_profile, region),
)
item_arg = ItemArgs(
title="{} {}".format(aws_profile, region),
title="{} | {}".format(aws_profile, region),
subtitle="set default profile as [{}] for everything".format(aws_profile),
autocomplete=aws_profile,
icon=HotIcons.iam,
Expand Down
24 changes: 12 additions & 12 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_select_aws_profile_to_set_as_default {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_select_aws_profile_to_set_as_default {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -656,7 +656,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_info {query}'</string>
<string> ~/.pyenv/shims/python2.7 main.py 'mh_info {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -743,7 +743,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_select_aws_profile_for_mfa_auth {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_select_aws_profile_for_mfa_auth {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -811,7 +811,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_clear_aws_tools_cache {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_clear_aws_tools_cache {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -902,7 +902,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_select_aws_profile_to_set_as_aws_tools_default {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_select_aws_profile_to_set_as_aws_tools_default {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -1010,7 +1010,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_select_aws_region_to_set_as_aws_tools_default {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_select_aws_region_to_set_as_aws_tools_default {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -1097,7 +1097,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_set {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_set {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -1146,7 +1146,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_rebuild_index {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_rebuild_index {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -1214,7 +1214,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_clear_log {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_clear_log {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -1263,7 +1263,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_select_aws_profile_to_set_as_default_for_everything {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_select_aws_profile_to_set_as_default_for_everything {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -1312,7 +1312,7 @@
<key>runningsubtext</key>
<string>please wait ...</string>
<key>script</key>
<string>/usr/bin/python main.py 'mh_aws {query}'</string>
<string>~/.pyenv/shims/python2.7 main.py 'mh_aws {query}'</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -1503,7 +1503,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.0.6</string>
<string>1.0.8</string>
<key>webaddress</key>
<string>https://github.com/MacHu-GWU/afwf_aws_tools-project</string>
</dict>
Expand Down
11 changes: 9 additions & 2 deletions release-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Release and Version History
==============================================================================


1.0.8 (TODO)
1.0.9 (TODO)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Features and Improvements**

Expand All @@ -15,7 +15,14 @@ Release and Version History
**Miscellaneous**


1.0.7 (TODO)
1.0.8 (2022-04-13)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Features and Improvements**

- MacOS may not support system Python2 anymore after 12.3. Now user has to install their own Python2 using `pyenv <https://github.com/pyenv/pyenv>`_. Please follow the installation guide and use this command ``pyenv install 2.7.18`` to install the python2 and make sure ``~/.pyenv/shims/python2.7``


1.0.7 (2022-03-06)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Features and Improvements**

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.7
1.0.8

0 comments on commit 1ba3a95

Please sign in to comment.