From fd9210b60d7ab1fe64257b8c192672fbb4585d24 Mon Sep 17 00:00:00 2001 From: Gregor Sturm Date: Mon, 4 Aug 2025 16:55:01 +0200 Subject: [PATCH] Add pyproject.toml for building python wheel --- pyproject.toml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..60a06452 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +[build-system] +requires = ["maturin>=1.0,<2.0"] +build-backend = "maturin" + +[project] +name = "air" +description = "A formatter for R code" +readme = "README.md" +license = { text = "MIT" } +authors = [ + { name = "Posit Software, PBC" } +] +keywords = ["formatter", "parser", "r", "rstats"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Rust", + "Topic :: Software Development :: Quality Assurance", +] +requires-python = ">=3.8" +dynamic = ["version"] + +[project.urls] +Homepage = "https://github.com/posit-dev/air" +Repository = "https://github.com/posit-dev/air" +Documentation = "https://github.com/posit-dev/air" +Issues = "https://github.com/posit-dev/air/issues" + +[tool.maturin] +manifest-path = "crates/air/Cargo.toml" +bindings = "bin" +strip = true # Strip debug symbols for smaller wheels