Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/array-api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ jobs:
python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
python -m pip install pytest-xdist
- name: Install array-api-compat
run: python -m pip install ${GITHUB_WORKSPACE}/array-api-compat
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now needed because of the src layout, while previously tests were picking up the sources from the source tree, correct?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the non-obvious implicit source tree import


- name: Dump pip environment
run: pip freeze

Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ homepage = "https://data-apis.org/array-api-compat/"
repository = "https://github.com/data-apis/array-api-compat/"

[tool.setuptools.dynamic]
version = {attr = "array_api_compat.__version__"}
version = { attr = "array_api_compat.__version__" }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this will go in gh-373?


[tool.setuptools]
package-dir = {"" = "src"}

[tool.setuptools.packages.find]
include = ["array_api_compat*"]
where = ["src"]
namespaces = false

[tool.ruff.lint]
Expand Down Expand Up @@ -92,7 +95,7 @@ ignore = [


[tool.mypy]
files = ["array_api_compat"]
files = ["src/array_api_compat"]
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_untyped_defs = false # TODO
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion vendor_test/vendored/_compat
Loading