-
-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (122 loc) · 4.03 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (122 loc) · 4.03 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
[build-system]
requires = ["maturin>=1.9,<2.0"]
build-backend = "maturin"
[project]
name = "django-bolt"
version = "0.10.0-alpha2"
description = "High-performance API framework for Django with Rust-powered endpoints delivering 60k+ RPS"
readme = "README.md"
requires-python = ">=3.12"
license = { text = "MIT" }
authors = [
{ name = "Farhan", email = "farhanalirazaazeemi@gmail.com" }
]
keywords = ["django", "api", "rust", "performance", "actix", "pyo3", "async"]
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",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Rust",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = [
"Django>=4.2",
"click>=8.1",
"httpx>=0.28.1",
"msgspec>=0.20",
"pyjwt>=2.10.1",
"typing-extensions>=4.5.0", # required openapi docs
"pyyaml>=6.0", # required openapi docs
"uvloop>=0.22.1; sys_platform != 'win32'"
]
[project.optional-dependencies]
yaml = ["pyyaml>=6.0"]
nanodjango = ["nanodjango>=0.16"]
# MCP add-on: a separately-published, version-coupled package. `mcp` is the
# canonical extra; `bolt-mcp` is an alias so `pip install django-bolt[bolt-mcp]`
# also works. tool.uv.sources keeps local dev on the workspace copy.
mcp = ["bolt-mcp>=0.1.0"]
bolt-mcp = ["bolt-mcp>=0.1.0"]
[project.urls]
Homepage = "https://github.com/dj-bolt/django-bolt"
Repository = "https://github.com/dj-bolt/django-bolt"
Documentation = "https://bolt.farhana.li/"
"Bug Tracker" = "https://github.com/dj-bolt/django-bolt/issues"
[project.scripts]
django-bolt = "django_bolt.cli:main"
[project.entry-points."nanodjango"]
django-bolt = "django_bolt.nanodjango"
[tool.maturin]
features = ["pyo3/extension-module"]
module-name = "django_bolt._core"
python-source = "python"
[tool.uv.workspace]
members = ["python/bolt-mcp"]
[tool.uv.sources]
bolt-mcp = { workspace = true }
[dependency-groups]
dev = [
"pytest-asyncio>=1.2.0",
"pytest-django>=4.9.0",
"pydantic>=2",
"pyyaml>=5.2",
"maturin>=1.9.6",
"django==6.0.7",
"ruff>=0.8",
"vulture>=2.11", #for dead code detection
"nanodjango>=0.16",
"openapi-spec-validator>=0.8.5",
"zstandard>=0.25.0", # for testing with zstd-compressed payloads
"cryptography>=42", # RSA/EC keypair generation for asymmetric JWT tests
"bolt-mcp", # workspace member: MCP server support (editable)
]
docs = [
"zensical",
]
[tool.ruff]
src = ["python"]
target-version = "py312"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"S110", # try-except-pass detected (no silent exception passing)
"PLC0415", # import-outside-top-level (no imports inside functions/classes)
"FIX002", # line contains TODO - must be resolved before merge
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults (needed for Depends)
"ARG001", # unused function argument (common in handlers)
"ARG002", # unused method argument
]
[tool.ruff.lint.isort]
known-first-party = ["django_bolt"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ty.environment]
python-version = "3.12"
extra-paths = ["python"]