Skip to content

Commit d8b1d41

Browse files
authored
Merge pull request #10 from noahhefner/updatePython
Update python
2 parents 9cbf562 + ab67b2a commit d8b1d41

17 files changed

Lines changed: 784 additions & 166 deletions

File tree

‎content/posts/python-containerization/index.md‎

Lines changed: 144 additions & 122 deletions
Large diffs are not rendered by default.

‎content/posts/python-containerization/take_1/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Start from Ubuntu
2-
FROM ubuntu:24.04
2+
FROM ubuntu:26.04
33

44
# Install Python, pip, and venv
55
RUN apt-get update && apt-get install -y \
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pika==1.3.2
2-
pymongo==4.14.1
3-
structlog==25.4.0
4-
black==25.1.0
5-
isort==6.0.1
6-
autoflake==2.3.1
1+
pika==1.4.0
2+
pymongo==4.17.0
3+
structlog==25.5.0
4+
ruff==0.15.13
5+
ty==0.0.38
6+
isort==8.0.1

‎content/posts/python-containerization/take_2/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Start from Python Alpine image
2-
FROM python:3.13-alpine3.22
2+
FROM python:3.14-alpine3.23
33

44
# Set work directory
55
WORKDIR /app
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pika==1.3.2
2-
pymongo==4.14.1
3-
structlog==25.4.0
4-
black==25.1.0
5-
isort==6.0.1
6-
autoflake==2.3.1
1+
pika==1.4.0
2+
pymongo==4.17.0
3+
structlog==25.5.0
4+
ruff==0.15.13
5+
ty==0.0.38
6+
isort==8.0.1

‎content/posts/python-containerization/take_3/Dockerfile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Start from uv image
2-
FROM ghcr.io/astral-sh/uv:python3.13-alpine
2+
FROM ghcr.io/astral-sh/uv:python3.14-alpine
33

44
# Set work directory
55
WORKDIR /app
66

77
# Create virtual environment
88
RUN uv venv
99

10-
# Copy pyproject.toml
11-
COPY take_3/pyproject.toml .
10+
# Copy pyproject.toml and uv.lock
11+
COPY take_3/pyproject.toml take_3/uv.lock .
1212

1313
# Install Python modules
1414
RUN uv sync --no-cache

‎content/posts/python-containerization/take_3/pyproject.toml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name = "python-container-article"
33
version = "0.1.0"
44
description = "Example pyproject.toml file"
55
readme = "README.md"
6-
requires-python = ">=3.12"
6+
requires-python = ">=3.14"
77
dependencies = [
8-
"autoflake>=2.3.1",
9-
"black>=25.1.0",
108
"isort>=6.0.1",
119
"pika>=1.3.2",
1210
"pymongo>=4.14.1",
11+
"ruff>=0.15.13",
1312
"structlog>=25.4.0",
14-
]
13+
"ty>=0.0.38",
14+
]

‎content/posts/python-containerization/take_3/uv.lock‎

Lines changed: 143 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎content/posts/python-containerization/take_4/Dockerfile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Start from uv image
2-
FROM ghcr.io/astral-sh/uv:python3.13-alpine
2+
FROM ghcr.io/astral-sh/uv:python3.14-alpine
33

44
# Set work directory
55
WORKDIR /app
66

77
# Create virtual environment
88
RUN uv venv
99

10-
# Copy pyproject.toml
11-
COPY take_3/pyproject.toml .
10+
# Copy pyproject.toml and uv.lock
11+
COPY take_4/pyproject.toml take_4/uv.lock .
1212

1313
# Install Python modules
1414
RUN uv sync --no-cache --no-group dev

‎content/posts/python-containerization/take_4/pyproject.toml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "python-container-article"
33
version = "0.1.0"
44
description = "Example pyproject.toml file"
55
readme = "README.md"
6-
requires-python = ">=3.12"
6+
requires-python = ">=3.14"
77
dependencies = [
88
"pika>=1.3.2",
99
"pymongo>=4.14.1",
@@ -12,7 +12,7 @@ dependencies = [
1212

1313
[dependency-groups]
1414
dev = [
15-
"autoflake>=2.3.1",
16-
"black>=25.1.0",
17-
"isort>=6.0.1",
15+
"isort>=8.0.1",
16+
"ruff>=0.15.13",
17+
"ty>=0.0.38",
1818
]

0 commit comments

Comments
 (0)