Skip to content

Commit 6774bf5

Browse files
committed
refactor: switch to optional dependencies
Signed-off-by: nstarman <[email protected]>
1 parent 90bf627 commit 6774bf5

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
test-script: |
1717
cp -r ${{ github.workspace }}/test ./test
1818
cp ${{ github.workspace }}/pyproject.toml ./pyproject.toml
19-
python -m pip install -r ./test/requirements.txt
19+
python -m pip install '.[tests]'
2020
python -m test
2121
pypi-token: ${{ secrets.pypi_token }}
2222
github-user: patrick-kidger

.github/workflows/run_tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install -r ./test/requirements.txt
27-
26+
python -m pip install '.[tests]'
2827
2928
- name: Checks with pre-commit
3029
uses: pre-commit/[email protected]

CONTRIBUTING.md

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

3636
```bash
37-
pip install -r test/requirements.txt
37+
pip install -e '.[tests]'
3838
pytest
3939
```
4040

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ docs = [
4040
"mkdocstrings-python==1.16.8",
4141
"pymdown-extensions==10.14.3"
4242
]
43+
tests = [
44+
"beartype>=0.22.5",
45+
"jaxlib>=0.6.2",
46+
"optax>=0.2.6",
47+
"pytest>=9.0.1",
48+
"scipy>=1.15.3",
49+
"tqdm>=4.67.1",
50+
]
4351

4452
[tool.hatch.build]
4553
include = ["diffrax/*"]

test/requirements.txt

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

0 commit comments

Comments
 (0)