-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (112 loc) · 3.16 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (112 loc) · 3.16 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
[build-system]
requires = ["setuptools>=77.0.3", "setuptools-scm", "numpy>=2"]
build-backend = "setuptools.build_meta"
[project]
name = "sleepecg"
version = "0.6.0.dev0"
description = "A package for sleep stage classification using ECG data"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
authors = [
{name = "Florian Hofer", email = "hofaflo@gmail.com"},
{name = "Clemens Brunner", email = "clemens.brunner@gmail.com"},
]
readme = "README.md"
requires-python = ">= 3.10"
classifiers = [
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Typing :: Typed",
]
keywords = ["sleep", "ecg", "qrs", "peak"]
dependencies = [
"numpy >= 1.26.0",
"pyyaml >= 6.0.0",
"requests >= 2.32.3",
"scipy >= 1.13.0",
"tqdm >= 4.66.0",
]
[project.optional-dependencies]
cibw = [ # cibuildwheel uses this for running the test suite
"edfio >= 0.4.4",
"numba >= 0.61.0",
"wfdb >= 4.2.0",
]
docs = [ # RTD uses this when building the documentation
"mkdocs-material >= 9.5.0",
"mkdocstrings-python >= 1.11.1",
]
full = [ # complete package functionality
"edfio >= 0.4.4",
"joblib >= 1.4.2",
"matplotlib >= 3.9.2",
"numba >= 0.61.0",
"tensorflow >= 2.17.0; python_version < '3.13'",
"wfdb >= 4.2.0",
]
[dependency-groups]
dev = [
"sleepecg[docs]",
"sleepecg[full]",
"mypy >= 0.991",
"pre-commit >= 2.13.0",
"pytest >= 6.2.0",
"pytest-cov >= 6.0.0",
"ruff >= 0.8.0",
"setuptools >= 72.1.0",
"types-requests",
"types-pyyaml",
]
[project.urls]
homepage = "https://github.com/cbrnr/sleepecg"
documentation = "https://sleepecg.readthedocs.io/en/latest/"
repository = "https://github.com/cbrnr/sleepecg"
changelog = "https://github.com/cbrnr/sleepecg/blob/main/CHANGELOG.md"
[tool.cibuildwheel]
test-requires = "pytest"
test-extras = "cibw"
test-command = "pytest {package}"
skip = "*musllinux*"
build = "cp310-*" # abi3
archs = "native"
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
[tool.cibuildwheel.windows]
before-build = "pip install delvewheel"
repair-wheel-command = [
"delvewheel repair -w {dest_dir} {wheel}",
]
[[tool.cibuildwheel.overrides]]
select = "*"
inherit.repair-wheel-command = "append"
repair-wheel-command = [
"pipx run abi3audit --strict --report {wheel}",
]
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
warn_unreachable = true
strict_equality = true
pretty = true
[tool.pytest.ini_options]
markers = ["c_extension"]
filterwarnings = ["error"]
[tool.ruff]
line-length = 92
exclude = ["setup.py"]
[tool.ruff.lint]
select = ["C4", "D", "E", "F", "FURB", "I", "PERF", "W", "UP"]
ignore = ["D105"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"**/examples/*.py" = ["D100"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"