openai/openai-python
Publicmirrored from https://github.com/openai/openai-pythonAvailable
setup.py
36lines · modeblame
3c6d4cd6Greg Brockman5 years ago | 1 | import os |
| 2 | | |
| 3 | from setuptools import find_packages, setup | |
| 4 | | |
| 5 | version_contents = {} | |
40c32f9fRachel Lim5 years ago | 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: | |
3c6d4cd6Greg Brockman5 years ago | 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=[ | |
40c32f9fRachel Lim5 years ago | 17 | "requests>=2.20", # to get the patch for CVE-2018-18074 |
cf9c04a2Rachel Lim5 years ago | 18 | "tqdm", # Needed for progress bars |
7ddcba1aRachel Lim4 years ago | 19 | "pandas>=1.2.3", # Needed for CLI fine-tuning data preparation tool |
| 20 | "pandas-stubs>=1.1.0.11", # Needed for type hints for mypy | |
| 21 | "openpyxl>=3.0.7", # Needed for CLI fine-tuning data preparation tool xlsx format | |
3c6d4cd6Greg Brockman5 years ago | 22 | ], |
62f8d40fMadeleine Thompson4 years ago | 23 | extras_require={"dev": ["black~=21.6b0", "pytest==6.*"]}, |
| 24 | python_requires=">=3.7.1", | |
3c6d4cd6Greg Brockman5 years ago | 25 | scripts=["bin/openai"], |
| 26 | packages=find_packages(exclude=["tests", "tests.*"]), | |
40c32f9fRachel Lim5 years ago | 27 | package_data={ |
| 28 | "openai": [ | |
| 29 | "data/ca-certificates.crt", | |
| 30 | "py.typed", | |
| 31 | ] | |
| 32 | }, | |
3c6d4cd6Greg Brockman5 years ago | 33 | author="OpenAI", |
| 34 | author_email="support@openai.com", | |
| 35 | url="https://github.com/openai/openai-python", | |
| 36 | ) |