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 1, 2024
1 parent 21e4e31 commit e9e9589
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 = " 📮 A Django port of the original PHP code from electionleaflet
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"aws-sam-cli==1.131.0",
"aws-wsgi",
"dc-design-system",
"dc-django-utils",
Expand Down Expand Up @@ -62,6 +61,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 e9e9589

Please sign in to comment.