|
1 |
| -[tool.poetry] |
| 1 | +[project] |
2 | 2 | name = "anthropic"
|
3 | 3 | version = "0.4.1"
|
4 | 4 | description = "Client library for the anthropic API"
|
5 | 5 | readme = "README.md"
|
6 |
| -authors = [ "Anthropic <[email protected]>"] |
7 | 6 | license = "MIT"
|
8 |
| -repository = "https://github.com/anthropics/anthropic-sdk-python" |
9 |
| -packages = [ |
10 |
| - { include = "anthropic", from = "src" } |
| 7 | +authors = [ |
| 8 | +{ name = "Anthropic", 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 | + "tokenizers >= 0.13.0" |
| 17 | +] |
| 18 | +requires-python = ">= 3.7" |
| 19 | + |
12 | 20 |
|
13 |
| -[tool.poetry.dependencies] |
14 |
| -python = "^3.7" |
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 |
| -tokenizers = ">= 0.13.0" |
21 | 21 |
|
| 22 | +[project.urls] |
| 23 | +Homepage = "https://github.com/anthropics/anthropic-sdk-python" |
| 24 | +Repository = "https://github.com/anthropics/anthropic-sdk-python" |
22 | 25 |
|
23 |
| -[tool.poetry.group.dev.dependencies] |
24 |
| -pyright = "1.1.326" |
25 |
| -mypy = "1.4.1" |
26 |
| -black = "23.3.0" |
27 |
| -respx = "0.19.2" |
28 |
| -pytest = "7.1.1" |
29 |
| -pytest-asyncio = "0.21.1" |
30 |
| -ruff = "0.0.282" |
31 |
| -isort = "5.10.1" |
32 |
| -time-machine = "^2.9.0" |
33 |
| -nox = "^2023.4.22" |
34 |
| -nox-poetry = "^1.0.3" |
35 | 26 |
|
36 | 27 |
|
| 28 | +[tool.rye] |
| 29 | +managed = true |
| 30 | +dev-dependencies = [ |
| 31 | + "pyright==1.1.326", |
| 32 | + "mypy==1.4.1", |
| 33 | + "black==23.3.0", |
| 34 | + "respx==0.19.2", |
| 35 | + "pytest==7.1.1", |
| 36 | + "pytest-asyncio==0.21.1", |
| 37 | + "ruff==0.0.282", |
| 38 | + "isort==5.10.1", |
| 39 | + "time-machine==2.9.0", |
| 40 | + "nox==2023.4.22", |
| 41 | + |
| 42 | +] |
| 43 | + |
| 44 | +[tool.rye.scripts] |
| 45 | +format = { chain = [ |
| 46 | + "format:black", |
| 47 | + "format:docs", |
| 48 | + "format:ruff", |
| 49 | + "format:isort", |
| 50 | +]} |
| 51 | +"format:black" = "black ." |
| 52 | +"format:docs" = "python bin/blacken-docs.py README.md api.md" |
| 53 | +"format:ruff" = "ruff --fix ." |
| 54 | +"format:isort" = "isort ." |
37 | 55 |
|
38 | 56 | [build-system]
|
39 |
| -requires = ["poetry-core>=1.0.0"] |
40 |
| -build-backend = "poetry.core.masonry.api" |
| 57 | +requires = ["hatchling"] |
| 58 | +build-backend = "hatchling.build" |
| 59 | + |
| 60 | +[tool.hatch.build] |
| 61 | +include = [ |
| 62 | + "src/*" |
| 63 | +] |
| 64 | + |
| 65 | +[tool.hatch.build.targets.wheel] |
| 66 | +packages = ["src/anthropic"] |
41 | 67 |
|
42 | 68 | [tool.black]
|
43 | 69 | line-length = 120
|
|
0 commit comments