princeton-nlp / tree-of-thought-llm

[NeurIPS 2023] Tree of Thoughts: Deliberate Problem Solving with Large Language Models
https://arxiv.org/abs/2305.10601
MIT License
4.79k stars 445 forks source link

Add pyproject.toml to allow for local installation #28

Closed elliottower closed 1 year ago

elliottower commented 1 year ago

Just a quick PR adding a valid pyproject.toml which sources the requirements from requirements.txt, and allows users to do pip install -e . to install an editable version of the repository locally, and allowing the package to easily be distributed via pypi. I sourced the tags and author from what I could find on here but obviously that's not set in stone, just figured I'd help out. Seems this project is still very much domain specific and isn't quite as generic as a package could be for new use cases, but at least being able to easily install locally (and hopefully via pypi in the future) is a good start.

See https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html for more information (setuptools is what's used for most projects, poetry could also be useful but this is sort of the barebones simplest solution)

Fixes https://github.com/princeton-nlp/tree-of-thought-llm/issues/27

ysymyth commented 1 year ago

Hi @elliottower and @Adiumene thanks for your kind help and engagement!

Please check out https://github.com/princeton-nlp/tree-of-thought-llm/tree/pypi

Feel free to test run and let me know if there's any issues using https://github.com/princeton-nlp/tree-of-thought-llm/issues/27. I plan to merge pypi into master branch, and have a tot pip package by this week.

elliottower commented 1 year ago

Hi @elliottower and @Adiumene thanks for your kind help and engagement!

Please check out https://github.com/princeton-nlp/tree-of-thought-llm/tree/pypi

Feel free to test run and let me know if there's any issues using #27. I plan to merge pypi into master branch, and have a tot pip package by this week.

Great to hear, thanks! It looks good to me