Skip to content

Commit

Permalink
add cookiecutter package, add extensions dev new smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrashed committed Oct 13, 2023
1 parent 0839a6a commit cf674bd
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
brew install docker
colima start
- name: Non-Docker Smoke tests
- name: Community Non-Docker Smoke tests
shell: bash
run: |
ls dist-bin/
Expand All @@ -85,6 +85,22 @@ jobs:
# show the config
./localstack config show
- name: Pro Non-Docker Smoke tests
shell: bash
# Skip these checks for forks (forks do not have access to the LocalStack Pro API key)
if: ${{ ! github.event.pull_request.head.repo.fork }}
run: |
cd dist-bin
# create an extension with default parameters (enter all new lines to use defaults)
printf "\n\n\n\n\n\n\n\n" | LOCALSTACK_API_KEY=${{ secrets.TEST_LOCALSTACK_API_KEY }} DEBUG=1 ./localstack extensions dev new
# print the directory output
ls -al
# make sure the new extension has been created
cd my_localstack_extension
cat setup.cfg
cd ..
rm -rf my_localstack_extension
- name: Community Docker Smoke tests (Linux, MacOS)
shell: bash
# GitHub Windows and xlarge MacOS runner cannot run Docker containers:
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $(VENV_ACTIVATE): requirements.txt
dist-bin/localstack build: $(VENV_ACTIVATE) main.py
$(VENV_RUN); pyinstaller main.py \
$(PYINSTALLER_ARGS) -n localstack \
--hidden-import cookiecutter.main \
--hidden-import cookiecutter.extensions \
--hidden-import localstack_ext.cli.localstack \
--additional-hooks-dir hooks

Expand Down
5 changes: 5 additions & 0 deletions hooks/hook-cookiecutter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import os

from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files('cookiecutter')
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pyinstaller
localstack==2.3.2
localstack==2.3.2
cookiecutter

0 comments on commit cf674bd

Please sign in to comment.