Skip to content

Commit 9ede335

Browse files
committed
migrate to uv
1 parent 3605eeb commit 9ede335

File tree

3 files changed

+2082
-16
lines changed

3 files changed

+2082
-16
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.9

pyproject.toml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
1-
[tool.poetry]
1+
[project]
22
name = "pyspark_huggingface"
33
version = "1.0.0"
44
description = "A DataSource for reading and writing HuggingFace Datasets in Spark"
5-
authors = ["allisonwang-db <[email protected]>", "lhoestq <[email protected]>"]
6-
license = "Apache License 2.0"
5+
authors = [
6+
{name = "allisonwang-db", email = "[email protected]"},
7+
{name = "lhoestq", email = "[email protected]"},
8+
]
9+
license = {text = "Apache License 2.0"}
710
readme = "README.md"
8-
packages = [
9-
{ include = "pyspark_huggingface" },
11+
requires-python = ">=3.9"
12+
dependencies = [
13+
"datasets>=3.2",
14+
"huggingface-hub>=0.27.1",
1015
]
1116

12-
[tool.poetry.dependencies]
13-
python = "^3.9"
14-
datasets = "^3.2"
15-
huggingface_hub = "^0.27.1"
16-
17-
[tool.poetry.group.dev.dependencies]
18-
pytest = "^8.0.0"
19-
pytest-dotenv = "^0.5.2"
20-
pytest-mock = "^3.14.0"
17+
[dependency-groups]
18+
dev = [
19+
"ipykernel>=6.29.5",
20+
"pyspark>=4.0.0",
21+
"pytest>=8.0.0",
22+
"pytest-dotenv>=0.5.2",
23+
"pytest-mock>=3.14.0",
24+
]
2125

2226
[build-system]
23-
requires = ["poetry-core"]
24-
build-backend = "poetry.core.masonry.api"
27+
requires = ["uv_build>=0.7.3,<0.8"]
28+
build-backend = "uv_build"
29+
30+
[tool.uv.build-backend]
31+
module-root = ""

0 commit comments

Comments
 (0)