-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (83 loc) · 2.95 KB
/
Copy pathpyproject.toml
File metadata and controls
92 lines (83 loc) · 2.95 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[project]
name = "sora_sdk"
description = "WebRTC SFU Sora Python SDK"
readme = "README.md"
requires-python = ">= 3.12"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "Shiguredo Inc.", email = "contact+pypi@shiguredo.jp" }]
classifiers = [
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: C++",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = ["version"]
[project.urls]
Discord = "https://discord.gg/shiguredo"
Documentation = "https://sora-python-sdk.shiguredo.jp"
Source = "https://github.com/shiguredo/sora-python-sdk"
[dependency-groups]
dev = [
"nanobind==3.0.0",
{ include-group = "lint" },
{ include-group = "test" },
]
lint = ["ruff", "ty"]
test = [
"httpx",
"numpy",
"pyjwt",
"pytest",
"pytest-repeat",
"pytest-xdist",
]
[build-system]
requires = ["setuptools~=84.0", "wheel~=0.48"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
# テスト探索のルートディレクトリ
# https://docs.pytest.org/en/stable/reference/reference.html#confval-testpaths
testpaths = ["tests"]
# xfail マーカ付きのテストが期待に反して pass した場合をエラー扱いにする
# https://docs.pytest.org/en/stable/reference/reference.html#confval-xfail_strict
xfail_strict = true
[tool.ruff]
# 自動修正や lint が想定する Python の最小バージョン
# https://docs.astral.sh/ruff/settings/#target-version
target-version = "py312"
# 行長 (E501 と formatter の折り返し基準)
# https://docs.astral.sh/ruff/settings/#line-length
line-length = 100
[tool.ruff.lint]
# デフォルトの lint ルールに加えて有効化するルール群
# https://docs.astral.sh/ruff/settings/#lint_extend-select
extend-select = [
# isort: import の並び替えと整理
# https://docs.astral.sh/ruff/rules/#isort-i
"I",
# flake8-pytest-style: pytest の命名・fixture などのスタイル
# https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
"PT",
# pyupgrade: 古い Python 構文を target-version に合わせて更新
# https://docs.astral.sh/ruff/rules/#pyupgrade-up
"UP",
]
[tool.ty.src]
# 型チェック対象のファイル・ディレクトリ
# https://docs.astral.sh/ty/reference/configuration/#src-include
include = ["src", "tests", "sysroot_builder.py"]
[tool.uv]
# システム Python ではなく uv 管理下の Python のみを使用する
# https://docs.astral.sh/uv/reference/settings/#python-preference
python-preference = "only-managed"
[tool.uv.pip]
# uv pip コマンド向けの設定
# https://docs.astral.sh/uv/reference/settings/#pip
# 指定日時より新しくアップロードされた配布物を解決候補から除外する
# https://docs.astral.sh/uv/reference/settings/#pip-exclude-newer
exclude-newer = "7 days"