Skip to content

Commit 85c35e6

Browse files
authored
chore(deps): update uv lock and python version (#1579)
Currently there are [40](https://github.com/DiamondLightSource/blueapi/security/dependabot) dependency security alert. [python-copier#issue-339](DiamondLightSource/python-copier-template#339) should be prioritised to enable renovate. Changes in the PR: 1. Change python-version to `3.14` 2. Update all `uv.lock` file 3. Add `httpx2` to dev dependences for [Deprecation Warning](https://github.com/Kludex/starlette/blob/main/starlette/testclient.py#L46) 4. Upgrade to latest ophyd-async Which has the changed to use [ADWriterFactory](https://blueskyproject.io/ophyd-async/main/explanations/decisions/0016-ad-writer-factory.html) 5. Change HTTP_422_UNPROCESSABLE_ENTITY to [HTTP_422_UNPROCESSABLE_CONTENT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/422) as the previous is deprecated
1 parent 40c1cdc commit 85c35e6

11 files changed

Lines changed: 3412 additions & 2155 deletions

File tree

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11
1+
3.14

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ dev = [
7777
"tiled[minimal-server]>=0.2.4", # For system-test of dls.py
7878
"respx",
7979
"pytest-xdist[psutil]",
80+
"httpx2>=2.5.0"
8081
]
8182

8283
[project.scripts]

src/blueapi/service/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def submit_task(
297297

298298
LOGGER.info("Error submitting task: %s - %s", task_request, e)
299299
raise HTTPException(
300-
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
300+
status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
301301
detail=errors,
302302
) from e
303303

tests/system_tests/devices.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
{
22
"devices": [
33
{
4-
"name": "det",
4+
"name": "stage",
55
"protocols": [
6-
{
7-
"name": "Flyable",
8-
"types": []
9-
},
106
{
117
"name": "Readable",
128
"types": []
@@ -15,27 +11,23 @@
1511
"name": "Stageable",
1612
"types": []
1713
},
18-
{
19-
"name": "WritesExternalAssets",
20-
"types": []
21-
},
2214
{
2315
"name": "Configurable",
2416
"types": []
2517
},
26-
{
27-
"name": "Triggerable",
28-
"types": []
29-
},
3018
{
3119
"name": "Device",
3220
"types": []
3321
}
3422
]
3523
},
3624
{
37-
"name": "stage",
25+
"name": "det",
3826
"protocols": [
27+
{
28+
"name": "Flyable",
29+
"types": []
30+
},
3931
{
4032
"name": "Readable",
4133
"types": []
@@ -44,10 +36,18 @@
4436
"name": "Stageable",
4537
"types": []
4638
},
39+
{
40+
"name": "WritesExternalAssets",
41+
"types": []
42+
},
4743
{
4844
"name": "Configurable",
4945
"types": []
5046
},
47+
{
48+
"name": "Triggerable",
49+
"types": []
50+
},
5151
{
5252
"name": "Device",
5353
"types": []

0 commit comments

Comments
 (0)