forked from openai/openai-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (30 loc) · 927 Bytes
/
setup.py
File metadata and controls
33 lines (30 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
from setuptools import find_packages, setup
version_contents = {}
version_path = os.path.join(
os.path.abspath(os.path.dirname(__file__)), "openai/version.py"
)
with open(version_path, "rt") as f:
exec(f.read(), version_contents)
setup(
name="openai",
description="Python client library for the OpenAI API",
version=version_contents["VERSION"],
install_requires=[
"requests>=2.20", # to get the patch for CVE-2018-18074
"tqdm", # Needed for progress bars
],
extras_require={"dev": ["black==20.8b1", "pytest==6.*"]},
python_requires=">=3.6",
scripts=["bin/openai"],
packages=find_packages(exclude=["tests", "tests.*"]),
package_data={
"openai": [
"data/ca-certificates.crt",
"py.typed",
]
},
author="OpenAI",
url="https://github.com/openai/openai-python",
)