Skip to content

Commit 04ac3d9

Browse files
Fix publish command for AWS proxy
1 parent 61a995f commit 04ac3d9

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

aws-proxy/Makefile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,23 @@ lint: ## Run code linter to check code style
2626
test: ## 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

4548
check-frontend-deps:
@@ -62,8 +65,10 @@ build-frontend: # Build the React app
6265
start-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

aws-proxy/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ If you wish to access the deprecated instructions, they can be found [here](http
126126

127127
## Change Log
128128

129+
* `0.2.2`: Refactor UI to use WebAppExtension pattern
130+
* `0.2.1`: Restructure project to use pyproject.toml
129131
* `0.2.0`: Rename extension from `localstack-extension-aws-replicator` to `localstack-extension-aws-proxy`
130132
* `0.1.25`: Fix dynamodb proxying for read-only mode
131133
* `0.1.24`: Fix healthcheck probe for proxy container

0 commit comments

Comments
 (0)