Skip to content

Commit fa4e9a9

Browse files
chore(deps): drop python 3.10, add 3.14, uv lock (#196)
* feat(python): support Python 3.14 * chore(deps): refresh locked dependencies * fix(server-group): use standard string enum * chore(snyk): remove obsolete .snyk file
1 parent 78d7328 commit fa4e9a9

7 files changed

Lines changed: 11 additions & 90 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
- name: Setup uv
1717
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
1818
with:
19-
python-version: 3.13
19+
python-version: 3.14
2020
- run: uv sync --locked
2121
- run: uv run --locked pre-commit run --all-files
2222
test:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
2626
python-version:
27-
- "3.10"
2827
- "3.11"
2928
- "3.12"
3029
- "3.13"
30+
- "3.14"
3131
- "pypy3.11"
3232
permissions:
3333
contents: read

‎.python-version‎

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

‎.snyk‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ pip install "upcloud-api @ git+https://github.com/UpCloudLtd/upcloud-python-api.
2525

2626
### Supported Python versions
2727

28-
- Python 3.10
2928
- Python 3.11
3029
- Python 3.12
3130
- Python 3.13
31+
- Python 3.14
3232
- PyPy3
3333

3434
**Python 2 has been deprecated**
@@ -230,11 +230,11 @@ Run the unit tests:
230230
uv run pytest
231231
```
232232

233-
CI runs the suite with CPython 3.10 through 3.13 and PyPy 3.11. To reproduce
233+
CI runs the suite with CPython 3.11 through 3.14 and PyPy 3.11. To reproduce
234234
the full interpreter matrix locally:
235235

236236
```bash
237-
for python in 3.10 3.11 3.12 3.13 pypy3.11; do
237+
for python in 3.11 3.12 3.13 3.14 pypy3.11; do
238238
uv run --locked --python "$python" pytest
239239
done
240240
```

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "upcloud-api"
33
version = "2.9.0"
44
description = "UpCloud API Client"
55
readme = "README.md"
6-
requires-python = ">=3.10,<4"
6+
requires-python = ">=3.11,<4"
77
license = "MIT"
88
license-files = ["LICENSE.txt"]
99
dependencies = ["requests"]
@@ -56,7 +56,7 @@ addopts = [
5656
testpaths = ["test"]
5757

5858
[tool.ruff]
59-
target-version = "py310"
59+
target-version = "py311"
6060
exclude = [
6161
".git",
6262
"ENV",

‎upcloud_api/server_group.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from enum import Enum
1+
from enum import StrEnum
22

33
from upcloud_api.upcloud_resource import UpCloudResource
44

55

6-
class ServerGroupAffinityPolicy(str, Enum):
6+
class ServerGroupAffinityPolicy(StrEnum):
77
"""
88
Enum representation of affinity policy for a server group
99
"""

‎uv.lock‎

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

0 commit comments

Comments
 (0)