@@ -10,6 +10,7 @@ usage: ## Show this help
1010
1111install : # # Install dependencies
1212 test -d .venv || $(VENV_BIN ) .venv
13+ $(VENV_RUN ) ; pip install -e .
1314 $(VENV_RUN ) ; pip install -e .[test]
1415 touch $(VENV_DIR ) /bin/activate
1516
@@ -25,18 +26,18 @@ format: ## Run ruff to format the whole codebase
2526lint : # # Run code linter to check code style
2627 ($( VENV_RUN) ; python -m ruff check --output-format=full . && python -m ruff format --check .)
2728
28- test : venv # # Run tests
29+ test : # # Run tests
2930 $(VENV_RUN ) ; python -m pytest $(PYTEST_ARGS ) $(TEST_PATH )
3031
31- dist : venv # # Create distribution package
32- $(VENV_RUN ) ; python setup.py sdist bdist_wheel
32+ entrypoints : # # Generate plugin entrypoints for Python package
33+ $(VENV_RUN ) ; python -m plux entrypoints
3334
34- build : # # Build the extension
35- mkdir -p build
36- cp -r setup.py setup.cfg README.md aws_proxy build/
37- (cd build && python setup.py sdist )
35+ build : entrypoints # # Build the extension
36+ $( VENV_RUN ) ; python -m build --no-isolation . --outdir build
37+ @ # make sure that the entrypoints are contained in the dist folder and are non-empty
38+ @test -s localstack_extension_aws_proxy.egg-info/entry_points.txt || (echo " Entrypoints were not correctly created! Aborting! " && exit 1 )
3839
39- enable : $(wildcard ./build/dist/ localstack_extension_aws_proxy-* .tar.gz) # # Enable the extension in LocalStack
40+ enable : $(wildcard ./build/localstack_extension_aws_proxy-* .tar.gz) # # Enable the extension in LocalStack
4041 $(VENV_RUN ) ; \
4142 pip uninstall --yes localstack-extension-aws-proxy; \
4243 localstack extensions -v install file://$?
0 commit comments