|
12 | 12 | with open("README.md", "r") as fh: |
13 | 13 | long_description = fh.read() |
14 | 14 |
|
| 15 | + |
| 16 | +DATA_LIBRARIES = [ |
| 17 | + # These libraries are optional because of their size. See `openai/datalib.py`. |
| 18 | + "numpy", |
| 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 |
| 22 | +] |
| 23 | + |
15 | 24 | setup( |
16 | 25 | name="openai", |
17 | 26 | description="Python client library for the OpenAI API", |
|
21 | 30 | install_requires=[ |
22 | 31 | "requests>=2.20", # to get the patch for CVE-2018-18074 |
23 | 32 | "tqdm", # Needed for progress bars |
24 | | - "pandas>=1.2.3", # Needed for CLI fine-tuning data preparation tool |
25 | | - "pandas-stubs>=1.1.0.11", # Needed for type hints for mypy |
26 | | - "openpyxl>=3.0.7", # Needed for CLI fine-tuning data preparation tool xlsx format |
27 | | - "numpy", |
28 | 33 | 'typing_extensions;python_version<"3.8"', # Needed for type hints for mypy |
29 | 34 | "aiohttp", # Needed for async support |
30 | 35 | ], |
31 | 36 | extras_require={ |
32 | 37 | "dev": ["black~=21.6b0", "pytest==6.*", "pytest-asyncio", "pytest-mock"], |
33 | | - "wandb": ["wandb"], |
| 38 | + "datalib": DATA_LIBRARIES, |
| 39 | + "wandb": [ |
| 40 | + "wandb", |
| 41 | + *DATA_LIBRARIES, |
| 42 | + ], |
34 | 43 | "embeddings": [ |
35 | 44 | "scikit-learn>=1.0.2", # Needed for embedding utils, versions >= 1.1 require python 3.8 |
36 | 45 | "tenacity>=8.0.1", |
37 | 46 | "matplotlib", |
38 | 47 | "sklearn", |
39 | 48 | "plotly", |
| 49 | + *DATA_LIBRARIES, |
40 | 50 | ], |
41 | 51 | }, |
42 | 52 | python_requires=">=3.7.1", |
|
0 commit comments