-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
110 lines (105 loc) · 3.65 KB
/
setup.py
File metadata and controls
110 lines (105 loc) · 3.65 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
#!/usr/bin/env python3
"""Setup script for ECG DAQ package."""
from setuptools import setup, find_packages
import os
from pathlib import Path
# Read version from package
def get_version():
"""Get version from package __init__.py."""
init_file = Path(__file__).parent / "ecg_daq" / "__init__.py"
if init_file.exists():
with open(init_file, 'r') as f:
for line in f:
if line.startswith('__version__'):
return line.split('=')[1].strip().strip('"\'')
return "0.1.0"
# Read long description from README
def get_long_description():
"""Get long description from README.md."""
readme_file = Path(__file__).parent / "README.md"
if readme_file.exists():
with open(readme_file, 'r', encoding='utf-8') as f:
return f.read()
return ""
# Read requirements
def get_requirements():
"""Get requirements from requirements.txt."""
req_file = Path(__file__).parent / "requirements.txt"
requirements = []
if req_file.exists():
with open(req_file, 'r') as f:
for line in f:
line = line.strip()
if line and not line.startswith('#'):
requirements.append(line)
return requirements
setup(
name="ecg-daq",
version=get_version(),
author="Mehrshad",
author_email="mehrshadtaji61@gmail.com",
description="High-performance ECG Data Acquisition System",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/mehrshad/ecg-daq",
project_urls={
"Bug Tracker": "https://github.com/MT522/ecg-daq/issues",
"Documentation": "https://github.com/MT522/ecg-daq#readme",
"Source Code": "https://github.com/MT522/ecg-daq",
},
packages=find_packages(exclude=["tests", "tests.*", "test_data"]),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: System :: Hardware :: Hardware Drivers",
"Topic :: Communications :: Serial",
],
python_requires=">=3.8",
install_requires=get_requirements(),
extras_require={
"dev": [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"black>=22.0.0",
"isort>=5.10.0",
"flake8>=4.0.0",
"mypy>=0.991",
],
"docs": [
"sphinx>=4.0.0",
"sphinx-rtd-theme>=1.0.0",
"myst-parser>=0.18.0",
],
"visualization": [
"seaborn>=0.11.0",
"plotly>=5.0.0",
],
},
entry_points={
"console_scripts": [
"ecg-monitor=ecg_daq.examples.real_time_monitor:main_sync",
"ecg-plot=ecg_daq.examples.plot_ecg_data:main",
"ecg-mock-hardware=ecg_daq.examples.test_uart_with_mock:main",
],
},
package_data={
"ecg_daq": ["py.typed"],
},
include_package_data=True,
zip_safe=False,
keywords=[
"ecg", "electrocardiogram", "data-acquisition", "medical-devices",
"serial-communication", "uart", "real-time", "signal-processing",
"healthcare", "biomedical", "cardiology"
],
)