-
Notifications
You must be signed in to change notification settings - Fork 151
/
Copy pathpyproject.toml
95 lines (81 loc) · 2.01 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[project]
name = "pyrift"
version = "2.0.0"
description = ''
readme = "README.md"
requires-python = ">=3.9"
license = "Apache-2.0"
keywords = []
authors = [
{ name = "Morph Labs", email = "support@morph.so" },
]
dependencies = [
"aiohttp",
"pydantic[dotenv]==1.*",
"python-dotenv",
"rich",
"fire",
"gpt4all==0.3.4",
"tiktoken",
"sentencepiece",
"transformers",
"diff_match_patch",
"art",
"smol_dev @ git+https://www.github.com/jesse-michael-han/smol_dev",
"gpt-engineer @ git+https://www.github.com/morph-labs/gpt-engineer",
"aider-chat @ git+https://github.com/morph-labs/aider"
]
[project.optional-dependencies]
# install these to use huggingface models
hf = [
"torch",
]
smol_dev = [
"smol_dev @ git+https://www.github.com/jesse-michael-han/smol_dev",
]
gpt-engineer = [
"gpt-engineer @ git+https://www.github.com/morph-labs/gpt-engineer",
]
aider = [
"aider-chat @ git+https://github.com/morph-labs/aider"
]
[project.urls]
Documentation = "https://github.com/morph-labs/rift#readme"
Issues = "https://github.com/morph-labs/rift/issues"
Source = "https://github.com/morph-labs/rift"
[project.scripts]
rift = "rift.server.core:main"
[tool.hatch.version]
path = "rift/__about__.py"
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
'pyinstaller',
"gpt4all==0.3.4",
"einops",
]
[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=rift --cov=tests {args}"
no-cov = "cov --no-cov {args}"
dev = "python -m rift.server.core --debug {args}"
bundle = "pyinstaller rift/server/core.py --name rift -y --collect-all gpt4all --onefile --log-level=DEBUG {args}"
[[tool.hatch.envs.test.matrix]]
python = ["310", "311"]
[tool.coverage.run]
branch = true
parallel = true
omit = [
"rift/__about__.py",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]