Skip to content

Commit 375337f

Browse files
committed
testing: Migrate gl-testing from poetry to uv
`uv` gives us more control, and fewer failure opportunities, so let's use it.
1 parent f41160c commit 375337f

File tree

2 files changed

+24
-44
lines changed

2 files changed

+24
-44
lines changed

libs/gl-testing/pyproject.toml

Lines changed: 22 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,29 @@
1-
[tool.poetry]
1+
[project]
22
name = "gltesting"
33
version = "0.3.0"
44
description = ""
5-
authors = ["Christian Decker <[email protected]>"]
6-
license = "MIT"
7-
8-
packages = [
9-
{ include = "gltesting" },
5+
readme = "README.md"
6+
requires-python = ">=3.8"
7+
dependencies = [
8+
"cln-version-manager",
9+
"flaky>=3.8.1",
10+
"gl-client",
11+
"grpcio-tools>=1.66",
12+
"grpcio>=1.66.0",
13+
"httpx>=0.27.2",
14+
"purerpc>=0.8.0",
15+
"pyln-testing==24.8.1",
16+
"pytest-timeout>=2.3.1",
17+
"pytest-xdist>=3.6.1",
18+
"rich>=13.9.3",
19+
"sh>=1.14.3",
20+
"sonora>=0.2.3",
1021
]
1122

12-
[tool.poetry.dependencies]
13-
python = "^3.8"
14-
cryptography = ">=36.0.1"
15-
ephemeral-port-reserve = "^1.1.4"
16-
sh = "^1.14.2"
17-
pytest-timeout = "^2.1.0"
18-
pytest-xdist = "^2.5.0"
19-
pytest = "^7.1.2"
20-
pytest-cov = "^3.0.0"
21-
rich = "^12.5.1"
22-
pyln-testing = "==24.02"
23-
pyln-client = "==24.02"
24-
pyln-grpc-proto = "^0.1"
25-
protobuf = ">=3"
26-
flaky = "^3"
27-
anyio = "^3.7.1"
28-
aiostream = "^0.5.1"
29-
purerpc = { version = "^0.8.0", extras = ["grpc"] }
30-
pytest-sugar = "^0.9.7"
31-
32-
# The dependency below is defined in this repository
33-
# PyPi cannot support relative paths.
34-
#
35-
# Users, who `pip install` this library retrieve the sources from `PyPi`.
36-
# using the version numbers listed below
37-
#
38-
# Contributors should use `poetry install` in the project root
39-
# to insure the installation is editable from local sources.
40-
gl-client = "0.3.0"
41-
cln-version-manager = "^0.1.0"
4223

43-
[tool.poetry.group.dev.dependencies]
44-
mypy = "^1"
45-
typed-ast = "^1.5.4"
46-
cln-version-manager = { path="../cln-version-manager", develop=true }
47-
grpcio-tools = "^1.62.1"
24+
[tool.uv]
25+
package = true
4826

49-
[build-system]
50-
requires = ["poetry-core>=1.0.0"]
51-
build-backend = "poetry.core.masonry.api"
27+
[tool.uv.sources]
28+
gl-client = { path = "../gl-client-py" }
29+
cln-version-manager = { path = "../cln-version-manager" }

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ pillow = "^9.5.0"
3939
[tool.poetry.group.lsp_ide.dependencies]
4040
python-lsp-server = "^1.10.0"
4141

42+
[tool.uv.workspace]
43+
members = ["libs/gl-testing"]

0 commit comments

Comments
 (0)