diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-01-26 07:54:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 07:54:13 +0100 |
commit | feb83c168b0a57ecd8c511aa654209c5f40da30e (patch) | |
tree | 84ef9a576064b7480e339426d9966b17a3102cad /setup.py | |
parent | Merge pull request #1510 from hlohaus/sort (diff) | |
download | gpt4free-feb83c168b0a57ecd8c511aa654209c5f40da30e.tar gpt4free-feb83c168b0a57ecd8c511aa654209c5f40da30e.tar.gz gpt4free-feb83c168b0a57ecd8c511aa654209c5f40da30e.tar.bz2 gpt4free-feb83c168b0a57ecd8c511aa654209c5f40da30e.tar.lz gpt4free-feb83c168b0a57ecd8c511aa654209c5f40da30e.tar.xz gpt4free-feb83c168b0a57ecd8c511aa654209c5f40da30e.tar.zst gpt4free-feb83c168b0a57ecd8c511aa654209c5f40da30e.zip |
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 75 |
1 files changed, 51 insertions, 24 deletions
@@ -8,33 +8,59 @@ here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as fh: long_description = '\n' + fh.read() -install_requires = [ +INSTALL_REQUIRE = [ "requests", - "pycryptodome", - "curl_cffi>=0.5.10", "aiohttp", - "certifi", - "browser_cookie3", - "typing-extensions", - "PyExecJS", - "duckduckgo-search", - "nest_asyncio", - "werkzeug", - "loguru", - "pillow", - "platformdirs", - "fastapi", - "uvicorn", - "flask", - "py-arkose-generator", - "asyncstdlib", - "async-property", - "undetected-chromedriver", - "brotli", - "beautifulsoup4", - "setuptools", ] +EXTRA_REQUIRE = { + 'all': [ + "curl_cffi>=0.5.10", + "certifi", + "async-property", # openai + "py-arkose-generator", # openai + "browser_cookie3", # get_cookies + "PyExecJS", # GptForLove + "duckduckgo-search", # internet.search + "beautifulsoup4", # internet.search and bing.create_images + "brotli", # openai + "platformdirs", # webdriver + "undetected-chromedriver", # webdriver + "setuptools", # webdriver + "aiohttp_socks" # proxy + "pillow", # image + "cairosvg", # svg image + "werkzeug", "flask", # gui + "loguru", "fastapi", + "uvicorn", "nest_asyncio", # api + ], + "image": [ + "pillow", + "cairosvg", + "beautifulsoup4" + ], + "webdriver": [ + "platformdirs", + "undetected-chromedriver", + "setuptools" + ], + "openai": [ + "async-property", + "py-arkose-generator", + "brotli" + ], + "api": [ + "loguru", "fastapi", + "uvicorn", "nest_asyncio" + ], + "gui": [ + "werkzeug", "flask", + "beautifulsoup4", "pillow", + "duckduckgo-search", + "browser_cookie3" + ] +} + DESCRIPTION = ( 'The official gpt4free repository | various collection of powerful language models' ) @@ -53,7 +79,8 @@ setup( 'g4f': ['g4f/interference/*', 'g4f/gui/client/*', 'g4f/gui/server/*', 'g4f/Provider/npm/*'] }, include_package_data=True, - install_requires=install_requires, + install_requires=INSTALL_REQUIRE, + extras_require=EXTRA_REQUIRE, entry_points={ 'console_scripts': ['g4f=g4f.cli:main'], }, |