openai/openai-python
Publicmirrored fromhttps://github.com/openai/openai-pythonAvailable
setup.py
33lines · modecode
| 1 | import os |
| 2 | |
| 3 | from setuptools import find_packages, setup |
| 4 | |
| 5 | version_contents = {} |
| 6 | version_path = os.path.join( |
| 7 | os.path.abspath(os.path.dirname(__file__)), "openai/version.py" |
| 8 | ) |
| 9 | with open(version_path, "rt") as f: |
| 10 | exec(f.read(), version_contents) |
| 11 | |
| 12 | setup( |
| 13 | name="openai", |
| 14 | description="Python client library for the OpenAI API", |
| 15 | version=version_contents["VERSION"], |
| 16 | install_requires=[ |
| 17 | "requests>=2.20", # to get the patch for CVE-2018-18074 |
| 18 | "tqdm", # Needed for progress bars |
| 19 | ], |
| 20 | extras_require={"dev": ["black==20.8b1", "pytest==6.*"]}, |
| 21 | python_requires=">=3.6", |
| 22 | scripts=["bin/openai"], |
| 23 | packages=find_packages(exclude=["tests", "tests.*"]), |
| 24 | package_data={ |
| 25 | "openai": [ |
| 26 | "data/ca-certificates.crt", |
| 27 | "py.typed", |
| 28 | ] |
| 29 | }, |
| 30 | author="OpenAI", |
| 31 | author_email="support@openai.com", |
| 32 | url="https://github.com/openai/openai-python", |
| 33 | ) |
| 34 | |