Alina Lozovskaya commited on
Commit
d279988
1 Parent(s): 9469eae

Replace Poetry with uv

Browse files
Files changed (1) hide show
  1. backend/pyproject.toml +49 -25
backend/pyproject.toml CHANGED
@@ -1,30 +1,54 @@
1
- [tool.poetry]
2
  name = "llm-leaderboard-backend"
3
  version = "0.1.0"
4
  description = "Backend for the Open LLM Leaderboard"
5
- authors = ["Your Name <your.email@example.com>"]
6
-
7
- [tool.poetry.dependencies]
8
- python = "^3.9"
9
- fastapi = "^0.104.1"
10
- uvicorn = {extras = ["standard"], version = "^0.24.0"}
11
- numpy = "1.24.3"
12
- pandas = "^2.0.0"
13
- datasets = "^2.0.0"
14
- pyarrow = "^14.0.1"
15
- python-multipart = "^0.0.6"
16
- huggingface-hub = "^0.19.0"
17
- transformers = "^4.35.0"
18
- safetensors = "^0.4.0"
19
- aiofiles = "^24.1.0"
20
- fastapi-cache2 = "^0.2.1"
21
-
22
- [tool.poetry.group.dev.dependencies]
23
- pytest = "^7.4.0"
24
- black = "^23.7.0"
25
- isort = "^5.12.0"
26
- flake8 = "^6.1.0"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
  [build-system]
29
- requires = ["poetry-core>=1.0.0"]
30
- build-backend = "poetry.core.masonry.api"
 
 
 
 
1
+ [project]
2
  name = "llm-leaderboard-backend"
3
  version = "0.1.0"
4
  description = "Backend for the Open LLM Leaderboard"
5
+ requires-python = "==3.12.1"
6
+
7
+ dependencies = [
8
+ "fastapi >=0.115.6",
9
+ "uvicorn >=0.34.0",
10
+ "numpy >=2.2.0",
11
+ "pandas >=2.2.3",
12
+ "datasets >=3.2.0",
13
+ "pyarrow >=18.1.0",
14
+ "python-multipart >=0.0.20",
15
+ "huggingface-hub >=0.27.0",
16
+ "transformers >=4.47.0",
17
+ "safetensors >=0.4.5",
18
+ "aiofiles >=24.1.0",
19
+ "fastapi-cache2 >=0.2.1",
20
+ ]
21
+
22
+ [project.optional-dependencies]
23
+ dev = [
24
+ "pytest >=8.3.4",
25
+ "black >=24.10.0",
26
+ "isort >=5.13.2",
27
+ "flake8 >=7.1.1",
28
+ ]
29
+
30
+ [tool.ruff]
31
+ line-length = 120
32
+ target-version = "py312"
33
+ include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
34
+ ignore=["I","EM","FBT","TRY003","S101","D101","D102","D103","D104","D105","G004","D107","FA102"]
35
+ fixable=["ALL"]
36
+ select=["ALL"]
37
+
38
+ [tool.ruff.lint]
39
+ select = ["E", "F"]
40
+ fixable = ["ALL"]
41
+ ignore = ["E501"] # line too long (black is taking care of this)
42
+
43
+ [tool.isort]
44
+ profile = "black"
45
+
46
+ [tool.black]
47
+ line-length = 119
48
 
49
  [build-system]
50
+ requires = ["hatchling>=1.0.0"]
51
+ build-backend = "hatchling.build"
52
+
53
+ [tool.hatch.build.targets.wheel]
54
+ packages = ["backend"]