Skip to content

Commit fa8d181

Browse files
committed
minor fix in build config
1 parent 6b3260b commit fa8d181

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

aws-proxy/Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,19 @@ format: ## Run ruff to format the whole codebase
2525
lint: ## Run code linter to check code style
2626
($(VENV_RUN); python -m ruff check --output-format=full . && python -m ruff format --check .)
2727

28-
test: venv ## Run tests
28+
test: ## Run tests
2929
$(VENV_RUN); python -m pytest $(PYTEST_ARGS) $(TEST_PATH)
3030

31-
dist: venv ## Create distribution package
31+
dist: ## Create distribution package
3232
$(VENV_RUN); python setup.py sdist bdist_wheel
3333

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)
34+
entrypoints: ## Generate plugin entrypoints for Python package
35+
$(VENV_RUN); python -m plux entrypoints
36+
37+
build: entrypoints ## Build the extension
38+
$(VENV_RUN); python -m build --no-isolation . --outdir build
39+
@# make sure that the entrypoints are contained in the dist folder and are non-empty
40+
@test -s localstack_extension_aws_proxy.egg-info/entry_points.txt || (echo "Entrypoints were not correctly created! Aborting!" && exit 1)
3841

3942
enable: $(wildcard ./build/dist/localstack_extension_aws_proxy-*.tar.gz) ## Enable the extension in LocalStack
4043
$(VENV_RUN); \

aws-proxy/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ dependencies = [
2020
test=[
2121
"pytest",
2222
"pytest-httpserver",
23-
"ruff"
23+
"ruff",
24+
"setuptools_scm"
2425
]
2526

2627

0 commit comments

Comments
 (0)