@@ -26,20 +26,23 @@ lint: ## Run code linter to check code style
2626test : # # Run tests
2727 $(VENV_RUN ) ; python -m pytest $(PYTEST_ARGS ) $(TEST_PATH )
2828
29- entrypoints : build-frontend # # Generate plugin entrypoints for Python package
30- $(VENV_RUN ) ; python -m plux entrypoints
29+ entrypoints : install build-frontend # # Generate plugin entrypoints for Python package
30+ $(VENV_RUN ) ; pip install --upgrade plux ; python -m plux entrypoints --exclude ' **/node_modules/** '
3131
32- build : build-frontend entrypoints # # Build the extension
33- $(VENV_RUN ) ; python -m build --no-isolation . --outdir build
32+ install-build-deps : venv # # Install build dependencies
33+ $(VENV_RUN ) ; pip install --upgrade build setuptools wheel plux setuptools_scm
34+
35+ build : install-build-deps build-frontend entrypoints # # Build the extension
36+ $(VENV_RUN ) ; python -m build --no-isolation . --outdir dist
3437 @# make sure that the entrypoints are contained in the dist folder and are non-empty
3538 @test -s localstack_extension_aws_proxy.egg-info/entry_points.txt || (echo " Entrypoints were not correctly created! Aborting!" && exit 1)
3639
37- enable : $(wildcard ./build /localstack_extension_aws_proxy-* .tar.gz) # # Enable the extension in LocalStack
40+ enable : $(wildcard ./dist /localstack_extension_aws_proxy-* .tar.gz) # # Enable the extension in LocalStack
3841 $(VENV_RUN ) ; \
3942 pip uninstall --yes localstack-extension-aws-proxy; \
4043 localstack extensions -v install file://$?
4144
42- publish : clean-dist venv dist
45+ publish : clean-dist venv build
4346 $(VENV_RUN ) ; pip install --upgrade twine; twine upload dist/*
4447
4548check-frontend-deps :
@@ -62,8 +65,10 @@ build-frontend: # Build the React app
6265start-frontend : # # Start the frontend in dev mode (hot reload)
6366 cd $(FRONTEND_FOLDER ) ; yarn start
6467
65- install : install-frontend # # Install dependencies
68+ venv :
6669 test -d .venv || $(VENV_BIN ) .venv
70+
71+ install : install-frontend venv # # Install dependencies
6772 $(VENV_RUN ) ; pip install -e .
6873 $(VENV_RUN ) ; pip install -e .[test]
6974 touch $(VENV_DIR ) /bin/activate
0 commit comments