Skip to content

Commit feb56cb

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

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

aws-proxy/Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ 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
32-
$(VENV_RUN); python setup.py sdist bdist_wheel
31+
entrypoints: ## Generate plugin entrypoints for Python package
32+
$(VENV_RUN); python -m plux entrypoints
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+
build: entrypoints ## Build the extension
35+
$(VENV_RUN); python -m build --no-isolation . --outdir build
36+
@# make sure that the entrypoints are contained in the dist folder and are non-empty
37+
@test -s localstack_extension_aws_proxy.egg-info/entry_points.txt || (echo "Entrypoints were not correctly created! Aborting!" && exit 1)
3838

39-
enable: $(wildcard ./build/dist/localstack_extension_aws_proxy-*.tar.gz) ## Enable the extension in LocalStack
39+
enable: $(wildcard ./build/localstack_extension_aws_proxy-*.tar.gz) ## Enable the extension in LocalStack
4040
$(VENV_RUN); \
4141
pip uninstall --yes localstack-extension-aws-proxy; \
4242
localstack extensions -v install file://$?

aws-proxy/pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ authors = [
1313
]
1414

1515
dependencies = [
16-
"localstack-ext"
16+
"localstack"
1717
]
1818

1919
[project.optional-dependencies]
2020
test=[
21+
"localstack[runtime]",
2122
"pytest",
2223
"pytest-httpserver",
23-
"ruff"
24+
"plux",
25+
"ruff",
26+
"setuptools",
27+
"setuptools_scm",
28+
"wheel"
2429
]
2530

2631

0 commit comments

Comments
 (0)