Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (121 loc) · 3.09 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (121 loc) · 3.09 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "py-ipfs-lite"
version = "0.1.1"
description = "Embeddable lightweight IPFS peer for Python (bootstrap phase)"
readme = "README.md"
requires-python = ">=3.10,<4.0"
license = { text = "Apache-2.0 OR MIT" }
authors = [
{ name = "py-ipfs-lite contributors" }
]
keywords = ["ipfs", "libp2p", "bitswap", "unixfs", "ipld"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"fastapi>=0.137.1",
"httpx>=0.28.1",
"hypercorn>=0.18.0",
"libp2p",
"prometheus-client>=0.25.0",
"python-dotenv>=1.2.2",
"python-multipart>=0.0.32",
]
[project.scripts]
py-ipfs-lite = "py_ipfs_lite.cli:main"
[project.optional-dependencies]
dev = [
"build>=1.2.1",
"mypy>=1.10.0",
"pre-commit>=3.7.0",
"ruff>=0.6.0",
"mdformat>=0.7.22",
"mdformat-gfm",
]
test = [
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"pytest-trio>=0.8.0",
"pytest-xdist>=3.5.0",
]
docs = [
"mkdocs-material>=9.0.0",
"mkdocstrings[python]>=0.24.0",
]
[project.urls]
Homepage = "https://github.com/IPFS-Meshkit/py-ipfs-lite"
Repository = "https://github.com/IPFS-Meshkit/py-ipfs-lite"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["py_ipfs_lite*"]
exclude = ["tests*", "examples*", "interop*"]
[tool.setuptools.package-data]
py_ipfs_lite = ["py.typed"]
[tool.pytest.ini_options]
addopts = "-v"
testpaths = ["tests"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "W", "D"]
ignore = [
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D200",
"D203",
"D204",
"D205",
"D212",
"D400",
"D401",
"D412",
"D415",
]
[tool.ruff.lint.isort]
known-first-party = ["py_ipfs_lite", "tests"]
[tool.ruff.lint.per-file-ignores]
"examples/*" = ["E501", "D", "E402", "F"]
"tests/*" = ["E501", "D", "E402", "F841"]
"interop/*" = ["E501", "D", "E402"]
"py_ipfs_lite/api/*" = ["E501", "E402"]
"py_ipfs_lite/api/routers/*" = ["E501", "E402"]
"py_ipfs_lite/peer/*" = ["E501", "E402", "D200"]
"py_ipfs_lite/versioning.py" = ["E501"]
"py_ipfs_lite/cli.py" = ["E402"]
"py_ipfs_lite/interfaces.py" = ["E402"]
"py_ipfs_lite/ipns.py" = ["E402"]
"py_ipfs_lite/dag_utils.py" = ["E722"]
"manual_test.py" = ["E501", "D", "E402", "F841"]
"test_cli_interop.py" = ["E501", "D", "E402", "F841"]
[tool.mypy]
python_version = "3.10"
warn_unused_configs = true
check_untyped_defs = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_any_generics = true
incremental = false
ignore_missing_imports = true
[tool.uv.workspace]
members = []
[tool.uv.sources]
libp2p = { git = "https://github.com/sumanjeet0012/py-libp2p.git", rev = "metrics" }