1[project] 2name = "ml_dtypes" 3version = "0.5.1" # Keep in sync with ml_dtypes/__init__.py:__version__ 4description = "" 5readme = "README.md" 6requires-python = ">=3.9" 7license = {file = "LICENSE"} 8authors = [{name = "ml_dtypes authors", email="ml_dtypes@google.com"}] 9classifiers = [ 10 "Programming Language :: Python :: 3", 11 "Programming Language :: Python :: 3 :: Only", 12 "License :: OSI Approved :: Apache Software License", 13 "Intended Audience :: Science/Research", 14] 15keywords = [] 16 17# pip dependencies of the project 18dependencies = [ 19 # Ensure numpy release supports Python version. 20 "numpy>=1.21", 21 "numpy>=1.21.2; python_version>='3.10'", 22 "numpy>=1.23.3; python_version>='3.11'", 23 "numpy>=1.26.0; python_version>='3.12'", 24 "numpy>=2.1.0; python_version>='3.13'", 25] 26 27[project.urls] 28homepage = "https://github.com/jax-ml/ml_dtypes" 29repository = "https://github.com/jax-ml/ml_dtypes" 30# Other: `documentation`, `changelog` 31 32[project.optional-dependencies] 33# Development deps (unittest, linting, formating,...) 34# Installed through `pip install .[dev]` 35dev = [ 36 "absl-py", 37 "pytest", 38 "pytest-xdist", 39 "pylint>=2.6.0", 40 "pyink", 41] 42 43[tool.pyink] 44# Formatting configuration to follow Google style-guide 45line-length = 80 46preview = true 47pyink-indentation = 2 48pyink-use-majority-quotes = true 49 50[build-system] 51requires = [ 52 # We build against the most recent supported NumPy 2.0 release; 53 # see https://github.com/numpy/numpy/issues/27265 54 "numpy~=2.0", 55 "setuptools~=75.7.0", 56] 57build-backend = "setuptools.build_meta" 58 59[tool.setuptools] 60packages = ["ml_dtypes"] 61include-package-data = false 62 63[tool.setuptools.package-data] 64ml_dtypes = ["py.typed"] 65"ml_dtypes.include" = ["*.h"] 66