Add pyproject.toml for pip/uv installability#126
Open
zamal-db wants to merge 1 commit intoVectifyAI:mainfrom
Open
Add pyproject.toml for pip/uv installability#126zamal-db wants to merge 1 commit intoVectifyAI:mainfrom
zamal-db wants to merge 1 commit intoVectifyAI:mainfrom
Conversation
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 VectifyAI#103
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a minimal
pyproject.tomlat the repository root so that PageIndex can be installed as a proper Python package:or with uv:
It can also be declared as a dependency in downstream projects:
Changes
pyproject.toml— uses hatchling as the build backend with the same dependencies already listed inrequirements.txt, but with flexible lower bounds (standard practice for library packages).requirements.txtwith pinned versions is kept for backward compatibility.Tested
pip install -e .— ✅ editable install succeedspip install .— ✅ non-editable install succeedsimport pageindex— ✅ all public APIs importableconfig.yamlincluded as package data — ✅ConfigLoaderworkspip show pageindex— ✅ metadata correctCloses #103