Skip to content

Commit

Permalink
Use Makefile to get around SAM issue
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Dec 2, 2024
1 parent b6e88ff commit b24d6aa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions lambda-layers/DependenciesLayer/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

build-DependenciesLayer:
pip install --break-system-packages setuptools
pip install --upgrade -r requirements.txt --target "$(ARTIFACTS_DIR)/python/"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description = "An online archive of political leaflets"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"aws-sam-cli==1.131.0",
"aws-wsgi",
"dc-design-system @ https://github.com/DemocracyClub/design-system/archive/refs/tags/0.6.0.zip",
"dc-django-utils @ git+https://github.com/DemocracyClub/[email protected]",
Expand Down Expand Up @@ -61,6 +60,7 @@ lint.extend-select = [

[dependency-groups]
dev = [
"aws-sam-cli==1.131.0",
"pytest==8.3.3",
"pytest-cov==6.0.0",
"pytest-django==4.9.0",
Expand Down
2 changes: 1 addition & 1 deletion template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Resources:
CompatibleRuntimes:
- python3.12
Metadata:
BuildMethod: python3.12
BuildMethod: makefile


ElectionLeafletsFunction:
Expand Down
4 changes: 2 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b24d6aa

Please sign in to comment.