-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
103 lines (87 loc) · 2.57 KB
/
pyproject.toml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[build-system]
requires = [
"poetry",
# Starting with NumPy 1.25, NumPy is (by default) as far back compatible
# as oldest-support-numpy was (customizable with a NPY_TARGET_VERSION
# define). For older Python versions (where NumPy 1.25 is not yet avaiable)
# continue using oldest-support-numpy.
"oldest-supported-numpy>=0.14; python_version<'3.9'",
"numpy>=1.25; python_version>='3.9'",
]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "together"
version = "1.3.11"
authors = [
"Together AI <[email protected]>"
]
description = "Python client for Together's Cloud Platform!"
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
]
repository = "https://github.com/togethercomputer/together-python"
homepage = "https://github.com/togethercomputer/together-python"
[tool.poetry.dependencies]
python = "^3.8"
typer = ">=0.9,<0.16"
requests = "^2.31.0"
rich = "^13.8.1"
tqdm = "^4.66.2"
tabulate = "^0.9.0"
pydantic = "^2.6.3"
aiohttp = "^3.9.3"
filelock = "^3.13.1"
eval-type-backport = ">=0.1.3,<0.3.0"
click = "^8.1.7"
pillow = "^10.3.0"
pyarrow = ">=10.0.1"
numpy = [
{ version = ">=1.23.5", python = "<3.12" },
{ version = ">=1.26.0", python = ">=3.12" },
]
[tool.poetry.group.quality]
optional = true
[tool.poetry.group.quality.dependencies]
black = ">=23.1,<25.0"
ruff = ">=0.3.2,<0.9.0"
types-tqdm = "^4.65.0.0"
types-tabulate = "^0.9.0.3"
pre-commit = "3.5.0"
types-requests = "^2.31.0.20240218"
pyarrow-stubs = ">=10.0.1.7,<20240831.0.0.0"
mypy = "^1.9.0"
[tool.poetry.group.tests]
optional = true
[tool.poetry.group.tests.dependencies]
pytest = ">=7.4.2,<9.0.0"
pytest-watch = "^4.2.0"
tox = "^4.14.1"
[tool.poetry.group.examples]
optional = true
[tool.poetry.group.examples.dependencies]
datasets = ">=2.18,<4.0"
transformers = "^4.39.3"
[tool.poetry.urls]
"Homepage" = "https://github.com/togethercomputer/together-python"
"Bug Tracker" = "https://github.com/togethercomputer/together-python/issues"
[tool.poetry.scripts]
together = "together.cli.cli:main"
[tool.black]
target-version = ['py310']
[tool.ruff.lint]
# Never enforce `E501` (line length violations).
ignore = ["C901", "E501", "E741", "W605"]
select = ["C", "E", "F", "I", "W"]
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["together"]
[tool.mypy]
strict = true
mypy_path = "."