Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ jobs:
- name: Setup uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
python-version: 3.13
python-version: 3.14
- run: uv sync --locked
- run: uv run --locked pre-commit run --all-files
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "pypy3.11"
permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.13
3.14
7 changes: 0 additions & 7 deletions .snyk

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ pip install "upcloud-api @ git+https://github.com/UpCloudLtd/upcloud-python-api.

### Supported Python versions

- Python 3.10
- Python 3.11
- Python 3.12
- Python 3.13
- Python 3.14
- PyPy3

**Python 2 has been deprecated**
Expand Down Expand Up @@ -230,11 +230,11 @@ Run the unit tests:
uv run pytest
```

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

```bash
for python in 3.10 3.11 3.12 3.13 pypy3.11; do
for python in 3.11 3.12 3.13 3.14 pypy3.11; do
uv run --locked --python "$python" pytest
done
```
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "upcloud-api"
version = "2.9.0"
description = "UpCloud API Client"
readme = "README.md"
requires-python = ">=3.10,<4"
requires-python = ">=3.11,<4"
license = "MIT"
license-files = ["LICENSE.txt"]
dependencies = ["requests"]
Expand Down Expand Up @@ -56,7 +56,7 @@ addopts = [
testpaths = ["test"]

[tool.ruff]
target-version = "py310"
target-version = "py311"
exclude = [
".git",
"ENV",
Expand Down
4 changes: 2 additions & 2 deletions upcloud_api/server_group.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from enum import Enum
from enum import StrEnum

from upcloud_api.upcloud_resource import UpCloudResource


class ServerGroupAffinityPolicy(str, Enum):
class ServerGroupAffinityPolicy(StrEnum):
"""
Enum representation of affinity policy for a server group
"""
Expand Down
74 changes: 1 addition & 73 deletions uv.lock

Large diffs are not rendered by default.

Loading