openai/openai-python
Publicmirrored fromhttps://github.com/openai/openai-pythonAvailable
setup.py
27lines · modecode
| 1 | import os |
| 2 | |
| 3 | from setuptools import find_packages, setup |
| 4 | |
| 5 | version_contents = {} |
| 6 | with open( |
| 7 | os.path.join(os.path.abspath(os.path.dirname(__file__)), "openai/version.py") |
| 8 | ) as f: |
| 9 | exec(f.read(), version_contents) |
| 10 | |
| 11 | setup( |
| 12 | name="openai", |
| 13 | description="Python client library for the OpenAI API", |
| 14 | version=version_contents["VERSION"], |
| 15 | install_requires=[ |
| 16 | 'requests >= 2.20; python_version >= "3.0"', |
| 17 | 'requests[security] >= 2.20; python_version < "3.0"', |
| 18 | ], |
| 19 | extras_require={}, |
| 20 | python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", |
| 21 | scripts=["bin/openai"], |
| 22 | packages=find_packages(exclude=["tests", "tests.*"]), |
| 23 | package_data={"openai": ["data/ca-certificates.crt"]}, |
| 24 | author="OpenAI", |
| 25 | author_email="support@openai.com", |
| 26 | url="https://github.com/openai/openai-python", |
| 27 | ) |