Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions aws-proxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,23 @@ lint: ## Run code linter to check code style
test: ## Run tests
$(VENV_RUN); python -m pytest $(PYTEST_ARGS) $(TEST_PATH)

entrypoints: build-frontend ## Generate plugin entrypoints for Python package
$(VENV_RUN); python -m plux entrypoints
entrypoints: install build-frontend ## Generate plugin entrypoints for Python package
$(VENV_RUN); pip install --upgrade plux; python -m plux entrypoints --exclude '**/node_modules/**'

build: build-frontend entrypoints ## Build the extension
$(VENV_RUN); python -m build --no-isolation . --outdir build
install-build-deps: venv ## Install build dependencies
$(VENV_RUN); pip install --upgrade build setuptools wheel plux setuptools_scm

build: install-build-deps build-frontend entrypoints ## Build the extension
$(VENV_RUN); python -m build --no-isolation . --outdir dist
@# make sure that the entrypoints are contained in the dist folder and are non-empty
@test -s localstack_extension_aws_proxy.egg-info/entry_points.txt || (echo "Entrypoints were not correctly created! Aborting!" && exit 1)

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

publish: clean-dist venv dist
publish: clean-dist venv build
$(VENV_RUN); pip install --upgrade twine; twine upload dist/*

check-frontend-deps:
Expand All @@ -62,8 +65,10 @@ build-frontend: # Build the React app
start-frontend: ## Start the frontend in dev mode (hot reload)
cd $(FRONTEND_FOLDER); yarn start

install: install-frontend ## Install dependencies
venv:
test -d .venv || $(VENV_BIN) .venv

install: install-frontend venv ## Install dependencies
$(VENV_RUN); pip install -e .
$(VENV_RUN); pip install -e .[test]
touch $(VENV_DIR)/bin/activate
Expand Down
2 changes: 2 additions & 0 deletions aws-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ If you wish to access the deprecated instructions, they can be found [here](http

## Change Log

* `0.2.2`: Refactor UI to use WebAppExtension pattern
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the missing entries here! 🙌

* `0.2.1`: Restructure project to use pyproject.toml
* `0.2.0`: Rename extension from `localstack-extension-aws-replicator` to `localstack-extension-aws-proxy`
* `0.1.25`: Fix dynamodb proxying for read-only mode
* `0.1.24`: Fix healthcheck probe for proxy container
Expand Down