From 59487556ced47c114eea787e46aab652538ddc52 Mon Sep 17 00:00:00 2001 From: TensorTemplar Date: Wed, 5 Nov 2025 13:58:12 +0200 Subject: [PATCH] Add pyproject for rustbpe standalone --- rustbpe/pyproject.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 rustbpe/pyproject.toml diff --git a/rustbpe/pyproject.toml b/rustbpe/pyproject.toml new file mode 100644 index 0000000..e502132 --- /dev/null +++ b/rustbpe/pyproject.toml @@ -0,0 +1,18 @@ +[project] +name = "rustbpe" +version = "0.1.0" +description = "Rust BPE tokenizer from nanochat as standalone package" +readme = "README.md" +requires-python = ">=3.10" +license = {text = "MIT"} +dependencies = [] + +[build-system] +requires = ["maturin>=1.0"] +build-backend = "maturin" + +[tool.maturin] +module-name = "rustbpe" +bindings = "pyo3" +python-source = "." +features = ["pyo3/extension-module"]