From 006a2aef57383372fe2ec539ddb3e52cee271ef2 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Tue, 2 Aug 2022 20:23:05 +0300 Subject: [PATCH] Create setup.py to setup Khoj python application --- setup.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..768dea56 --- /dev/null +++ b/setup.py @@ -0,0 +1,52 @@ +#!/usr/bin/env python + +from setuptools import find_packages, setup + +setup( + name='khoj', + version='1.0', + description="A natural language search engine for your personal notes, transactions and images", + long_description=open('README.md', "r", encoding="utf-8").read(), + long_description_content_type="text/markdown", + author='Debanjum Singh Solanky, Saba Imran', + author_email='debanjum@gmail.com', + url='https://github.com/debanjum/khoj', + license="GPLv3", + keywords="search semantic-search NLP sentence-transformer org-mode markdown beancount images", + python_requires=">=3.5, <4", + packages=find_packages( + where=".", + exclude=["tests*"], + include=["src*"] + ), + install_requires=[ + "numpy == 1.22.4", + "torch == 1.11.0", + "torchvision == 0.12.0", + "transformers == 4.21.0", + "sentence-transformers == 2.1.0", + "openai == 0.20.0", + "huggingface_hub == 0.8.1", + "pydantic == 1.9.1", + "fastapi == 0.77.1", + "uvicorn == 0.17.6", + "jinja2 == 3.1.2", + "pyyaml == 6.0", + "pytest == 7.1.2", + "pillow == 8.4.0", + "aiofiles == 0.8.0", + "dateparser == 1.1.1", + ], + entry_points={"console_scripts": ["khoj = src.main:run"]}, + classifiers=[ + "Development Status :: 4 - Beta", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + ] +)