Skip to content

Commit 0376d80

Browse files
Bumping python to allow 3.13 (#634)
## Description We just merged a dependabot flagged lambda from 3.12 to 3.13, which broke some of our images: https://github.com/CDCgov/dibbs-text-to-code/actions/runs/27693398902/job/81911551823 If we are concerned with allowing this, we can always rollback that PR for the time being since it is perhaps a bigger breaking change than I realized at the time. The `torch` being pinned to 2.9.1 was causing issues with a universal change to the primary `pyproject.toml` to allow 3.13 wheels. We have an open PR about pushing up that version that may resolve that issue, but as noted in that dependabot ticket, there could be an issue with an upgrade there: #621 May be worth considering at the same time. Per eng sync convo, we should push to at least 3.13 and also pin back the Dockerfiles to just be 3.13. I added a stop to keep any 3.14 out, but 🤷🏽 I think I would be okay with just >=3.13, especially given we will probably want to review/change versions of our dockerfile images to 3.14 more deliberately. ## Related Issues Related to #633 Semi-related to #621 ## Additional Notes [Add any additional context or notes that reviewers should know about.] <--------------------- REMOVE THE LINES BELOW BEFORE MERGING ---------------------> ## Checklist Please review and complete the following checklist before submitting your pull request: - [ ] I have ensured that the pull request is of a manageable size, allowing it to be reviewed within a single session. - [ ] I have reviewed my changes to ensure they are clear, concise, and well-documented. - [ ] I have updated the documentation, if applicable. - [ ] I have added or updated test cases to cover my changes, if applicable. - [ ] I have minimized the number of reviewers to include only those essential for the review. ## Checklist for Reviewers Please review and complete the following checklist during the review process: - [ ] The code follows best practices and conventions. - [ ] The changes implement the desired functionality or fix the reported issue. - [ ] The tests cover the new changes and pass successfully. - [ ] Any potential edge cases or error scenarios have been considered. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent a0bee14 commit 0376d80

12 files changed

Lines changed: 357 additions & 544 deletions

File tree

Dockerfile.augmentation

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM public.ecr.aws/lambda/python:3.13.2026.06.16.18
1+
FROM public.ecr.aws/lambda/python:3.13
22

33
LABEL org.opencontainers.image.source=https://github.com/CDCgov/dibbs-text-to-code
44
LABEL org.opencontainers.image.licenses=Apache-2.0

Dockerfile.index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM public.ecr.aws/lambda/python:3.13.2026.06.16.18
1+
FROM public.ecr.aws/lambda/python:3.13
22

33
LABEL org.opencontainers.image.source=https://github.com/CDCgov/dibbs-text-to-code
44
LABEL org.opencontainers.image.licenses=Apache-2.0

Dockerfile.ttc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM public.ecr.aws/lambda/python:3.13.2026.06.16.18
1+
FROM public.ecr.aws/lambda/python:3.13
22

33
LABEL org.opencontainers.image.source=https://github.com/CDCgov/dibbs-text-to-code
44
LABEL org.opencontainers.image.licenses=Apache-2.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ In production, the two Lambda functions handle large-scale eICR processing.
114114

115115
### Pre-requisites
116116

117-
- Python 3.11 or higher
117+
- Python 3.13
118118
- [Docker](https://docs.docker.com/get-docker/)
119119
- [Docker Compose](https://docs.docker.com/compose/install/) [optional]
120120

packages/augmentation-lambda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Augmentation creates a new eICR iteration rather than replacing the original eIC
2525

2626
### Pre-requisites
2727

28-
- Python 3.11 or higher
28+
- Python 3.13
2929
- Docker
3030
- Docker Compose [optional]
3131

packages/index-lambda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The index stores LOINC code metadata and embedding vectors used for semantic sea
2121

2222
### Pre-requisites
2323

24-
- Python 3.11 or higher
24+
- Python 3.13
2525
- Docker
2626
- Docker Compose [optional]
2727

packages/lambda-handler/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The package centralizes common Lambda support behavior, including AWS client cre
2121

2222
### Pre-requisites
2323

24-
- Python 3.11 or higher
24+
- Python 3.13
2525
- Docker
2626
- Docker Compose [optional]
2727

packages/shared-models/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
66
authors = [{ name = "Josh Nygaard", email = "jnygaard@skylight.digital" }]
7-
requires-python = ">=3.11, <3.13"
87
dependencies = []
98

109
[build-system]

packages/text-to-code/pyproject.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@ dependencies = [
66
"lxml>=6.0.2",
77
"pydantic>=2.12.5",
88
"sentence-transformers",
9-
# Starting with version 2.2.2, PyTorch stopped publishing wheel binaries for Intel Macs.
10-
# To maintain support for Intel Mac development, we pin PyTorch to version 2.2.2.
11-
# Some 2.2.2 builds were created with numpy 1.x, so we explicitly pin numpy to 1.x
12-
# to ensure compatibility across all hardware.
13-
# Once Intel Mac support is no longer needed, we can remove these pinned torch and numpy
14-
# versions and rely on spacy and sentence-transformers to manage their own dependencies.
15-
"torch>=2.12.0",
9+
"torch",
1610
]
1711

1812
[dependency-groups]

packages/validation/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name = "validation"
33
version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
6-
requires-python = ">=3.11, <3.13"
76
dependencies = ["saxonche>=12.9.0"]
87

98
[build-system]

0 commit comments

Comments
 (0)