Skip to content

Commit 0c38016

Browse files
authored
deps: migrate to tests group (#345)
* deps: migrate to tests group Signed-off-by: nstarman <nstarman@users.noreply.github.com> * config: change to optional dependencies Signed-off-by: nstarman <nstarman@users.noreply.github.com> * config(tests): use mlx[cpu] See ml-explore/mlx#2402 Signed-off-by: nstarman <nstarman@users.noreply.github.com> --------- Signed-off-by: nstarman <nstarman@users.noreply.github.com>
1 parent fe61644 commit 0c38016

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
python-version: "3.11"
3535
test-script: |
36-
python -m pip install -r ${{ github.workspace }}/test/requirements.txt
36+
python -m pip install .[tests]
3737
python -m pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
3838
cp -r ${{ github.workspace }}/test ./test
3939
pytest

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Install dependencies
4343
run: |
4444
python -m pip install --upgrade pip
45-
python -m pip install -r test/requirements.txt
45+
python -m pip install .[tests]
4646
python -m pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
4747
4848
- name: Checks with pre-commit

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Now make your changes. Make sure to include additional tests if necessary.
2828
Next verify the tests all pass:
2929

3030
```bash
31-
pip install -r test/requirements.txt
31+
pip install -e .[tests]
3232
pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
3333
pytest
3434
```

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ dependencies = ["wadler_lindig>=0.1.3"]
2727
entry-points = {pytest11 = {jaxtyping = "jaxtyping._pytest_plugin"}}
2828

2929
[project.optional-dependencies]
30+
dev = [
31+
"pre-commit>=4.3.0",
32+
]
3033
docs = [
3134
"hippogriffe==0.2.0",
3235
"mkdocs==1.6.1",
@@ -36,6 +39,20 @@ docs = [
3639
"mkdocstrings[python]==0.28.3",
3740
"pymdown-extensions==10.14.3",
3841
]
42+
tests = [
43+
"beartype>=0.21.0",
44+
"cloudpickle>=3.1.1",
45+
"equinox>=0.13.1",
46+
"ipython>=8.37.0",
47+
"jax>=0.5.3",
48+
"mlx[cpu]>=0.29.1",
49+
"numpy<2",
50+
"pytest>=8.4.2",
51+
"pytest-asyncio>=1.2.0",
52+
"tensorflow>=2.18.1",
53+
"typeguard<3",
54+
]
55+
3956

4057
[build-system]
4158
requires = ["hatchling"]

test/requirements.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)