mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
python upgraded due to enum
This commit is contained in:
parent
0c211f401f
commit
0159176772
11 changed files with 23 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
FROM public.ecr.aws/lambda/python:3.10
|
||||
# 3.11 required: domain.modelling.measure_type uses enum.StrEnum (added in 3.11).
|
||||
FROM public.ecr.aws/lambda/python:3.11
|
||||
# FROM python:3.11.10-bullseye
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||
COPY utils/ utils/
|
||||
COPY backend/ backend/
|
||||
COPY datatypes/ datatypes/
|
||||
# backend.app.db.models.recommendations imports infrastructure.postgres.modelling,
|
||||
# which imports domain.modelling; without these the lambda fails at init with
|
||||
# "No module named 'infrastructure'" / "'domain'".
|
||||
COPY infrastructure/ infrastructure/
|
||||
COPY domain/ domain/
|
||||
|
||||
COPY backend/bulk_address2uprn_combiner/main.py .
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,11 @@ COPY utils/ utils/
|
|||
# NOTE: if build is ever slow we can be more specific with which files are copied
|
||||
COPY backend/ backend/
|
||||
COPY datatypes/ datatypes/
|
||||
# backend.app.db.models.recommendations imports infrastructure.postgres.modelling,
|
||||
# which imports domain.modelling; without these the lambda fails at init with
|
||||
# "No module named 'infrastructure'" / "'domain'".
|
||||
COPY infrastructure/ infrastructure/
|
||||
COPY domain/ domain/
|
||||
|
||||
|
||||
# -----------------------------
|
||||
|
|
|
|||
|
|
@ -19,6 +19,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||
COPY utils/ utils/
|
||||
COPY backend/ backend/
|
||||
COPY datatypes/ datatypes/
|
||||
# backend.app.db.models.recommendations imports infrastructure.postgres.modelling,
|
||||
# which imports domain.modelling; without these the lambda fails at init with
|
||||
# "No module named 'infrastructure'" / "'domain'".
|
||||
COPY infrastructure/ infrastructure/
|
||||
COPY domain/ domain/
|
||||
|
||||
# Lambda handler
|
||||
CMD ["backend/ordnanceSurvey/main.handler"]
|
||||
|
|
|
|||
|
|
@ -19,6 +19,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||
COPY utils/ utils/
|
||||
COPY backend/ backend/
|
||||
COPY datatypes/ datatypes/
|
||||
# backend.app.db.models.recommendations imports infrastructure.postgres.modelling,
|
||||
# which imports domain.modelling; without these the lambda fails at init with
|
||||
# "No module named 'infrastructure'" / "'domain'".
|
||||
COPY infrastructure/ infrastructure/
|
||||
COPY domain/ domain/
|
||||
|
||||
# Copy the handler
|
||||
COPY backend/postcode_splitter/main.py .
|
||||
|
|
|
|||
|
|
@ -25,6 +25,5 @@ testpaths =
|
|||
etl/epc_clean/tests
|
||||
etl/hubspot/tests
|
||||
etl/spatial/tests
|
||||
infrastructure/epc_client/tests/
|
||||
markers =
|
||||
integration: mark a test as an integration test
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from infrastructure.epc_client.epc_client_service import EpcClientService
|
|||
from datatypes.epc.search import EpcSearchResult
|
||||
from infrastructure.epc_client.exceptions import EpcNotFoundError, EpcRateLimitError
|
||||
from datatypes.epc.domain.epc_property_data import EpcPropertyData
|
||||
from infrastructure.epc_client.tests.conftest import make_search_row
|
||||
from tests.infrastructure.epc_client.conftest import make_search_row
|
||||
|
||||
|
||||
def _mock_response(status_code=200, json_data=None, headers=None):
|
||||
Loading…
Add table
Reference in a new issue