-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
122 lines (105 loc) · 3.01 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
[build-system]
requires = ["setuptools", "setuptools-scm", "numpy"]
build-backend = "setuptools.build_meta"
[project]
name = "sleepecg"
description = "A package for sleep stage classification using ECG data"
license = {text = "BSD 3-Clause"}
authors = [
{name = "Florian Hofer", email = "[email protected]"},
{name = "Clemens Brunner", email = "[email protected]"},
]
readme = "README.md"
requires-python = ">= 3.9, < 3.13"
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Typing :: Typed",
]
keywords = ["sleep", "ecg", "qrs", "peak"]
dependencies = [
"numpy >= 1.25.0, < 2.0.0",
"PyYAML >= 5.4.0",
"requests >= 2.25.0",
"scipy >= 1.7.0",
"tqdm >= 4.60.0",
]
dynamic = ["version"]
[project.optional-dependencies]
full = [ # complete package functionality
"edfio >= 0.4.0",
"joblib >= 1.0.0",
"matplotlib >= 3.5.0",
"numba >= 0.59.1",
"tensorflow >= 2.16.1",
"wfdb >= 3.4.0",
]
dev = [ # everything needed for development
"sleepecg[doc]",
"sleepecg[full]",
"mypy >= 0.991",
"pre-commit >= 2.13.0",
"pytest >= 6.2.0",
"ruff >= 0.4.0",
"setuptools >= 56.0.0",
]
doc = [ # RTD uses this when building the documentation
"mkdocs-material >= 8.4.0",
"mkdocstrings-python >= 0.8.2",
]
cibw = [ # cibuildwheel uses this for running the test suite
"edfio >= 0.4.0",
"numba >= 0.59.1",
"wfdb >= 3.4.0",
]
[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 = 'pp* *musllinux*'
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux2014"
archs = "x86_64"
[tool.cibuildwheel.macos]
archs = "x86_64 arm64"
[tool.cibuildwheel.windows]
archs = "AMD64"
[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",
'ignore:.*datetime.datetime.utcfromtimestamp\(\):DeprecationWarning',
'ignore:(?s).*Pyarrow:DeprecationWarning',
]
[tool.ruff]
line-length = 92
exclude = ["setup.py"]
[tool.ruff.lint]
select = ["D", "E", "F", "I", "W", "UP"]
ignore = ["D105"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"**/examples/*.py" = ["D100"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.setuptools.dynamic]
version = {attr = "sleepecg.__version__"}