Skip to content

Commit 0d15d23

Browse files
authored
MAINT: refactor directories (data-apis#428)
1 parent 745a369 commit 0d15d23

36 files changed

Lines changed: 10 additions & 4 deletions

.github/workflows/array-api-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ jobs:
7878
python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
7979
python -m pip install pytest-xdist
8080
81+
- name: Install array-api-compat
82+
run: python -m pip install ${GITHUB_WORKSPACE}/array-api-compat
83+
8184
- name: Dump pip environment
8285
run: pip freeze
8386

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,13 @@ homepage = "https://data-apis.org/array-api-compat/"
5656
repository = "https://github.com/data-apis/array-api-compat/"
5757

5858
[tool.setuptools.dynamic]
59-
version = {attr = "array_api_compat.__version__"}
59+
version = { attr = "array_api_compat.__version__" }
60+
61+
[tool.setuptools]
62+
package-dir = {"" = "src"}
6063

6164
[tool.setuptools.packages.find]
62-
include = ["array_api_compat*"]
65+
where = ["src"]
6366
namespaces = false
6467

6568
[tool.ruff.lint]
@@ -92,7 +95,7 @@ ignore = [
9295

9396

9497
[tool.mypy]
95-
files = ["array_api_compat"]
98+
files = ["src/array_api_compat"]
9699
disallow_incomplete_defs = true
97100
disallow_untyped_decorators = true
98101
disallow_untyped_defs = false # TODO

0 commit comments

Comments
 (0)