Skip to content

Commit ea96a84

Browse files
committed
Add requirements-dev.txt and add array-api-strict to it
1 parent 08c7d92 commit ea96a84

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Dependencies
1616
run: |
1717
python -m pip install --upgrade pip
18-
python -m pip install pytest numpy torch dask[array] jax[cpu]
18+
python -m pip install -r requirements-dev.txt
1919
2020
- name: Run Tests
2121
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
array-api-strict
2+
dask[array]
3+
jax[cpu]
4+
numpy
5+
pytest
6+
torch

0 commit comments

Comments
 (0)