|
|
|
|
|
|
|
from setuptools import find_packages, setup |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VERSION = {} |
|
with open("promptwizard/version.py", "r") as version_file: |
|
exec(version_file.read(), VERSION) |
|
|
|
INSTALL_REQUIRES = [ |
|
"datasets", |
|
"tiktoken", |
|
"nltk", |
|
"openai", |
|
"azure-identity", |
|
"azure-search-documents", |
|
"pyyaml~=6.0.1", |
|
"pyarrow==15.0.2", |
|
"llama-index==0.11.10", |
|
"llama-index-core==0.11.10", |
|
"python-dotenv" |
|
] |
|
QUANLITY_REQUIRES = [ |
|
"black==21.4b0", |
|
"flake8>=3.8.3", |
|
"isort>=5.5.4", |
|
"pre-commit", |
|
"pytest", |
|
"pytest-xdist", |
|
] |
|
DEV_REQUIRES = INSTALL_REQUIRES + QUANLITY_REQUIRES |
|
|
|
setup( |
|
name="promptwizard", |
|
version=VERSION["VERSION"], |
|
author="The PromptWizard team", |
|
author_email="[email protected]", |
|
description="Optimize Prompt", |
|
long_description=open("README.md", encoding="utf8").read(), |
|
long_description_content_type="text/markdown", |
|
keywords="PromptWizard", |
|
license="MIT License", |
|
url="https://github.com/microsoft/PromptWizard", |
|
classifiers=[ |
|
"Intended Audience :: Science/Research", |
|
"Development Status :: 3 - Alpha", |
|
"Programming Language :: Python :: 3", |
|
"Topic :: Scientific/Engineering :: Artificial Intelligence", |
|
], |
|
package_dir={"": "."}, |
|
packages=find_packages("."), |
|
extras_require={ |
|
"dev": DEV_REQUIRES, |
|
"quality": QUANLITY_REQUIRES, |
|
}, |
|
install_requires=INSTALL_REQUIRES, |
|
include_package_data=True, |
|
python_requires=">=3.8.0", |
|
zip_safe=False, |
|
) |
|
|