🚀 Add pipx installation support via pyproject.toml #64
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.
This PR adds support for installing and running
gpt-repository-loaderviapipx, enabling:🔧 Summary of Changes
gpt_repository_loader.pyinto a newgpt_repository_loader/package directory (required forpipxto correctly install)main()function and moved the guard to the end ofgpt_repository_loader.py(this enables the gpt-repository-loader CLI script)pyproject.tomlwith[project.scripts]entry forgpt-repository-loader = "gpt_repository_loader.gpt_repository_loader:main"[tool.setuptools]to restrict packaging togpt_repository_loader, otherwisepipxinterprets thetest_datafolder as a packagegpt_repository_loader.gpt_repository_loaderinstead of justgpt_repository_loader)🧪 Test Instructions
From the root of the project, you can now run:
pipx install --force --editable . gpt-repository-loader /path/to/any/git/repoTo test directly from GitHub:
If this PR is accepted, you can then install and access the cli tool:
Several other PRs currently address the lack of a setup.py or pyproject.toml file. To my knowledge this is the most minimal refactor possible to address this, and enable pipx install, which many users will prefer.
Closes #63