-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
219 lines (208 loc) · 5.24 KB
/
Copy pathpyproject.toml
File metadata and controls
219 lines (208 loc) · 5.24 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
[project]
name = "specstar"
dynamic = ["version"]
description = "Spec-driven backend platform for FastAPI: REST + GraphQL + search + version history + admin UI from a single msgspec.Struct"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.11"
authors = [
{name = "HYChou0515", email = "hychou.svm@example.com"}
]
keywords = ["fastapi", "crud", "graphql", "versioning", "spec-driven", "rest", "api"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Framework :: FastAPI",
]
dependencies = [
"fastapi>=0.115,<1",
"jsonpatch>=1.33",
"jsonpointer>=3.0.0",
"more-itertools>=10.7.0",
"msgpack>=1.1.1",
"msgspec>=0.19.0",
"pydantic>=1.10.26,<3",
"python-multipart>=0.0.22",
"qqabc>=0.2.1",
"xxhash>=3.5.0",
]
[project.scripts]
specstar = "specstar.cli:main"
[project.optional-dependencies]
gen = [
"litellm>=1.50",
]
docs = [
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.0",
"mkdocs-material-extensions>=1.3.0",
"pymdown-extensions>=10.0.0",
"mkdocstrings[python]>=0.26.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-literate-nav>=0.6.0",
"mkdocs-section-index>=0.3.0",
"mkdocs-static-i18n>=1.2.0",
"specstar[s3]",
]
dev = [
"coverage>=7.9.2",
"git-cliff>=2.0.0",
"pytest>=8.4.1",
"pytest-rerunfailures>=15.0",
"ruff>=0.12.4",
"pytest-asyncio>=1.1.0",
"specstar[all,benchmark,docs]",
"pytest-markdown-docs>=0.9.1",
"ty>=0.0.33",
]
s3 = [
"boto3>=1.40.21",
]
cli = [
"datamodel-code-generator[http]>=0.35.0",
#"fstui>=0.1.1",
"httpx>=0.28.1",
"tenacity>=9.1.2",
"textual>=6.3.0",
"typer>=0.20.0",
]
magic = [
"python-magic>=0.4.27",
]
mq = [
"pika>=1.3.2",
]
graphql = [
"strawberry-graphql>=0.288.1",
]
postgresql = [
"psycopg2-binary>=2.9.10",
]
redis = [
"redis>=6.4.0",
]
sqlalchemy = [
"sqlalchemy>=2.0.46",
]
mysql = [
"pymysql>=1.1.2",
]
oracle = [
"oracledb>=3.4.2",
]
celery = [
"celery>=5.6.2",
]
benchmark = [
"pyyaml>=6.0",
"rich>=13.0",
"matplotlib>=3.8",
]
all = [
"specstar[s3,magic,mq,graphql,cli,postgresql,redis,sqlalchemy,mysql,oracle,celery]",
]
[project.urls]
Homepage = "https://github.com/HYChou0515/specstar"
Documentation = "https://HYChou0515.github.io/specstar/"
Repository = "https://github.com/HYChou0515/specstar.git"
Issues = "https://github.com/HYChou0515/specstar/issues"
[dependency-groups]
dev = [
"boto3-stubs[full]>=1.40.21",
"build>=1.2.2.post1",
"celery>=5.6.2",
"coverage>=7.9.2",
"faker>=37.5.3",
"fastapi[standard]>=0.116.1",
"furo>=2025.7.19",
"httpx>=0.28.1",
"ipykernel>=7.1.0",
"ipython>=9.4.0",
"linkify-it-py>=2.0.3",
"myst-parser>=4.0.1",
"oracledb>=3.4.2",
"pandas>=2.3.1",
"pika-stubs>=0.1.3",
"polars>=1.32.2",
"psycopg2-binary>=2.9.10",
"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
"pytest-retry>=1.7.0",
"redis>=6.4.0",
"ruff>=0.12.4",
"sphinx>=8.2.3",
"sphinx-autodoc-typehints>=3.2.0",
"sphinx-design>=0.6.1",
"sqlalchemy>=2.0.46",
"twine>=6.1.0",
"uvicorn>=0.35.0",
]
pytest = []
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "specstar/__init__.py"
[tool.hatch.build]
include = [
"specstar/",
]
[tool.hatch.build.targets.wheel]
packages = ["specstar"]
[tool.coverage.report]
exclude_also = [
'def __repr__',
'if self.debug:',
'if settings.DEBUG',
'raise AssertionError',
'raise NotImplementedError',
'if 0:',
'if __name__ == .__main__.:',
'if TYPE_CHECKING:',
'class .*\bProtocol\):',
'@(abc\.)?abstractmethod',
"except ImportError:",
"warnings.warn.*SpecStarWarning",
]
[tool.coverage.run]
branch = true
omit = [
"tests/*",
"benchmark/*",
]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
extend-select = [
"I",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"examples/*" = [
"F841", # Local variable is assigned to but never used
]
"tests/*" = [
"F841", # Local variable name is assigned to but never used
# we are testing the code, so we need to use `assert` in tests
"S101", # Use of assert detected.
# allow import inside function
"PLC0415", # `import` should be at the top-level of a file
# we use pickle and dill to serialize objects in tests
"S301", # `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
"S403", # `pickle`, `cPickle`, `dill`, and `shelve` modules are possibly insecure
# magic value comparison is allowed in tests
"PLR2004", # Magic value used in comparison, consider replacing `11` with a constant variable
]
"benchmark/*" = [
"PLC0415", # `import` should be at the top-level of a file
"PLR2004", # Magic value used in comparison
]