setup.py 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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_requires = [
  8. "requests",
  9. "pycryptodome",
  10. "curl_cffi>=0.5.10",
  11. "aiohttp",
  12. "certifi",
  13. "browser_cookie3",
  14. "typing-extensions",
  15. "PyExecJS",
  16. "duckduckgo-search",
  17. "nest_asyncio",
  18. "werkzeug",
  19. "loguru",
  20. "pillow",
  21. "platformdirs",
  22. "fastapi",
  23. "uvicorn",
  24. "flask",
  25. "py-arkose-generator",
  26. "asyncstdlib",
  27. "async-property",
  28. "undetected-chromedriver",
  29. "brotli",
  30. "beautifulsoup4",
  31. "setuptools",
  32. ]
  33. DESCRIPTION = (
  34. 'The official gpt4free repository | various collection of powerful language models'
  35. )
  36. # Setting up
  37. setup(
  38. name='g4f',
  39. version=os.environ.get("G4F_VERSION"),
  40. author='Tekky',
  41. author_email='<support@g4f.ai>',
  42. description=DESCRIPTION,
  43. long_description_content_type='text/markdown',
  44. long_description=long_description,
  45. packages=find_packages(),
  46. package_data={
  47. 'g4f': ['g4f/interference/*', 'g4f/gui/client/*', 'g4f/gui/server/*', 'g4f/Provider/npm/*']
  48. },
  49. include_package_data=True,
  50. install_requires=install_requires,
  51. entry_points={
  52. 'console_scripts': ['g4f=g4f.cli:main'],
  53. },
  54. url='https://github.com/xtekky/gpt4free', # Link to your GitHub repository
  55. project_urls={
  56. 'Source Code': 'https://github.com/xtekky/gpt4free', # GitHub link
  57. 'Bug Tracker': 'https://github.com/xtekky/gpt4free/issues', # Link to issue tracker
  58. },
  59. keywords=[
  60. 'python',
  61. 'chatbot',
  62. 'reverse-engineering',
  63. 'openai',
  64. 'chatbots',
  65. 'gpt',
  66. 'language-model',
  67. 'gpt-3',
  68. 'gpt3',
  69. 'openai-api',
  70. 'gpt-4',
  71. 'gpt4',
  72. 'chatgpt',
  73. 'chatgpt-api',
  74. 'openai-chatgpt',
  75. 'chatgpt-free',
  76. 'chatgpt-4',
  77. 'chatgpt4',
  78. 'chatgpt4-api',
  79. 'free',
  80. 'free-gpt',
  81. 'gpt4free',
  82. 'g4f',
  83. ],
  84. classifiers=[
  85. 'Development Status :: 2 - Pre-Alpha',
  86. 'Intended Audience :: Developers',
  87. 'Programming Language :: Python :: 3',
  88. 'Operating System :: Unix',
  89. 'Operating System :: MacOS :: MacOS X',
  90. 'Operating System :: Microsoft :: Windows',
  91. ],
  92. )