Skip to content

Commit 9264e4d

Browse files
committed
Make dev dependencies optional
1 parent 2b8b006 commit 9264e4d

File tree

4 files changed

+483
-8
lines changed

4 files changed

+483
-8
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
2020
2121
- name: Run tests
22-
run: uv run pytest tests/test_annotate_transform.py
22+
run: uv run --extra test pytest tests/test_annotate_transform.py

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ uv sync
2020

2121
## Running tests
2222
```bash
23-
uv run tests/test_annotate_transform.py
23+
uv run --extra test pytest tests/test_annotate_transform.py
2424
```
2525

2626
## Usage

pyproject.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "annotate_transform"
7-
version = "0.1.0"
8-
requires-python = ">=3.11,<3.12"
7+
version = "0.1.1"
8+
requires-python = ">=3.11"
99
dependencies = [
1010
"jax>=0.4.33,<0.4.38",
11-
"pytest>=8.3.4",
1211
]
1312

13+
[project.optional-dependencies]
14+
build = [
15+
"build>=1.2.2.post1",
16+
"twine>=6.1.0",
17+
]
18+
test = ["pytest>=8.3.4"]
19+
1420
[tool.setuptools]
1521
packages = ["annotate_transform"]

0 commit comments

Comments
 (0)