|
1 | 1 | [build-system] |
2 | | -requires = ["setuptools", "setuptools-scm"] |
| 2 | +requires = ["setuptools"] |
3 | 3 | build-backend = "setuptools.build_meta" |
4 | 4 |
|
5 | 5 | [project] |
6 | 6 | name = "array-api-compat" |
7 | | -dynamic = ["version"] |
| 7 | +version = "1.13.0" |
8 | 8 | description = "A wrapper around NumPy and other array libraries to make them compatible with the Array API standard" |
9 | 9 | readme = "README.md" |
10 | 10 | requires-python = ">=3.10" |
@@ -54,13 +54,64 @@ dev = [ |
54 | 54 | homepage = "https://data-apis.org/array-api-compat/" |
55 | 55 | repository = "https://github.com/data-apis/array-api-compat/" |
56 | 56 |
|
57 | | -[tool.setuptools.dynamic] |
58 | | -version = {attr = "array_api_compat.__version__"} |
59 | | - |
60 | 57 | [tool.setuptools.packages.find] |
61 | 58 | include = ["array_api_compat*"] |
62 | 59 | namespaces = false |
63 | 60 |
|
| 61 | + |
| 62 | +# Pixi |
| 63 | + |
| 64 | +[tool.pixi.workspace] |
| 65 | +channels = ["https://prefix.dev/conda-forge"] |
| 66 | +platforms = ["linux-64", "osx-arm64", "win-64"] |
| 67 | +preview = ["pixi-build"] |
| 68 | + |
| 69 | +### array-api-compat package definition ### |
| 70 | + |
| 71 | +[tool.pixi.package.build.backend] |
| 72 | +name = "pixi-build-python" |
| 73 | +version = "*" |
| 74 | + |
| 75 | +[tool.pixi.package.host-dependencies] |
| 76 | +setuptools = "*" |
| 77 | + |
| 78 | +### workspace environments ### |
| 79 | + |
| 80 | +[tool.pixi.environments] |
| 81 | +docs = ["docs"] |
| 82 | +tests = ["tests"] |
| 83 | + |
| 84 | +### default feature definition ### |
| 85 | + |
| 86 | +[tool.pixi.dev] |
| 87 | +# this pulls in array-api-compat's host dependencies |
| 88 | +array-api-compat.path = "." |
| 89 | + |
| 90 | +[tool.pixi.dependencies] |
| 91 | +array-api-compat.path = "." |
| 92 | + |
| 93 | +### non-default feature definitions ### |
| 94 | + |
| 95 | +[tool.pixi.feature.tests.dependencies] |
| 96 | +pytest = "*" |
| 97 | +array-api-strict = "*" |
| 98 | +numpy = "*" |
| 99 | + |
| 100 | +[tool.pixi.feature.tests.tasks] |
| 101 | +tests = { cmd = "pytest -v", description = "Run tests" } |
| 102 | + |
| 103 | +[tool.pixi.feature.docs.dependencies] |
| 104 | +furo = "*" |
| 105 | +linkify-it-py = "*" |
| 106 | +myst-parser = "*" |
| 107 | +sphinx = "*" |
| 108 | +sphinx-copybutton = "*" |
| 109 | +sphinx-autobuild = "*" |
| 110 | + |
| 111 | +[tool.pixi.feature.docs.tasks] |
| 112 | +docs = { cmd = "make html", cwd = "docs", description = "Build docs" } |
| 113 | + |
| 114 | + |
64 | 115 | [tool.ruff.lint] |
65 | 116 | preview = true |
66 | 117 | select = [ |
|
0 commit comments