-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (74 loc) · 1.63 KB
/
pyproject.toml
File metadata and controls
83 lines (74 loc) · 1.63 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "lancompute"
license = {text = "MIT"}
dynamic = ["version"]
description = "LANCompute - Distributed computing platform for LLM workloads"
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"psutil>=5.9.0",
"requests>=2.28.0",
"pyyaml>=6.0",
"zeroconf>=0.100.0",
"click>=8.0.0",
]
[project.scripts]
lancompute = "lancompute.controller.cli:main"
lancompute-worker = "lancompute.controller.worker_daemon:main"
lancompute-benchmark = "lancompute.benchmark.cli:main"
[project.optional-dependencies]
controller = [
"psycopg2-binary>=2.9.0",
]
benchmark = [
"psycopg2-binary>=2.9.0",
"torch>=2.0.0",
"torchvision>=0.15.0",
]
ml = [
"numpy>=1.21.0",
"torch>=1.12.0",
"tensorflow>=2.9.0",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"pytest-asyncio>=0.21.0",
]
dev = [
"black>=22.0.0",
"flake8>=5.0.0",
"mypy>=1.0.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--cov=src",
"--cov-report=term-missing",
"--cov-report=html",
"-v"
]
markers = [
"integration: integration tests that may hit external/local services",
]
[tool.black]
line-length = 88
target-version = ['py38']
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
[tool.flake8]
exclude = [".venv", "build", "dist"]
[tool.ruff]
exclude = [".venv"]
[tool.hatch.version]
path = "src/lancompute/__init__.py"