From 69f5e0893aa2c4e13a59861f396d52ebfe7d996d Mon Sep 17 00:00:00 2001 From: at384 Date: Sat, 28 Feb 2026 22:56:26 +0100 Subject: [PATCH] Add pyproject.toml for pip/uv installability Add a minimal pyproject.toml so the repository can be installed as a proper Python package via pip or uv: pip install git+https://github.com/VectifyAI/PageIndex.git uv pip install git+https://github.com/VectifyAI/PageIndex.git Uses hatchling as the build backend with flexible dependency lower bounds. The existing requirements.txt with pinned versions is kept for backward compatibility. Closes #103 --- pyproject.toml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..2d635c35 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,41 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "pageindex" +version = "0.1.0" +description = "Vectorless, reasoning-based RAG via hierarchical document tree indexing" +readme = "README.md" +license = {text = "MIT"} +requires-python = ">=3.9" +authors = [ + {name = "Vectify AI"}, +] +keywords = ["rag", "retrieval", "llm", "document-indexing", "tree-structure", "pageindex"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "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", + "Topic :: Scientific/Engineering :: Artificial Intelligence", +] +dependencies = [ + "openai>=1.0.0", + "tiktoken", + "PyPDF2", + "pymupdf", + "python-dotenv", + "pyyaml", +] + +[project.urls] +Homepage = "https://vectify.ai/pageindex" +Documentation = "https://docs.pageindex.ai" +Repository = "https://github.com/VectifyAI/PageIndex" +Changelog = "https://github.com/VectifyAI/PageIndex/blob/main/CHANGELOG.md"