| 
 | 1 | +[build-system]  | 
 | 2 | +requires = ["setuptools", "setuptools-scm"]  | 
 | 3 | +build-backend = "setuptools.build_meta"  | 
 | 4 | + | 
 | 5 | +[project]  | 
 | 6 | +name = "array-api-compat"  | 
 | 7 | +dynamic = ["version"]  | 
 | 8 | +description = "A wrapper around NumPy and other array libraries to make them compatible with the Array API standard"  | 
 | 9 | +readme = "README.md"  | 
 | 10 | +requires-python = ">=3.9"  | 
 | 11 | +license = "MIT"  | 
 | 12 | +authors = [{name = "Consortium for Python Data API Standards"}]  | 
 | 13 | +classifiers = [  | 
 | 14 | +    "Operating System :: OS Independent",  | 
 | 15 | +    "Programming Language :: Python :: 3",  | 
 | 16 | +    "Programming Language :: Python :: 3.9",  | 
 | 17 | +    "Programming Language :: Python :: 3.10",  | 
 | 18 | +    "Programming Language :: Python :: 3.11",  | 
 | 19 | +    "Programming Language :: Python :: 3.12",  | 
 | 20 | +    "Programming Language :: Python :: 3.13",  | 
 | 21 | +    "Topic :: Software Development :: Libraries :: Python Modules",  | 
 | 22 | +    "Typing :: Typed",  | 
 | 23 | +]  | 
 | 24 | + | 
 | 25 | +[project.optional-dependencies]  | 
 | 26 | +cupy = ["cupy"]  | 
 | 27 | +dask = ["dask"]  | 
 | 28 | +jax = ["jax"]  | 
 | 29 | +numpy = ["numpy"]  | 
 | 30 | +pytorch = ["torch"]  | 
 | 31 | +sparse = ["sparse>=0.15.1"]  | 
 | 32 | +docs = [  | 
 | 33 | +    "furo",  | 
 | 34 | +    "linkify-it-py",  | 
 | 35 | +    "myst-parser",  | 
 | 36 | +    "sphinx",  | 
 | 37 | +    "sphinx-copybutton",  | 
 | 38 | +    "sphinx-autobuild",  | 
 | 39 | +]  | 
 | 40 | +dev = [  | 
 | 41 | +    "array-api-strict",  | 
 | 42 | +    "dask[array]",  | 
 | 43 | +    "jax[cpu]",  | 
 | 44 | +    "numpy",  | 
 | 45 | +    "pytest",  | 
 | 46 | +    "torch",  | 
 | 47 | +    "sparse>=0.15.1",  | 
 | 48 | +    "ndonnx; python_version>=\"3.10\""  | 
 | 49 | +]  | 
 | 50 | + | 
 | 51 | +[project.urls]  | 
 | 52 | +homepage = "https://data-apis.org/array-api-compat/"  | 
 | 53 | +repository = "https://github.com/data-apis/array-api-compat/"  | 
 | 54 | + | 
 | 55 | +[tool.setuptools.dynamic]  | 
 | 56 | +version = {attr = "array_api_compat.__version__"}  | 
 | 57 | + | 
 | 58 | +[tool.setuptools.packages.find]  | 
 | 59 | +include = ["array_api_compat*"]  | 
 | 60 | +namespaces = false  | 
 | 61 | + | 
 | 62 | +[toolint]  | 
 | 63 | +preview = true  | 
 | 64 | +select = [  | 
 | 65 | +# Defaults  | 
 | 66 | +"E4", "E7", "E9", "F",  | 
 | 67 | +# Undefined export  | 
 | 68 | +"F822",  | 
 | 69 | +# Useless import alias  | 
 | 70 | +"PLC0414"  | 
 | 71 | +]  | 
 | 72 | + | 
 | 73 | +ignore = [  | 
 | 74 | +  # Module import not at top of file  | 
 | 75 | +  "E402",  | 
 | 76 | +  # Do not use bare `except`  | 
 | 77 | +  "E722"  | 
 | 78 | +]  | 
 | 79 | + | 
 | 80 | +[tool.ruff.lint]  | 
 | 81 | +preview = true  | 
 | 82 | +select = [  | 
 | 83 | +# Defaults  | 
 | 84 | +"E4", "E7", "E9", "F",  | 
 | 85 | +# Undefined export  | 
 | 86 | +"F822",  | 
 | 87 | +# Useless import alias  | 
 | 88 | +"PLC0414"  | 
 | 89 | +]  | 
 | 90 | + | 
 | 91 | +ignore = [  | 
 | 92 | +  # Module import not at top of file  | 
 | 93 | +  "E402",  | 
 | 94 | +  # Do not use bare `except`  | 
 | 95 | +  "E722"  | 
 | 96 | +]  | 
0 commit comments