Skip to content

Commit 3309cba

Browse files
authored
Remove Python 3.8 References (#363)
* Install newrelic-lambda package from PyPI * Remove all references to Python 3.8 or 3.7 in code * Upgrade all dockerfiles to use Python 3.12 instead of 3.8
1 parent 121a94e commit 3309cba

File tree

11 files changed

+11
-31
lines changed

11 files changed

+11
-31
lines changed

.github/workflows/publish-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
13+
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Check Tag

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
python-version: ['3.8', '3.9', '3.10', '3.11']
20+
python-version: ['3.9', '3.10', '3.11']
2121
steps:
2222
- uses: actions/checkout@v3
2323

dockerfiles/Dockerfile.java11

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY --chown=newrelic-lambda-layers java java/
1313
WORKDIR java
1414
RUN ./publish-layers.sh build-java11
1515

16-
FROM python:3.8
16+
FROM python:3.12
1717

1818
RUN useradd -m newrelic-lambda-layers
1919
USER newrelic-lambda-layers

dockerfiles/Dockerfile.java17

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY --chown=newrelic-lambda-layers java java/
1313
WORKDIR java
1414
RUN ./publish-layers.sh build-java17
1515

16-
FROM python:3.8
16+
FROM python:3.12
1717

1818
RUN useradd -m newrelic-lambda-layers
1919
USER newrelic-lambda-layers

dockerfiles/Dockerfile.java21

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY --chown=newrelic-lambda-layers java java/
1313
WORKDIR java
1414
RUN ./publish-layers.sh build-java21
1515

16-
FROM python:3.8
16+
FROM python:3.12
1717

1818
RUN useradd -m newrelic-lambda-layers
1919
USER newrelic-lambda-layers

dockerfiles/Dockerfile.java8al2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY --chown=newrelic-lambda-layers java java/
1313
WORKDIR java
1414
RUN ./publish-layers.sh build-java8al2
1515

16-
FROM python:3.8
16+
FROM python:3.12
1717

1818
RUN useradd -m newrelic-lambda-layers
1919
USER newrelic-lambda-layers

dockerfiles/Dockerfile.nodejs18

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY --chown=newrelic-lambda-layers nodejs nodejs/
1313
WORKDIR nodejs
1414
RUN ./publish-layers.sh build-18
1515

16-
FROM python:3.8
16+
FROM python:3.12
1717

1818
RUN useradd -m newrelic-lambda-layers
1919
USER newrelic-lambda-layers

dockerfiles/Dockerfile.nodejs20

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY --chown=newrelic-lambda-layers nodejs nodejs/
1313
WORKDIR nodejs
1414
RUN ./publish-layers.sh build-20
1515

16-
FROM python:3.8
16+
FROM python:3.12
1717

1818
RUN useradd -m newrelic-lambda-layers
1919
USER newrelic-lambda-layers

dockerfiles/Dockerfile.nodejs22

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY --chown=newrelic-lambda-layers nodejs nodejs/
1313
WORKDIR nodejs
1414
RUN ./publish-layers.sh build-22
1515

16-
FROM python:3.8
16+
FROM python:3.12
1717

1818
RUN useradd -m newrelic-lambda-layers
1919
USER newrelic-lambda-layers

libBuild.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,6 @@ function layer_name_str() {
101101
"java21")
102102
rt_part="Java21"
103103
;;
104-
"python3.7")
105-
rt_part="Python37"
106-
;;
107-
"python3.8")
108-
rt_part="Python38"
109-
;;
110104
"python3.9")
111105
rt_part="Python39"
112106
;;
@@ -167,12 +161,6 @@ function s3_prefix() {
167161
"java11")
168162
name="java-11"
169163
;;
170-
"python3.7")
171-
name="nr-python3.7"
172-
;;
173-
"python3.8")
174-
name="nr-python3.8"
175-
;;
176164
"python3.9")
177165
name="nr-python3.9"
178166
;;
@@ -231,7 +219,7 @@ function agent_name_str() {
231219
"java8.al2"|"java11"|"java17"|"java21")
232220
agent_name="Java"
233221
;;
234-
"python3.8"|"python3.9"|"python3.10"|"python3.11"|"python3.12"|"python3.13")
222+
"python3.9"|"python3.10"|"python3.11"|"python3.12"|"python3.13")
235223
agent_name="Python"
236224
;;
237225
*)

0 commit comments

Comments
 (0)