-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
109 lines (103 loc) · 3.7 KB
/
setup.py
File metadata and controls
109 lines (103 loc) · 3.7 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
"""
Operator-Based Heart-Brain Monitoring Framework
Setup script for package installation
"""
from setuptools import setup, find_packages
from pathlib import Path
import re
# Read the README file for long description
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding="utf-8")
# Read version from the package __init__.py (single source of truth)
init_text = (this_directory / "triadic_biosignal_monitor" / "__init__.py").read_text(encoding="utf-8")
version_match = re.search(r'^__version__\s*=\s*["\']([^"\']+)["\']', init_text, re.MULTILINE)
if not version_match:
raise RuntimeError("Unable to find version in triadic_biosignal_monitor/__init__.py")
version = version_match.group(1)
# Read requirements from requirements.txt
requirements = []
with open("requirements.txt", "r", encoding="utf-8") as f:
for line in f:
line = line.strip()
# Skip comments and empty lines
if line and not line.startswith("#"):
# Remove version constraints for setup.py (pip will handle)
package = line.split(">=")[0].split("==")[0].split("<")[0]
requirements.append(package)
# Development requirements
dev_requirements = [
"pytest>=6.2.0",
"pytest-cov>=2.12.0",
"black>=21.0",
"flake8>=3.9.0",
"pylint>=2.10.0",
"mypy>=0.910",
"sphinx>=4.0.0",
"sphinx-rtd-theme>=0.5.0",
]
setup(
name="triadic-biosignal-monitor",
version=version,
author="Marcel Krüger, Don Feeney",
author_email="marcelkrueger092@gmail.com, dfeen87@gmail.com",
description="Operator-based heart-brain monitoring via triadic spiral-time embeddings",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/dfeen87/Triadic-Biosignal-Monitor",
project_urls={
"Bug Tracker": "https://github.com/dfeen87/Triadic-Biosignal-Monitor/issues",
"Documentation": "https://github.com/dfeen87/Triadic-Biosignal-Monitor/tree/main/docs",
"Source Code": "https://github.com/dfeen87/Triadic-Biosignal-Monitor",
},
packages=find_packages(where=".", exclude=["tests", "tests.*", "notebooks", "datasets"]),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Scientific/Engineering :: Signal Processing",
"License :: OSI Approved :: MIT License", # Update if different license
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
install_requires=requirements,
extras_require={
"dev": dev_requirements,
"docs": [
"sphinx>=4.0.0",
"sphinx-rtd-theme>=0.5.0",
"myst-parser>=0.15.0",
],
"eeg": [
"mne>=1.0.0", # For EEG data loading
],
"all": dev_requirements + ["mne>=1.0.0"],
},
entry_points={
"console_scripts": [
# Add command-line scripts here if needed
# "triadic-monitor=core.cli:main",
],
},
include_package_data=True,
package_data={
"": ["*.md", "*.yaml", "*.yml"],
},
zip_safe=False,
keywords=[
"biosignal monitoring",
"EEG",
"ECG",
"HRV",
"seizure detection",
"arrhythmia detection",
"early warning system",
"signal processing",
"operator theory",
"phase synchronization",
],
)