|
1 |
| -[tool.poetry] |
| 1 | +[project] |
2 | 2 | name = "openai"
|
3 | 3 | version = "1.0.0-beta.3"
|
4 | 4 | description = "Client library for the openai API"
|
5 | 5 | readme = "README.md"
|
6 |
| -authors = [ "OpenAI <[email protected]>"] |
7 | 6 | license = "Apache-2.0"
|
8 |
| -repository = "https://github.com/openai/openai-python" |
9 |
| -packages = [ |
10 |
| - { include = "openai", from = "src" } |
| 7 | +authors = [ |
| 8 | +{ name = "OpenAI", email = "[email protected]" }, |
11 | 9 | ]
|
| 10 | +dependencies = [ |
| 11 | + "httpx>=0.23.0, <1", |
| 12 | + "pydantic>=1.9.0, <3", |
| 13 | + "typing-extensions>=4.5, <5", |
| 14 | + "anyio>=3.5.0, <4", |
| 15 | + "distro>=1.7.0, <2", |
| 16 | + "tqdm > 4" |
| 17 | +] |
| 18 | +requires-python = ">= 3.7.1" |
| 19 | + |
| 20 | +[project.optional-dependencies] |
| 21 | +datalib = ["numpy >= 1", "pandas >= 1.2.3", "pandas-stubs >= 1.1.0.11"] |
| 22 | + |
| 23 | +[project.urls] |
| 24 | +Homepage = "https://github.com/openai/openai-python" |
| 25 | +Repository = "https://github.com/openai/openai-python" |
12 | 26 |
|
13 |
| -[tool.poetry.dependencies] |
14 |
| -python = "^3.7.1" |
15 |
| -httpx = ">= 0.23.0, < 1" |
16 |
| -pydantic = ">= 1.9.0, < 3" |
17 |
| -typing-extensions = ">= 4.5, < 5" |
18 |
| -anyio = ">= 3.5.0, < 4" |
19 |
| -distro = ">= 1.7.0, < 2" |
20 |
| -tqdm = "> 4" |
21 |
| - |
22 |
| -numpy = { version = ">= 1", optional = true } |
23 |
| -pandas = { version = ">= 1.2.3", optional = true } |
24 |
| -pandas-stubs = { version = ">= 1.1.0.11", optional = true } |
25 |
| - |
26 |
| -[tool.poetry.extras] |
27 |
| -datalib = ["numpy", "pandas", "pandas-stubs"] |
28 |
| - |
29 |
| -[tool.poetry.group.dev.dependencies] |
30 |
| -pyright = "1.1.326" |
31 |
| -mypy = "1.4.1" |
32 |
| -black = "23.3.0" |
33 |
| -respx = "0.19.2" |
34 |
| -pytest = "7.1.1" |
35 |
| -pytest-asyncio = "0.21.1" |
36 |
| -ruff = "0.0.282" |
37 |
| -isort = "5.10.1" |
38 |
| -time-machine = "^2.9.0" |
39 |
| -nox = "^2023.4.22" |
40 |
| -nox-poetry = "^1.0.3" |
41 |
| -types-tqdm = "> 4" |
42 |
| -[tool.poetry.scripts] |
| 27 | +[project.scripts] |
43 | 28 | openai = "openai.cli:main"
|
44 | 29 |
|
| 30 | +[tool.rye] |
| 31 | +managed = true |
| 32 | +dev-dependencies = [ |
| 33 | + "pyright==1.1.326", |
| 34 | + "mypy==1.4.1", |
| 35 | + "black==23.3.0", |
| 36 | + "respx==0.19.2", |
| 37 | + "pytest==7.1.1", |
| 38 | + "pytest-asyncio==0.21.1", |
| 39 | + "ruff==0.0.282", |
| 40 | + "isort==5.10.1", |
| 41 | + "time-machine==2.9.0", |
| 42 | + "nox==2023.4.22", |
| 43 | + "types-tqdm > 4" |
| 44 | +] |
| 45 | + |
| 46 | +[tool.rye.scripts] |
| 47 | +format = { chain = [ |
| 48 | + "format:black", |
| 49 | + "format:docs", |
| 50 | + "format:ruff", |
| 51 | + "format:isort", |
| 52 | +]} |
| 53 | +"format:black" = "black ." |
| 54 | +"format:docs" = "python bin/blacken-docs.py README.md api.md" |
| 55 | +"format:ruff" = "ruff --fix ." |
| 56 | +"format:isort" = "isort ." |
| 57 | + |
45 | 58 | [build-system]
|
46 |
| -requires = ["poetry-core>=1.0.0"] |
47 |
| -build-backend = "poetry.core.masonry.api" |
| 59 | +requires = ["hatchling"] |
| 60 | +build-backend = "hatchling.build" |
| 61 | + |
| 62 | +[tool.hatch.build] |
| 63 | +include = [ |
| 64 | + "src/*" |
| 65 | +] |
| 66 | + |
| 67 | +[tool.hatch.build.targets.wheel] |
| 68 | +packages = ["src/openai"] |
48 | 69 |
|
49 | 70 | [tool.black]
|
50 | 71 | line-length = 120
|
|
0 commit comments