Skip to content

Commit c8947a8

Browse files
authored
Update to Python 3.13 (#441)
* Update to Python 3.13 * fix
1 parent cc8371c commit c8947a8

8 files changed

Lines changed: 15 additions & 17 deletions

File tree

.cursor/rules/launchpad.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This is a Python CLI tool for analyzing iOS and Android app bundle sizes, simila
2323

2424
### Python
2525

26-
- Use modern Python 3.11+ with type hints
26+
- Use modern Python 3.13+ with type hints
2727
- Follow PEP 8 and ruff formatting (line length 120)
2828
- Use `pytest` for testing
2929
- Use `click` for CLI interface

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v6
2323
with:
24-
python-version: "3.12"
24+
python-version: "3.13"
2525

2626
- name: Install uv
2727
uses: astral-sh/setup-uv@v7
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Python
5454
uses: actions/setup-python@v6
5555
with:
56-
python-version: "3.12"
56+
python-version: "3.13"
5757

5858
- name: Install uv
5959
uses: astral-sh/setup-uv@v7
@@ -95,7 +95,7 @@ jobs:
9595
- name: Set up Python
9696
uses: actions/setup-python@v6
9797
with:
98-
python-version: "3.12"
98+
python-version: "3.13"
9999

100100
- name: Install uv
101101
uses: astral-sh/setup-uv@v7
@@ -147,7 +147,7 @@ jobs:
147147
- name: Set up Python
148148
uses: actions/setup-python@v6
149149
with:
150-
python-version: "3.12"
150+
python-version: "3.13"
151151

152152
- name: Install uv
153153
uses: astral-sh/setup-uv@v7

.github/workflows/image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Set up Python
3535
uses: actions/setup-python@v6
3636
with:
37-
python-version: "3.12"
37+
python-version: "3.13"
3838

3939
- name: Install uv
4040
uses: astral-sh/setup-uv@v7
@@ -111,7 +111,7 @@ jobs:
111111
- name: Set up Python
112112
uses: actions/setup-python@v6
113113
with:
114-
python-version: "3.12"
114+
python-version: "3.13"
115115

116116
- name: Install uv
117117
uses: astral-sh/setup-uv@v7

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
### Technology Stack
4545

46-
#### Backend (Python 3.11+)
46+
#### Backend (Python 3.13+)
4747
- **LIEF**: Binary analysis library for Mach-O/ELF parsing
4848
- **Pillow**: Image processing and optimization
4949
- **Kafka**: Event streaming via confluent-kafka and sentry-arroyo

DEVELOPMENT.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ Run `make help` to see all available commands.
4242

4343
## Requirements
4444

45-
- Python 3.11 or 3.12
45+
- Python 3.13
4646
- Make
4747

4848
## Style
4949

5050
- Prefer empty `__init__.py` files. See https://github.com/getsentry/launchpad/pull/56.
51-

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ RUN git clone https://github.com/apple/swift-corelibs-libdispatch.git && \
2626
make -j$(nproc) && \
2727
make install
2828

29-
# Use Python 3.12 slim image
30-
FROM python:3.12-slim-bookworm
29+
# Use Python 3.13 slim image
30+
FROM python:3.13-slim-bookworm
3131

3232
# Build argument to determine if this is a test build
3333
ARG TEST_BUILD=false

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ classifiers = [
2020
"Operating System :: MacOS",
2121
"Operating System :: POSIX :: Linux",
2222
"Programming Language :: Python :: 3",
23-
"Programming Language :: Python :: 3.11",
24-
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2524
"Topic :: Software Development :: Build Tools",
2625
"Topic :: System :: Archiving",
2726
]
28-
requires-python = ">=3.11"
27+
requires-python = ">=3.13"
2928

3029
[project.scripts]
3130
launchpad = "launchpad.cli:main"
@@ -39,7 +38,7 @@ where = ["src"]
3938

4039
[tool.ruff]
4140
line-length = 120
42-
target-version = "py311"
41+
target-version = "py313"
4342

4443
[tool.ruff.lint]
4544
# Enable pycodestyle (E), Pyflakes (F), and isort (I) by default

scripts/strip/Dockerfile.cctools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN ./configure --prefix=/out
5555
RUN make -j"$(nproc)" && make install-strip
5656

5757
# Verify the binary is working
58-
FROM --platform=linux/amd64 python:3.12-slim-bookworm AS verify
58+
FROM --platform=linux/amd64 python:3.13-slim-bookworm AS verify
5959
# Install runtime dependencies needed by the strip binaries
6060
RUN apt-get update && apt-get install -y --no-install-recommends \
6161
libbsd0 \

0 commit comments

Comments
 (0)