-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathpyproject.toml
More file actions
224 lines (200 loc) · 5.69 KB
/
pyproject.toml
File metadata and controls
224 lines (200 loc) · 5.69 KB
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "darts"
version = "0.43.0"
description = "A python library for easy manipulation and forecasting of time series."
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
keywords = ["time series", "forecasting"]
maintainers = [
{name = "Unit8 SA", email = "darts@unit8.co"}
]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"holidays>=0.11.1",
"joblib>=0.16.0",
"matplotlib>=3.3.0",
"narwhals>=1.25.1",
"nfoursid>=1.0.0",
"numpy>=2.2.0",
"pandas>=2.2.0",
"pyod>=0.9.5",
"requests>=2.22.0",
"scikit-learn>=1.6.0",
"scipy>=1.3.2",
"shap>=0.40.0",
"statsmodels>=0.14.0",
"tqdm>=4.60.0",
"typing-extensions>=4.0.0",
"xarray>=0.17.0",
]
[project.urls]
Homepage = "https://unit8co.github.io/darts/"
Documentation = "https://unit8co.github.io/darts/"
Repository = "https://github.com/unit8co/darts"
"Bug Tracker" = "https://github.com/unit8co/darts/issues"
[project.optional-dependencies]
# Main feature sets - pip installable with: pip install "darts[torch]"
torch = [
"torch>=2.0.0",
"pytorch-lightning>=2.0.0,<2.5.3",
"tensorboardx>=2.1",
"huggingface-hub>=0.35.3",
"safetensors>=0.6.2",
]
notorch = [
"catboost>=1.0.6",
"lightgbm>=3.2.0",
"prophet>=1.1.1",
"statsforecast>=1.4",
"xgboost>=2.1.4",
]
all = ["darts[torch,notorch]"]
[tool.uv.sources]
# Use PyTorch CPU-only index when torch-cpu group is enabled
torch = { index = "pytorch-cpu", group = "torch-cpu" }
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true # Only use this index for packages explicitly configured to use it
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
exclude = ["examples*", "datasets*", "docs*", "darts.tests*"]
[tool.setuptools.package-data]
darts = ["py.typed"]
[tool.pytest.ini_options]
addopts = [
"--strict-markers",
"--color=yes"
]
markers = [
"slow: marks tests as slow (deselect with `-m 'not slow'`)",
]
[tool.ruff]
target-version = "py310"
line-length = 88
[tool.ruff.format]
preview = true
[tool.ruff.lint]
select = [
"E",
"W", # see: https://pypi.org/project/pycodestyle
"F", # see: https://pypi.org/project/pyflakes
"I", #see: https://pypi.org/project/isort/
"UP", # see: https://docs.astral.sh/ruff/rules/#pyupgrade-up
# "D", # see: https://pypi.org/project/pydocstyle
]
ignore = [
"E203",
"E402", # todo: use noqa per line
"E731", # Do not assign a `lambda` expression, use a `def`
]
unfixable = ["F401"]
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"
#[tool.ruff.pycodestyle]
#ignore-overlong-task-comments = true
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.pycodestyle]
max-line-length = 120
[dependency-groups]
# Developer-only dependency groups (not accessible via pip)
# For uv users: uv sync --group dev-all (includes all extras)
# For CI: uv sync --group dev-all --group torch-cpu (uses CPU-only PyTorch)
dev = [
"pre-commit>=4.5.1",
"pytest-cov>=7.0.0",
"pytest-timeout>=2.3.0",
"testfixtures>=8.3.0",
"ty>=0.0.17",
]
torch-cpu = ["torch>=2.0.0"]
optional = [
"onnx>=1.20.1",
"onnxruntime>=1.24.1; python_version >= '3.11'",
"onnxruntime<1.24.1; python_version < '3.11'", # 1.24.1 dropped python 3.10 support
"optuna>=4.7.0",
"optuna-integration[pytorch-lightning]>=4.7.0",
"polars>=1.37.1",
"pydantic>=2.12.5",
"ray>=2.53.0",
"plotly>=6.5.2",
"neuralforecast>=3.0.0",
]
release = [
"bump-my-version>=1.2.5",
"docutils==0.21.2",
"ipykernel==7.1.0",
"ipython==9.7.0; python_version >= '3.11'",
"ipython==8.38.0; python_version < '3.11'",
"ipython-genutils==0.2.0",
"ipywidgets==8.1.8",
"jinja2==3.1.6",
"jupyterlab==4.4.10",
"lxml-html-clean==0.4.3",
"m2r2==0.3.4",
"nbsphinx==0.9.7",
"numpydoc==1.9.0",
"papermill==2.6.0",
"pydata-sphinx-theme==0.16.1",
"recommonmark==0.7.1",
"sphinx==8.1.3",
"sphinx-autodoc-typehints==3.0.1",
"sphinx-copybutton==0.5.2",
"sphinx-design==0.6.1",
"tenacity==9.1.2",
"twine==6.2.0",
]
dev-all = [
{include-group = "dev"},
{include-group = "optional"},
{include-group = "release"},
"darts[all]",
]
[tool.bumpversion]
current_version = "0.43.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
commit = true
tag = true
tag_name = "{new_version}"
message = "Bump version: {current_version} → {new_version}"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "darts/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[[tool.bumpversion.files]]
filename = "docs/source/conf.py"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[tool.ty.src]
include = ["darts"]
exclude = ["darts/tests"]
[tool.ty.terminal]
output-format = "concise"