-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (98 loc) · 3.49 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (98 loc) · 3.49 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
[build-system]
requires = ["setuptools>=64.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pyAMICA"
version = "0.1.2"
description = "pyAMICA: Python implementation of the Adaptive Mixture ICA algorithm"
readme = "README.md"
authors = [
{name = "Seyed Yahya Shirazi", email = "shirazi@ieee.org"},
]
maintainers = [
{name = "Seyed Yahya Shirazi", email = "shirazi@ieee.org"},
]
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering"
]
requires-python = ">=3.12"
dependencies = [
"numpy",
"scipy",
"matplotlib",
"tqdm",
"json5",
"torch>=2.12.1",
"threadpoolctl>=3",
]
# Optional Apple-Silicon GPU backend (AMICAMLXNG). MLX is Apple-only, so it is
# NOT a core dependency; install with `uv pip install mlx` or `pip install
# pyAMICA[mlx]`. `import pyAMICA` never requires it (mlx_impl is imported lazily).
[project.optional-dependencies]
mlx = ["mlx>=0.32"]
# Documentation stack (MkDocs Material + mkdocstrings). Built and deployed to
# GitHub Pages by .github/workflows/docs.yml via `uv sync --extra docs`.
docs = [
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.26",
"mkdocs-git-revision-date-localized-plugin>=1.2",
]
# Visualization for the benchmark sweeps: MNE builds the scalp-map montage for
# the IC topomaps and (issue #91) the distributed channel-subset positions.
viz = ["mne>=1.6"]
[project.urls]
Homepage = "https://github.com/sccn/pyAMICA"
Repository = "https://github.com/sccn/pyAMICA"
[tool.setuptools]
# List subpackages explicitly so the wheel is deterministic across platforms
# (a bare ["pyAMICA"] dropped torch_impl/ on some setuptools versions).
packages = ["pyAMICA", "pyAMICA.numpy_impl", "pyAMICA.torch_impl", "pyAMICA.mlx_impl"]
# numpy_impl/params.json is the NumPy backend's default parameter file, loaded at
# runtime via importlib/__file__, so it must ship in the wheel.
package-data = {"pyAMICA" = ["data/*"], "pyAMICA.numpy_impl" = ["params.json"]}
[dependency-groups]
dev = [
"pre-commit>=4.0",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"pytest-xdist>=3.6.1",
"ruff>=0.15.0",
"ty>=0.0.57",
]
[tool.coverage.run]
source = ["pyAMICA"]
branch = true
omit = [
"pyAMICA/tests/*",
# argparse CLI entrypoint: exercised via subprocess, not unit-covered here.
"pyAMICA/numpy_impl/cli.py",
# Optional MLX backend (Apple Silicon only): its tests require MLX + an Apple
# GPU, so CI (ubuntu, no mlx) cannot exercise it and always measures 0%. It is
# covered locally by tests/mlx_tests/ on Apple hardware (issue #76).
"pyAMICA/mlx_impl/*",
]
[tool.coverage.report]
show_missing = true
precision = 1
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"@(abc\\.)?abstractmethod",
]
[tool.ty.src]
# .context/ holds point-in-time investigation/debugging artifacts (per
# AGENTS.md): frozen reproduction/prototype scripts for closed issues (e.g.
# issue-21/corrected_mstep_prototype.py, marked "do not ship as-is"), not
# maintained production code, so it is out of scope for type checking. Live
# analysis scripts that ARE tested (loaded via importlib from the test suite)
# were fixed on their own merits rather than excluded. (issue #122)
exclude = [".context/**"]