Skip to content

Commit 82d9a7b

Browse files
committed
Convert pytest-selfie to uv
1 parent 4cb1495 commit 82d9a7b

File tree

3 files changed

+231
-17
lines changed

3 files changed

+231
-17
lines changed

python/pytest-selfie/pyproject.toml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1-
[tool.poetry]
1+
[project]
22
name = "pytest-selfie"
33
version = "0.1.0"
44
description = "A pytest plugin for selfie snapshot testing."
5-
authors = ["Selina Delgado <[email protected]>","Harvir Sahota <[email protected]>","Ned Twigg <[email protected]>","Edwin Ye <[email protected]>"]
6-
license = "Apache-2.0"
5+
authors = [
6+
{ name = "Edwin Ye", email = "[email protected]" },
7+
{ name = "Harvir Sahota", email = "[email protected]" },
8+
{ name = "Ned Twigg", email = "[email protected]" },
9+
{ name = "Selina Delgado", email = "[email protected]"}
10+
]
11+
license = { text = "Apache-2.0" }
712
readme = "README.md"
13+
requires-python = ">=3.9"
14+
dependencies = [
15+
"pytest>=8.0.0",
16+
"selfie-lib"
17+
]
818

9-
[tool.poetry.dependencies]
10-
python = "^3.9"
11-
pytest = "^8.0.0"
12-
selfie-lib = { path = "../selfie-lib", develop = true }
13-
14-
[tool.poetry.group.dev.dependencies]
15-
ruff = "^0.5.0"
16-
pyright = "^1.1.350"
17-
pytest = "^8.0.0"
19+
[tool.uv.sources]
20+
selfie-lib = { path = "../selfie-lib", editable = true }
1821

19-
[build-system]
20-
requires = ["poetry-core"]
21-
build-backend = "poetry.core.masonry.api"
22+
[dependency-groups]
23+
dev = [
24+
"pyright>=1.1.350",
25+
"pytest>=8.0.0",
26+
"ruff>=0.5.0",
27+
]
2228

23-
[tool.poetry.plugins.pytest11]
29+
[project.entry-points.pytest11]
2430
pytest_selfie = "pytest_selfie.plugin"
2531

2632
[tool.ruff.lint]
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
{"typeCheckingMode": "basic", "disableBytesTypePromotions": false}
1+
{
2+
"venvPath": ".",
3+
"venv": ".venv",
4+
"extraPaths": [
5+
"../selfie-lib"
6+
]
7+
}

0 commit comments

Comments
 (0)