-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (92 loc) · 2.55 KB
/
Copy pathpyproject.toml
File metadata and controls
103 lines (92 loc) · 2.55 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
[project]
name = "ezmsg-learn"
description = "ezmsg namespace package for machine learning"
readme = "README.md"
authors = [
{ name = "Chadwick Boulay", email = "chadwick.boulay@gmail.com" }
]
license = "MIT"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
# 3.10.0b2 for CoordinateAxis.fingerprint and AxisArray.chunk_dim, which
# ezmsg-baseproc's default state hash reads. Pinned directly rather than
# left to the transitive requirement: uv only enables pre-releases for a
# package named with a pre-release marker in *this* file.
"ezmsg>=3.10.0b2",
"ezmsg-baseproc>=1.12.0",
"ezmsg-sigproc>=3.0.0",
"numpy",
"scipy",
"array-api-compat",
]
[project.optional-dependencies]
# The heavyweight backends are opt-in so that the pure-numpy processors
# (process.ssr, process.flatten, process.refit_kalman, ...) can be installed on
# constrained hosts without pulling in a full PyTorch/sklearn stack.
sklearn = [
"pandas>=2.2",
"river>=0.22.0",
"scikit-learn>=1.6.0",
]
torch = [
"torch>=2.6.0",
]
all = [
"ezmsg-learn[sklearn,torch]",
]
[dependency-groups]
dev = [
{include-group = "lint"},
{include-group = "test"},
"pre-commit>=4.3.0",
]
lint = [
"ruff==0.16.2",
]
test = [
# The backends are extras, so `uv sync` would not install them; the test
# suite covers all of them.
"ezmsg-learn[all]",
"ezmsg-simbiophys>=1.8.0",
"hmmlearn>=0.3.3",
"pytest>=8.4.1",
]
docs = [
# autodoc imports every documented module, so the docs build needs the
# project and all of its backends -- not just Sphinx.
"ezmsg-learn[all]",
"sphinx>=8.1.3",
"pydata-sphinx-theme",
"sphinx_autodoc_typehints>=3.0.0",
"sphinx_copybutton",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/ezmsg/learn/__version__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/ezmsg"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
pythonpath = [
"src",
".",
]
[tool.ruff]
line-length = 120
target-version = "py310"
# Exclude auto-generated files
exclude = ["*/__version__.py"]
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
[tool.ruff.lint.isort]
known-first-party = ["ezmsg.learn"]
known-third-party = ["ezmsg", "ezmsg.baseproc", "ezmsg.sigproc"]
[tool.uv.sources]
# Uncomment to use development version of ezmsg from git
#ezmsg = { git = "https://github.com/ezmsg-org/ezmsg.git", branch = "feature/profiling" }