Skip to content

Commit b171583

Browse files
committed
Add requirements-dev.txt
1 parent 4112eaf commit b171583

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
else
2929
PIP_EXTRA='numpy==1.26.*'
3030
fi
31-
python -m pip install pytest torch dask[array] jax[cpu] $PIP_EXTRA
31+
python -m pip install -r requirements-dev.txt $PIP_EXTRA
3232
3333
- name: Run Tests
3434
run: |

docs/dev/special-considerations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ be a small library that packages can either vendor or add as a dependency to
66
implement array API support. Consequently, certain design considerations
77
should be taken into account:
88

9+
(no-dependencies)=
910
- **No Hard Dependencies.** Although array-api-compat "depends" on NumPy, CuPy,
1011
PyTorch, etc., it does not hard depend on them. These libraries are not
1112
imported unless either an array object is passed to

docs/dev/tests.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ the array API standard. There are also array-api-compat specific tests in
66
[`tests/`](https://github.com/data-apis/array-api-compat/tree/main/tests).
77
These tests should be limited to things that are not tested by the test suite,
88
e.g., tests for [helper functions](../helper-functions.rst) or for behavior
9-
that is not strictly required by the standard.
9+
that is not strictly required by the standard. To run these tests, install the
10+
dependencies from `requirements-dev.txt` (array-api-compat has [no hard
11+
runtime dependencies](no-dependencies)).
1012

1113
array-api-tests is run against all supported libraries are tested on CI
1214
([except for JAX](jax-support)). This is achieved by a [reusable GitHub Actions

requirements-dev.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dask[array]
2+
jax[cpu]
3+
numpy
4+
pytest
5+
torch

0 commit comments

Comments
 (0)