Skip to content

Commit 1361e9a

Browse files
committed
Fix use of deprecated fields in poetry config. Update install script. Add script to run all unit tests.
1 parent b219991 commit 1361e9a

File tree

17 files changed

+72
-39
lines changed

17 files changed

+72
-39
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,11 @@ test-prod:
8585

8686
setup-python-envs:
8787
scripts/setup-python-envs.sh
88+
89+
unit-test-all:
90+
make -C ack_backend test
91+
make -C backend test
92+
make -C delta_backend test
93+
make -C filenameprocessor test
94+
make -C mesh_processor test
95+
make -C recordprocessor test

ack_backend/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ build:
44
package: build
55
mkdir -p build
66
docker run --rm -v $(shell pwd)/build:/build ack-lambda-build
7-
7+
88
test:
9-
python -m unittest
9+
poetry run python -m unittest
1010

11-
.PHONY: build package
11+
.PHONY: build package

ack_backend/pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
[tool.poetry]
1+
[project]
22
name = "ack-code"
33
version = "0.1.0"
44
description = ""
5-
authors = ["Your Name <you@example.com>"]
5+
authors = [{ name = "Your Name", email = "<you@example.com>" }]
66
readme = "README.md"
77

8+
[tool.poetry]
9+
package-mode = false
10+
811
[tool.poetry.dependencies]
912
python = "~3.10"
1013
boto3 = "~1.26.90"
1114
mypy-boto3-dynamodb = "^1.26.164"
1215
freezegun = "^1.5.1"
1316
moto = "~4.2.11"
1417

15-
1618
[build-system]
1719
requires = ["poetry-core"]
1820
build-backend = "poetry.core.masonry.api"

backend/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ package: build
66
docker run --rm -v $(shell pwd)/build:/build imms-lambda-build
77

88
test:
9-
python -m unittest
9+
poetry run python -m unittest
1010

1111
.PHONY: build package test

backend/pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
[tool.poetry]
1+
[project]
22
name = "backend"
33
version = "0.1.0"
44
description = ""
5-
authors = ["Your Name <you@example.com>"]
5+
authors = [{ name = "Your Name", email = "<you@example.com>" }]
66
readme = "README.md"
7+
8+
[tool.poetry]
79
packages = [{include = "src"}]
10+
package-mode = false
811

912
[tool.poetry.dependencies]
1013
python = "~3.10"

delta_backend/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ package: build
66
docker run --rm -v $(shell pwd)/build:/build delta-lambda-build
77

88
test:
9-
python -m unittest
9+
poetry run python -m unittest
1010

11-
.PHONY: build package
11+
.PHONY: build package

delta_backend/pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
[tool.poetry]
1+
[project]
22
name = "delta-code"
33
version = "0.1.0"
44
description = ""
5-
authors = ["Your Name <you@example.com>"]
5+
authors = [{ name = "Your Name", email = "<you@example.com>" }]
66
readme = "README.md"
77

8+
[tool.poetry]
9+
package-mode = false
10+
811
[tool.poetry.dependencies]
912
python = "~3.10"
1013
boto3 = "~1.26.90"

e2e/pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
[tool.poetry]
1+
[project]
22
name = "e2e"
33
version = "0.1.0"
44
description = "End-to-end tests for immunization-fhir-api"
5-
authors = ["Your Name <you@example.com>"]
5+
authors = [{ name = "Your Name", email = "<you@example.com>" }]
66
license = "MIT"
77
readme = "README.md"
88

9+
[tool.poetry]
10+
package-mode = false
11+
912
[tool.poetry.dependencies]
1013
python = "~3.10"
1114
boto3 = "^1.34.57"

e2e_batch/pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
[tool.poetry]
1+
[project]
22
name = "e2e_batch"
33
version = "0.1.0"
44
description = "End-to-end tests for immunization-batch"
5-
authors = ["Your Name <you@example.com>"]
5+
authors = [{ name = "Your Name", email = "<you@example.com>" }]
66
license = "MIT"
77
readme = "README.md"
88

9+
[tool.poetry]
10+
package-mode = false
11+
912
[tool.poetry.dependencies]
1013
python = "~3.10"
1114
boto3 = "~1.26.90"
12-
pandas = "^2.2.3"
15+
pandas = "^2.2.3"

filenameprocessor/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ package: build
66
docker run --rm -v $(shell pwd)/build:/build imms-lambda-build
77

88
test:
9-
python -m unittest
9+
poetry run python -m unittest
1010

1111
coverage-run:
1212
coverage run -m unittest discover
1313

1414
coverage-report:
15-
coverage report -m
15+
coverage report -m
1616

1717
coverage-html:
18-
coverage html
18+
coverage html
1919

2020
.PHONY: build package test coverage-run coverage-report coverage-html

0 commit comments

Comments
 (0)