openai/openai-python

Public

mirrored from https://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.11.2

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

setup.py

36lines · modeblame

3c6d4cd6Greg Brockman5 years ago1import os
2
3from setuptools import find_packages, setup
4
5version_contents = {}
40c32f9fRachel Lim5 years ago6version_path = os.path.join(
7os.path.abspath(os.path.dirname(__file__)), "openai/version.py"
8)
9with open(version_path, "rt") as f:
3c6d4cd6Greg Brockman5 years ago10exec(f.read(), version_contents)
11
12setup(
13name="openai",
14description="Python client library for the OpenAI API",
15version=version_contents["VERSION"],
16install_requires=[
40c32f9fRachel Lim5 years ago17"requests>=2.20", # to get the patch for CVE-2018-18074
cf9c04a2Rachel Lim5 years ago18"tqdm", # Needed for progress bars
7ddcba1aRachel Lim4 years ago19"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 ago22],
62f8d40fMadeleine Thompson4 years ago23extras_require={"dev": ["black~=21.6b0", "pytest==6.*"]},
24python_requires=">=3.7.1",
3c6d4cd6Greg Brockman5 years ago25scripts=["bin/openai"],
26packages=find_packages(exclude=["tests", "tests.*"]),
40c32f9fRachel Lim5 years ago27package_data={
28"openai": [
29"data/ca-certificates.crt",
30"py.typed",
31]
32},
3c6d4cd6Greg Brockman5 years ago33author="OpenAI",
34author_email="support@openai.com",
35url="https://github.com/openai/openai-python",
36)