Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (58 loc) · 1.85 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (58 loc) · 1.85 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "dincli"
version = "0.1.0"
description = "Command-line interface for Decentralized Intelligence Network"
readme = "README.md"
requires-python = ">=3.12"
authors = [
{ name = "Umer Majeed", email = "umermjd11@gmail.com"},
{ name = "Abraham Nash", email = "abrahamnash@protonmail.com"}
]
license = { text = "MIT" }
keywords = ["blockchain", "federated-learning", "privacy", "cli", "fastapi", "DIN"]
dependencies = [
"typer>=0.9.0",
"click>=8.1.0",
"rich>=13.0.0,<15.0.0",
"requests>=2.31.0",
"eth-account>=0.13.0",
"python-dotenv>=1.0.0",
"web3>=6.0.0",
"platformdirs>=4.3.0",
"py-cid>=0.5.0",
"py-multibase>=1.0.0",
"cryptography>=42.0.0",
"PyNaCl>=1.5.0",
"eth-abi>=4.0.0",
"eth-utils>=2.0.0"
]
[project.optional-dependencies]
test = ["pytest>=8.0", "torch>=2.6"]
[project.scripts]
dincli = "dincli.main:app"
# ✅ Let setuptools auto-find packages (including 'dincli')
[tool.setuptools.packages.find]
where = ["."] # look in project root
include = ["dincli*"] # only include dincli and subpackages
[tool.setuptools.package-data]
dincli = ["config/*.json", "abis/*", "docker/worker/*", "services/*.py"]
[tool.pytest.ini_options]
markers = [
"integration: marks tests that require a live Hardhat node, IPFS daemon, and Docker",
]
# Advisory Python policy. Keep Ruff's standard exclusions as well.
[tool.ruff]
required-version = "==0.16.4"
target-version = "py312"
force-exclude = true
include = ["*.py", "*.pyi", "**/pyproject.toml", "**/ruff.toml", "**/.ruff.toml"]
extend-exclude = [
"foundry/lib", "foundry/out", "foundry/cache", "foundry/broadcast",
"foundry/deployments", "hardhat/artifacts", "hardhat/cache",
"hardhat/typechain-types", "tasks", "build", "*.egg-info",
]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"]