forked from one-covenant/crusades
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (77 loc) · 2.18 KB
/
pyproject.toml
File metadata and controls
88 lines (77 loc) · 2.18 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "templar-crusades"
dynamic = ["version"]
description = "Bittensor subnet for training code efficiency crusades"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.12"
authors = [
{ name = "Templar Team" }
]
keywords = ["bittensor", "machine-learning", "optimization", "crusades"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"bittensor>=9.10.1,<9.11.0", # Pin to 9.10.x like templar for localnet compatibility
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"sqlalchemy>=2.0.0",
"aiosqlite>=0.19.0",
"docker>=7.0.0",
"fastapi>=0.109.0",
"uvicorn>=0.27.0",
"httpx>=0.26.0",
"boto3>=1.34.0",
"torch>=2.0.0",
"transformers>=4.36.0",
"accelerate>=0.20.0",
"datasets>=2.14.0",
"rich>=13.0.0",
"substrate-interface>=1.8.1",
"basilica-sdk>=0.13.0", # Basilica cloud GPU SDK
"python-logging-loki>=0.3.1",
"aiohttp>=3.13.2",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"mypy>=1.8.0",
"ruff>=0.1.0",
]
[project.scripts]
crusades-validator = "neurons.validator:main"
crusades-miner = "neurons.miner:main"
crusades-api = "crusades.api.server:main"
tplr = "crusades.tui.app:main"
[tool.setuptools.dynamic]
version = {attr = "crusades.__version__"}
[tool.setuptools.packages.find]
where = ["src", "."]
include = ["crusades*", "neurons*"]
[tool.setuptools.package-dir]
crusades = "src/crusades"
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
ignore = ["E501", "N812"] # N812: Allow `import torch.nn.functional as F` (PyTorch convention)
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]