[build-system]
requires = ["maturin>=1.7,<2.0"]
build-backend = "maturin"

[project]
name = "laddu"
requires-python = ">=3.8"
classifiers = [
  "Programming Language :: Rust",
  "Programming Language :: Python :: Implementation :: CPython",
  "Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = ["version"]
dependencies = [
  "numpy",
  "docopt-ng",
  "loguru",
  "pandas",
  "uproot",
  "fastparquet",
]

[project.scripts]
amptools-to-laddu = "laddu:convert.run"

[project.optional-dependencies]
tests = ["pytest"]
docs = ["sphinx", "sphinx-rtd-theme"]

[tool.maturin]
python-source = "python"
features = ["pyo3/extension-module"]
cargo-extra-args = "--features extension-module"
