Skip to content

Commit f5daed7

Browse files
authored
fix: Move dev/test dependencies to optional extras (#18)
1 parent 79c4f0e commit f5daed7

File tree

3 files changed

+45
-42
lines changed

3 files changed

+45
-42
lines changed

Makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,32 @@
22
build:
33
uv run maturin build
44

5-
install:
5+
sync:
66
uv sync --all-extras
7+
8+
install: sync
79
uv run maturin develop
810

911
# Test targets
10-
test:
12+
test: sync
1113
uv run pytest
1214

1315
# Utility targets
1416
etcd-clear:
1517
etcdctl del "" --from-key=true
1618

1719
# Python formatting and linting
18-
fmt-py:
20+
fmt-py: sync
1921
uv run ruff format tests/ etcd_client.pyi
2022

21-
lint-py:
23+
lint-py: sync
2224
uv run ruff check tests/ etcd_client.pyi
2325

24-
fix-py:
26+
fix-py: sync
2527
uv run ruff format tests/ etcd_client.pyi
2628
uv run ruff check --fix tests/ etcd_client.pyi
2729

28-
typecheck:
30+
typecheck: sync
2931
uv run mypy tests/ etcd_client.pyi
3032

3133
# Rust formatting and linting
@@ -49,4 +51,4 @@ fix: fix-py fix-rust
4951
check: lint
5052
@echo "All checks passed!"
5153

52-
.PHONY: build install test etcd-clear fmt-py lint-py fix-py typecheck fmt-rust lint-rust fix-rust fmt lint fix check
54+
.PHONY: build sync install test etcd-clear fmt-py lint-py fix-py typecheck fmt-rust lint-rust fix-rust fmt lint fix check

pyproject.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,21 @@ classifiers = [
2121
"Programming Language :: Python :: 3.13",
2222
"Programming Language :: Python :: 3.14",
2323
]
24-
dependencies = [
25-
"maturin>=1.11.2",
26-
"pytest>=9.0.2,<10",
27-
"pytest-asyncio>=1.3.0,<2",
28-
"trafaret>=2.1,<3",
29-
"testcontainers>=4.13.3,<5",
30-
]
24+
dependencies = []
3125

3226
[project.urls]
3327
homepage = "https://github.com/lablup/etcd-client-py"
3428
repository = "https://github.com/lablup/etcd-client-py"
3529

3630
[project.optional-dependencies]
31+
test = [
32+
"pytest>=9.0.2,<10",
33+
"pytest-asyncio>=1.3.0,<2",
34+
"trafaret>=2.1,<3",
35+
"testcontainers>=4.13.3,<5",
36+
]
3737
dev = [
38+
"maturin>=1.11,<2.0",
3839
"ruff>=0.14.10",
3940
"mypy>=1.19.1",
4041
]

uv.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)