Skip to content

Commit a217d06

Browse files
authored
Adapt for localstack-standalone-cli (#49)
1 parent db74cc6 commit a217d06

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

Makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@ dist-bin/localstack build: $(VENV_ACTIVATE) main.py
2626
$(PYINSTALLER_ARGS) -n localstack \
2727
--hidden-import cookiecutter.main \
2828
--hidden-import cookiecutter.extensions \
29-
--hidden-import localstack.dev.run.configurators \
30-
--hidden-import localstack.pro.core.plugins \
31-
--hidden-import localstack.pro.core.cli.localstack \
32-
--hidden-import localstack.pro.core.extensions.plugins \
29+
--hidden-import localstack_cli.cli.core_plugin \
30+
--hidden-import localstack_cli.pro.core.cli.localstack \
31+
--hidden-import localstack_cli.runtime \
32+
--hidden-import localstack_cli.runtime.hooks \
33+
--hidden-import localstack_cli.runtime.exceptions \
34+
--hidden-import localstack_cli.pro.core.plugins \
35+
--hidden-import localstack_cli.pro.core.bootstrap.extensions.bootstrap \
36+
--hidden-import localstack_cli.utils.analytics.metadata \
3337
--collect-all=rich \
34-
--copy-metadata localstack_ext \
35-
--collect-data localstack.pro.core \
38+
--copy-metadata localstack \
3639
--additional-hooks-dir hooks
3740

3841
dist-dir/localstack: PYINSTALLER_ARGS=--distpath=dist-dir
@@ -47,4 +50,3 @@ clean-venv:
4750
rm -rf $(VENV_DIR)
4851

4952
.PHONY: all build clean clean-venv
50-

hooks/hook-localstack.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from PyInstaller.utils.hooks import copy_metadata
2+
3+
# make sure to add the entrypoints data for localstack (for plux plugin discovery)
4+
datas = copy_metadata('localstack')

hooks/hook-localstack_core.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
freeze_support()
44

55
os.environ["SKIP_PATCH_MOTO_ACCOUNT_ID"] = "1"
6-
from localstack.cli import main
6+
from localstack_cli.cli import main
77

88
if __name__ == '__main__':
99
main.main()

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pyinstaller
2-
localstack==4.13.1
2+
localstack==4.13.2.dev36
33
cookiecutter

0 commit comments

Comments
 (0)