Skip to content

Commit 8378946

Browse files
committed
Merge branch 'migrate-uv' into faster-ci-with-uv
2 parents 000b696 + 058fdeb commit 8378946

2 files changed

Lines changed: 47 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ venv.bak/
130130
lightning_logs/
131131
MNIST
132132
.DS_Store
133+
uv.lock

pyproject.toml

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,33 @@
22
license_file = "LICENSE"
33
description-file = "README.md"
44

5-
[build-system]
6-
requires = [
7-
"setuptools",
8-
"wheel",
5+
[project]
6+
name="litserve"
7+
dynamic = ["version"]
8+
readme = "README.md"
9+
requires-python = ">=3.9"
10+
11+
dependencies = [
12+
"fastapi>=0.100",
13+
"pyzmq>=22.0.0",
14+
"uvicorn[standard]>=0.29.0",
915
]
1016

1117

18+
19+
[build-system]
20+
requires = ["hatchling"]
21+
build-backend = "hatchling.build"
22+
23+
24+
[tool.hatch.version]
25+
path = "src/litserve/__about__.py"
26+
pattern = "__version__ = \"(?P<version>.+)\""
27+
28+
[tool.hatch.metadata]
29+
allow-direct-references = true
30+
31+
1232
[tool.check-manifest]
1333
ignore = [
1434
"*.yml",
@@ -128,3 +148,25 @@ convention = "google"
128148
[tool.ruff.lint.mccabe]
129149
# Unlike Flake8, default to a complexity level of 10.
130150
max-complexity = 10
151+
152+
[dependency-groups]
153+
dev = [
154+
"asgi-lifespan>=2.1.0",
155+
"coverage[toml]>=7.5.3",
156+
"fastmcp>=2.9.2 ; python_full_version >= '3.10'",
157+
"httpx>=0.27.0",
158+
"lightning>2.0.0",
159+
"mypy==1.16.0",
160+
"numpy<3.0",
161+
"openai>=1.12.0",
162+
"pillow>=11.3.0",
163+
"psutil>=7.0.0",
164+
"pytest>=8.0",
165+
"pytest-asyncio>=1.0.0",
166+
"pytest-cov>=6.2.1",
167+
"pytest-retry>=1.6.3",
168+
"python-multipart>=0.0.20",
169+
"requests>=2.32.4",
170+
"torch>2.0.0",
171+
"transformers>=4.53.0",
172+
]

0 commit comments

Comments
 (0)