-
Notifications
You must be signed in to change notification settings - Fork 18
/
pyproject.toml
158 lines (145 loc) · 4.2 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[build-system]
requires = [
"setuptools>=59",
"setuptools_scm[toml]>=6.4",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["vetiver"]
[project]
name = "vetiver"
description = "Version, share, deploy, and monitor models."
readme = { file = "README.md", content-type = "text/markdown" }
authors = [
{ name = "Isabel Zimmerman", email = "isabel.zimmerman@posit.co" }
]
license = { text = "MIT" }
keywords = ["data", "mlops"]
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]
requires-python = ">=3.9"
dependencies =[
"numpy",
"pandas",
"fastapi",
"pydantic",
"joblib",
"uvicorn",
"scikit-learn",
"nest-asyncio",
"requests",
"pins>=0.7.1",
"rsconnect-python>=1.11.0",
"python-dotenv",
"plotly",
"pip-tools",
"httpx"
]
[project.optional-dependencies]
all = [
"vetiver[dev]",
"vetiver[all_models]",
"vetiver[docs]"
]
all_models = [
"vetiver[torch]",
"vetiver[statsmodels]",
"vetiver[xgboost]",
"vetiver[spacy]"
]
dev = [
"pytest",
"pytest-cov",
"pytest-snapshot",
"vetiver[typecheck]",
"vetiver[docs]"
]
docs = [
"quartodoc",
# quarto render dependencies
"jupyter"
]
statsmodels = ["statsmodels"]
torch = ["torch"]
xgboost = ["xgboost"]
spacy = ["spacy; python_version < '3.13'"]
typecheck = [
"pyright",
"pandas-stubs"
]
[project.urls]
homepage = "https://github.com/rstudio/vetiver-python"
documentation = "https://rstudio.github.io/vetiver-python/stable/"
[tool.pytest.ini_options]
testpaths = ["vetiver"]
markers = [
"rsc_test: tests for connect",
"docker: tests for docker deployments"
]
[tool.setuptools_scm]
fallback_version = "999"
version_scheme = 'post-release'
########## Tool - Pyright ##########
[tool.pyright]
# Paths of directories or files that should be included. If no paths
# are specified, pyright defaults to the directory that contains the
# config file. Paths may contain wildcard characters ** (a directory or
# multiple levels of directories), * (a sequence of zero or more
# characters), or ? (a single character). If no include paths are
# specified, the root path for the workspace is assumed.
include = [
"vetiver/"
]
# Paths of directories or files whose diagnostic output (errors and
# warnings) should be suppressed even if they are an included file or
# within the transitive closure of an included file. Paths may contain
# wildcard characters ** (a directory or multiple levels of
# directories), * (a sequence of zero or more characters), or ? (a
# single character).
ignore = [
#"vetiver/__init__.py",
"vetiver/attach_pkgs.py",
"vetiver/helpers.py",
"vetiver/meta.py",
"vetiver/mock.py",
"vetiver/model_card.py",
"vetiver/monitor.py",
"vetiver/pin_read_write.py",
"vetiver/prototype.py",
"vetiver/rsconnect.py",
"vetiver/server.py",
"vetiver/templates.py",
"vetiver/types.py",
"vetiver/utils.py",
"vetiver/vetiver_model.py",
"vetiver/write_docker.py",
"vetiver/write_fastapi.py",
"vetiver/handlers/",
"vetiver/data/",
"vetiver/tests"
]
# Set of identifiers that should be assumed to contain a constant
# value wherever used within this program. For example, { "DEBUG": true
# } indicates that pyright should assume that the identifier DEBUG will
# always be equal to True. If this identifier is used within a
# conditional expression (such as if not DEBUG:) pyright will use the
# indicated value to determine whether the guarded block is reachable
# or not. Member expressions that reference one of these constants
# (e.g. my_module.DEBUG) are also supported.
defineConstant = { DEBUG = true }
# typeCheckingMode = "strict"
useLibraryCodeForTypes = true
reportUnnecessaryTypeIgnoreComment = true
# Specifies a list of execution environments (see below). Execution
# environments are searched from start to finish by comparing the path
# of a source file with the root path specified in the execution
# environment.
executionEnvironments = []
stubPath = ""