Skip to content

Commit f4f58ec

Browse files
authored
feat: deprecate py3.8 (#602)
* feat: deprecate py3.8 Signed-off-by: Keming <[email protected]> * bump version Signed-off-by: Keming <[email protected]> --------- Signed-off-by: Keming <[email protected]>
1 parent d0f9cb7 commit f4f58ec

File tree

11 files changed

+84
-91
lines changed

11 files changed

+84
-91
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
fetch-depth: 0
4444
- uses: actions/setup-python@v5
4545
with:
46-
python-version: 3.8
46+
python-version: 3.9
4747
- name: Install dependencies
4848
run: make install
4949
- name: install node for pyright
@@ -61,11 +61,9 @@ jobs:
6161
strategy:
6262
max-parallel: 18
6363
matrix:
64-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
64+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
6565
os: [ubuntu-latest , macos-13, macos-14]
6666
exclude:
67-
- python-version: "3.8"
68-
os: "macos-14"
6967
- python-version: "3.9"
7068
os: "macos-14"
7169

.github/workflows/page.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
fetch-depth: 0
3535
- name: Setup Pages
3636
uses: actions/configure-pages@v5
37-
- name: Set up Python 3.8
37+
- name: Set up Python
3838
uses: actions/setup-python@v5
3939
with:
40-
python-version: 3.8
40+
python-version: 3.9
4141
- name: Install dependencies
4242
run: |
4343
python -m pip install --upgrade pip

Cargo.lock

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

examples/rerank/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from typing import List
1717

1818
from msgspec import Struct
19-
from sentence_transformers import CrossEncoder
19+
from sentence_transformers import CrossEncoder # type: ignore
2020

2121
from mosec import Server, Worker
2222
from mosec.mixin import TypedMsgPackMixin

examples/server_side_event/client.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,21 @@
1515
import httpx
1616
from httpx_sse import connect_sse
1717

18-
with httpx.Client() as client, connect_sse(
19-
client, "POST", "http://127.0.0.1:8000/inference", json={"text": "mosec"}
20-
) as event_source:
18+
with (
19+
httpx.Client() as client,
20+
connect_sse(
21+
client, "POST", "http://127.0.0.1:8000/inference", json={"text": "mosec"}
22+
) as event_source,
23+
):
2124
for sse in event_source.iter_sse():
2225
print(f"Event({sse.event}): {sse.data}")
2326

2427
# error handling
25-
with httpx.Client() as client, connect_sse(
26-
client, "POST", "http://127.0.0.1:8000/inference", json={"error": "mosec"}
27-
) as event_source:
28+
with (
29+
httpx.Client() as client,
30+
connect_sse(
31+
client, "POST", "http://127.0.0.1:8000/inference", json={"error": "mosec"}
32+
) as event_source,
33+
):
2834
for sse in event_source.iter_sse():
2935
print(f"Event({sse.event}): {sse.data}")

0 commit comments

Comments
 (0)