-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (88 loc) · 2.31 KB
/
Copy pathpyproject.toml
File metadata and controls
103 lines (88 loc) · 2.31 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
93
94
95
96
97
98
99
100
101
102
103
[build-system]
requires = ["hatchling>=1.25.0"]
build-backend = "hatchling.build"
[project]
name = "livepeer-gateway"
version = "1.0.0"
description = "Official Python SDK for submitting AI and video jobs to the Livepeer network"
readme = { file = "README", content-type = "text/markdown" }
license = { file = "LICENSE" }
authors = [
{ name = "Livepeer Foundation" },
]
requires-python = ">=3.12"
keywords = ["livepeer", "video", "ai", "sdk"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Video",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"grpcio>=1.76.0",
"protobuf>=6.31.1",
"aiohttp>=3.9.0",
"av>=11.0.0",
]
[project.urls]
Homepage = "https://livepeer.org"
Repository = "https://github.com/livepeer/livepeer-python-gateway"
Issues = "https://github.com/livepeer/livepeer-python-gateway/issues"
Changelog = "https://github.com/livepeer/livepeer-python-gateway/blob/main/CHANGELOG.md"
[project.scripts]
generate-lp-rpc = "livepeer_gateway.codegen:main"
[project.optional-dependencies]
dev = [
"grpcio-tools>=1.76.0",
]
examples = [
"numpy>=2.2.6",
"opencv-python-headless>=4.13.0.90",
]
[dependency-groups]
lint = [
"ruff==0.16.1",
]
test = [
"pytest>=8.3.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/livepeer_gateway"]
[tool.hatch.build.targets.sdist]
include = [
"/CHANGELOG.md",
"/LICENSE",
"/README",
"/examples",
"/pyproject.toml",
"/src",
"/tests",
"/uv.lock",
]
[tool.pytest.ini_options]
minversion = "8.3"
addopts = ["-ra", "--strict-markers"]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
[tool.coverage.run]
branch = true
source = ["livepeer_gateway"]
[tool.coverage.report]
show_missing = true
[tool.ruff]
required-version = "==0.16.1"
target-version = "py312"
[tool.ruff.lint]
# Baseline defaults from #56; CI scopes UP diagnostics to changed lines.
select = ["E4", "E7", "E9", "F", "UP"]
[tool.ruff.lint.per-file-ignores]
"src/livepeer_gateway/lp_rpc_pb2_grpc.py" = ["F401"]