setup.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. import codecs
  2. import os
  3. from setuptools import find_packages, setup
  4. here = os.path.abspath(os.path.dirname(__file__))
  5. with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as fh:
  6. long_description = '\n' + fh.read()
  7. INSTALL_REQUIRE = [
  8. "requests",
  9. "aiohttp",
  10. "brotli",
  11. "pycryptodome",
  12. "nest_asyncio",
  13. ]
  14. EXTRA_REQUIRE = {
  15. 'all': [
  16. "curl_cffi>=0.6.2",
  17. "certifi",
  18. "browser_cookie3", # get_cookies
  19. "duckduckgo-search>=5.0" ,# internet.search
  20. "beautifulsoup4", # internet.search and bing.create_images
  21. "brotli", # openai, bing
  22. "platformdirs",
  23. "cryptography",
  24. "aiohttp_socks", # proxy
  25. "pillow", # image
  26. "cairosvg", # svg image
  27. "werkzeug", "flask", # gui
  28. "fastapi", # api
  29. "uvicorn", "nest_asyncio", # api
  30. "pycryptodome", # openai
  31. "nodriver",
  32. ],
  33. "image": [
  34. "pillow",
  35. "cairosvg",
  36. "beautifulsoup4"
  37. ],
  38. "webdriver": [
  39. "platformdirs",
  40. "undetected-chromedriver>=3.5.5",
  41. "setuptools",
  42. "selenium-wire"
  43. ],
  44. "webview": [
  45. "webview",
  46. "platformdirs",
  47. "plyer",
  48. "cryptography"
  49. ],
  50. "api": [
  51. "loguru", "fastapi",
  52. "uvicorn",
  53. ],
  54. "gui": [
  55. "werkzeug", "flask",
  56. "beautifulsoup4", "pillow",
  57. "duckduckgo-search>=5.0",
  58. "browser_cookie3"
  59. ],
  60. "search": [
  61. "beautifulsoup4", "pillow",
  62. "duckduckgo-search>=5.0",
  63. ],
  64. "local": [
  65. "gpt4all"
  66. ]
  67. }
  68. DESCRIPTION = (
  69. 'The official gpt4free repository | various collection of powerful language models'
  70. )
  71. # Setting up
  72. setup(
  73. name='g4f',
  74. version=os.environ.get("G4F_VERSION"),
  75. author='Tekky',
  76. author_email='<support@g4f.ai>',
  77. description=DESCRIPTION,
  78. long_description_content_type='text/markdown',
  79. long_description=long_description,
  80. packages=find_packages(),
  81. package_data={
  82. 'g4f': ['g4f/interference/*', 'g4f/gui/client/*', 'g4f/gui/server/*', 'g4f/Provider/npm/*', 'g4f/local/models/*']
  83. },
  84. include_package_data=True,
  85. install_requires=INSTALL_REQUIRE,
  86. extras_require=EXTRA_REQUIRE,
  87. entry_points={
  88. 'console_scripts': ['g4f=g4f.cli:main'],
  89. },
  90. url='https://github.com/xtekky/gpt4free', # Link to your GitHub repository
  91. project_urls={
  92. 'Source Code': 'https://github.com/xtekky/gpt4free', # GitHub link
  93. 'Bug Tracker': 'https://github.com/xtekky/gpt4free/issues', # Link to issue tracker
  94. },
  95. keywords=[
  96. 'python',
  97. 'chatbot',
  98. 'reverse-engineering',
  99. 'openai',
  100. 'chatbots',
  101. 'gpt',
  102. 'language-model',
  103. 'gpt-3',
  104. 'gpt3',
  105. 'openai-api',
  106. 'gpt-4',
  107. 'gpt4',
  108. 'chatgpt',
  109. 'chatgpt-api',
  110. 'openai-chatgpt',
  111. 'chatgpt-free',
  112. 'chatgpt-4',
  113. 'chatgpt4',
  114. 'chatgpt4-api',
  115. 'free',
  116. 'free-gpt',
  117. 'gpt4free',
  118. 'g4f',
  119. ],
  120. classifiers=[
  121. 'Development Status :: 2 - Pre-Alpha',
  122. 'Intended Audience :: Developers',
  123. 'Programming Language :: Python :: 3',
  124. 'Operating System :: Unix',
  125. 'Operating System :: MacOS :: MacOS X',
  126. 'Operating System :: Microsoft :: Windows',
  127. ],
  128. )