/
setup.py
125 строк · 3.3 Кб
1import codecs2import os3
4from setuptools import find_packages, setup5
6here = os.path.abspath(os.path.dirname(__file__))7
8with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as fh:9long_description = '\n' + fh.read()10
11INSTALL_REQUIRE = [12"requests",13"aiohttp",14]
15
16EXTRA_REQUIRE = {17'all': [18"curl_cffi>=0.6.0b9",19"certifi",20"async-property", # openai21"py-arkose-generator", # openai22"browser_cookie3", # get_cookies23"PyExecJS", # GptForLove24"duckduckgo-search>=4.4.3",# internet.search25"beautifulsoup4", # internet.search and bing.create_images26"brotli", # openai27"platformdirs", # webdriver28"undetected-chromedriver>=3.5.5", # webdriver29"setuptools", # webdriver30"aiohttp_socks", # proxy31"pillow", # image32"cairosvg", # svg image33"werkzeug", "flask", # gui34"loguru", "fastapi",35"uvicorn", "nest_asyncio", # api36],37"image": [38"pillow",39"cairosvg",40"beautifulsoup4"41],42"webdriver": [43"platformdirs",44"undetected-chromedriver",45"setuptools"46],47"openai": [48"async-property",49"py-arkose-generator",50"brotli"51],52"api": [53"loguru", "fastapi",54"uvicorn", "nest_asyncio"55],56"gui": [57"werkzeug", "flask",58"beautifulsoup4", "pillow",59"duckduckgo-search>=4.4.3",60"browser_cookie3"61]62}
63
64DESCRIPTION = (65'The official gpt4free repository | various collection of powerful language models'66)
67
68# Setting up
69setup(70name='g4f',71version=os.environ.get("G4F_VERSION"),72author='Tekky',73author_email='<support@g4f.ai>',74description=DESCRIPTION,75long_description_content_type='text/markdown',76long_description=long_description,77packages=find_packages(),78package_data={79'g4f': ['g4f/interference/*', 'g4f/gui/client/*', 'g4f/gui/server/*', 'g4f/Provider/npm/*']80},81include_package_data=True,82install_requires=INSTALL_REQUIRE,83extras_require=EXTRA_REQUIRE,84entry_points={85'console_scripts': ['g4f=g4f.cli:main'],86},87url='https://github.com/xtekky/gpt4free', # Link to your GitHub repository88project_urls={89'Source Code': 'https://github.com/xtekky/gpt4free', # GitHub link90'Bug Tracker': 'https://github.com/xtekky/gpt4free/issues', # Link to issue tracker91},92keywords=[93'python',94'chatbot',95'reverse-engineering',96'openai',97'chatbots',98'gpt',99'language-model',100'gpt-3',101'gpt3',102'openai-api',103'gpt-4',104'gpt4',105'chatgpt',106'chatgpt-api',107'openai-chatgpt',108'chatgpt-free',109'chatgpt-4',110'chatgpt4',111'chatgpt4-api',112'free',113'free-gpt',114'gpt4free',115'g4f',116],117classifiers=[118'Development Status :: 2 - Pre-Alpha',119'Intended Audience :: Developers',120'Programming Language :: Python :: 3',121'Operating System :: Unix',122'Operating System :: MacOS :: MacOS X',123'Operating System :: Microsoft :: Windows',124],125)
126