Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (58 loc) 路 2.02 KB
/
Copy pathpyproject.toml
File metadata and controls
66 lines (58 loc) 路 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[project]
name = "unikraft-cloud"
version = "0.2.0"
description = "Official Python SDK for the Unikraft Cloud Platform API"
readme = "README.md"
license = "BSD-3-Clause"
license-files = ["LICENSE.md"]
authors = [{ name = "Unikraft GmbH" }]
requires-python = ">=3.10"
keywords = ["unikraft", "unikraft-cloud", "kraftcloud", "sdk", "unikernel", "cloud", "api"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.27",
"pydantic>=2.7",
# The sandbox plugin's plumbing, generated from its specification by plugin-sdk.
"unikraft-cloud-plugin-sandbox-api>=1.1.0,<2",
]
[project.urls]
Homepage = "https://unikraft.com"
Repository = "https://github.com/unikraft-cloud/python-sdk"
Issues = "https://github.com/unikraft-cloud/python-sdk/issues"
[build-system]
requires = ["uv_build>=0.8.0,<0.9.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"mypy>=1.11",
"pytest>=8.3",
"pytest-asyncio>=0.24",
"ruff>=0.6",
]
# Matches the JavaScript SDK's Biome configuration, so the two SDKs read alike.
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["B", "E", "F", "I", "N", "RUF", "SIM", "UP", "W"]
# The generated plumbing mirrors the OpenAPI specification rather than the house
# style: operation signatures are as wide as the spec makes them, the module
# layout is the generator's, and the docstrings are the specification's prose
# verbatim -- including the odd non-ASCII character, which is not ours to edit.
[tool.ruff.lint.per-file-ignores]
"src/unikraft_cloud/api/**" = ["E501", "N803", "N815", "RUF001", "RUF012"]
[tool.mypy]
# The plugin understands populate_by_name, so a generated model can be built
# with either the Python field name or the wire name.
plugins = ["pydantic.mypy"]
files = ["src", "tests", "examples"]
python_version = "3.10"
strict = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"