Skip to content

Commit 0c191c4

Browse files
authored
build(py): Bump python version to 3.13 (#452)
1 parent 234423a commit 0c191c4

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.11
19+
python-version: 3.13
2020
- run: make build
2121
- uses: actions/upload-artifact@v4
2222
if: github.event_name != 'pull_request'
2323
with:
2424
name: ${{ github.sha }}
2525
path: dist/*
2626

27+
# see what files have been created
28+
- run: ls -lhrt dist
29+
2730
# validate that the built wheel is actually importable
2831
- run: python -m venv /tmp/venv
2932
- run: /tmp/venv/bin/pip install dist/*.whl

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- uses: actions/setup-python@v2
2626
with:
27-
python-version: 3.11
27+
python-version: 3.13
2828

2929
- run: make install format
3030

@@ -67,7 +67,7 @@ jobs:
6767
name: Checkout code
6868
- uses: actions/setup-python@v2
6969
with:
70-
python-version: 3.11
70+
python-version: 3.13
7171
- name: Install dependencies
7272
run: |
7373
python -m pip install --upgrade pip
@@ -84,7 +84,7 @@ jobs:
8484
name: Checkout code
8585
- uses: actions/setup-python@v2
8686
with:
87-
python-version: 3.11
87+
python-version: 3.13
8888
- name: Install dependencies
8989
run: |
9090
python -m pip install --upgrade pip

.github/workflows/schema-changes.yml

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

2929
- uses: actions/setup-python@v2
3030
with:
31-
python-version: 3.11
31+
python-version: 3.13
3232

3333
- run: make install
3434

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ view-rust-types:
1717
.PHONY: view-rust-types
1818

1919
build: python/sentry_kafka_schemas/schema_types
20-
pip install wheel
20+
pip install setuptools wheel
2121
python setup.py sdist bdist_wheel
2222
.PHONY: build
2323

python/requirements-test.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
black==24.3.0
2-
isort==5.13.2
3-
flake8==5.0.4
1+
black==25.9.0
2+
isort==7.0.0
3+
flake8==7.3.0
44
mypy==1.13.0
55
pytest>=7.2.0
66
pytest-xdist==3.2.0
77
fastjsonschema==2.16.3
88
jsonschema==4.17.3
9+
setuptools==80.9.0
910
types-protobuf

python/tests/test_codecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_protobuf_codec() -> None:
5454
resource="sentry_protos.sentry.v1.taskworker_pb2.TaskActivation"
5555
)
5656
serialized = codec.encode(activation)
57-
assert type(serialized) == bytes
57+
assert type(serialized) is bytes
5858

5959
rebuild = codec.decode(serialized)
6060
assert rebuild

0 commit comments

Comments
 (0)