-
Notifications
You must be signed in to change notification settings - Fork 409
/
pyproject.toml
142 lines (123 loc) · 3.88 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[tool.poetry]
name = "nemoguardrails"
description = "NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems."
authors = ["NVIDIA <[email protected]>"]
license = "LICENSE.md"
readme = "README.md"
version = "0.11.0"
packages = [{ include = "nemoguardrails" }]
include = [
"LICENSE.md",
"LICENSE-Apache-2.0.txt",
"LICENCES-3rd-party.txt",
"chat-ui/**/*",
"examples/**/*",
"eval/data/**/*",
"**/*.yml",
"**/*.co",
"**/*.txt",
"**/*.json",
"**/*.lark",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[tool.poetry.urls]
homepage = "https://github.com/NVIDIA/nemo-guardrails"
documentation = "https://docs.nvidia.com/nemo/guardrails/"
repository = "https://github.com/NVIDIA/NeMo-Guardrails"
[tool.poetry.scripts]
nemoguardrails = "nemoguardrails.__main__:app"
[tool.poetry.dependencies]
python = ">=3.9,!=3.9.7,<3.12"
aiohttp = ">=3.10.11"
annoy = ">=1.17.3"
fastapi = ">=0.103.0,"
fastembed = ">=0.2.2, <0.4.1"
httpx = "^0.24.1"
jinja2 = ">=3.1.4"
langchain = ">=0.2.14,<0.4.0"
langchain-core = ">=0.2.14,<0.4.0"
langchain-community = ">=0.0.16,<0.4.0"
lark = "~1.1.7"
nest-asyncio = ">=1.5.6,"
prompt-toolkit = ">=3.0"
pydantic = ">=1.10"
pyyaml = ">=6.0"
rich = ">=13.5.2"
simpleeval = ">=0.9.13,"
starlette = ">=0.27.0"
typer = ">=0.8"
uvicorn = ">=0.23"
watchdog = ">=3.0.0,"
# tracing
opentelemetry-api = { version = ">=1.27.0,<2.0.0", optional = true }
opentelemetry-sdk = { version = ">=1.27.0,<2.0.0", optional = true }
aiofiles = { version = ">=24.1.0", optional = true }
# openai
langchain-openai = { version = ">=0.0.5", optional = true }
# eval
tqdm = { version = ">=4.65,<5.0", optional = true }
numpy = { version = ">=1.24,<2.0", optional = true }
streamlit = { version = "^1.37.0", optional = true, python = ">=3.9,!=3.9.7,<3.12" }
pandas = { version = ">=1.4.0,<3", optional = true }
# sdd
presidio-analyzer = { version = ">=2.2", optional = true }
presidio-anonymizer = { version = ">=2.2", optional = true }
spacy = { version = ">=3.7.2", optional = true }
# gpc
google-cloud-language = { version = ">=2.14.0", optional = true }
[tool.poetry.extras]
sdd = ["presidio-analyzer", "presidio-anonymizer", "spacy"]
eval = ["tqdm", "numpy", "streamlit"]
openai = ["langchain-openai"]
gcp = ["google-cloud-language"]
trace = ["opentelemetry-api", "opentelemetry-sdk", "aiofiles"]
# Poetry does not support recursive dependencies, so we need to add all the dependencies here.
# I also support their decision. There is no PEP for recursive dependencies, but it has been supported in pip since version 21.2.
# It is here for backward compatibility.
all = [
"presidio-analyzer",
"presidio-anonymizer",
"spacy",
"tqdm",
"numpy",
"streamlit",
"langchain-openai",
"google-cloud-language",
"opentelemetry-api",
"opentelemetry-sdk",
"aiofiles",
]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = ">=24.3.0"
aioresponses = ">=0.7.6"
mypy = ">=1.1.1"
pre-commit = ">=3.1.1"
pylint = ">=2.17.0"
pytest = ">=7.2.2"
pytest-asyncio = ">=0.21.0"
pytest-cov = ">=4.1.0"
pytest-httpx = ">=0.22.0"
streamlit = ">=1.37.0"
tox = "^4.23.2"
pytest-profiling = "^1.7.0"
[tool.pytest.ini_options]
addopts = "-p no:warnings"
log-level = "DEBUG"
# The flag below should only be activated in special debug sessions
# i.e. the test hangs and we need to see what happened up to that point.
# There are some race conditions with how the logging streams are closed in the teardown
# phase, which will cause tests to fail or "magically" ignored.
log_cli = "False"
[build-system]
requires = ["poetry-core >=1.0.0"]
build-backend = "poetry.core.masonry.api"