-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
100 lines (85 loc) · 2.98 KB
/
setup.py
File metadata and controls
100 lines (85 loc) · 2.98 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
from setuptools import setup, find_packages
import os
import re
def get_long_description():
try:
with open('README.md', 'r', encoding='utf-8') as f:
return f.read()
except FileNotFoundError:
return "一个现代化的波达方向(DoA)估计工具库。基于原项目morriswmz/doatools.py的重构与增强版本。"
def get_version():
"""从_version.py读取版本号"""
version_file = os.path.join('doatools', '_version.py')
try:
with open(version_file, 'r', encoding='utf-8') as f:
version_match = re.search(
r"^__version__\s*=\s*['\"]([^'\"]*)['\"]",
f.read(),
re.M
)
if version_match:
return version_match.group(1)
except FileNotFoundError:
pass
return "0.3.0.dev1"
setup(
name='doatools',
version=get_version(),
description='一个现代化的波达方向(DoA)估计工具库 - 重构与增强版本',
long_description=get_long_description(),
long_description_content_type="text/markdown",
url='https://github.com/hengxt/doatools',
author='Xiantao Heng (Based on work by Mianzhi Wang)',
author_email='hengxt@163.com',
# 包发现
packages=find_packages(exclude=('doatools.tests', 'docs', 'examples', 'benchmarks')),
# Python要求
python_requires='>=3.8',
# 依赖
install_requires=[
'numpy>=1.21.0',
'scipy>=1.7.0',
'matplotlib>=3.4.0',
'cvxpy>=1.1.0',
'tqdm>=4.65.0',
'h5py>=3.9.0'
],
# 可选依赖
extras_require={
'dev': [
'pytest>=7.0.0',
'pytest-cov>=4.0.0',
'black>=23.0.0',
'flake8>=6.0.0',
'sphinx>=7.0.0'
],
'docs': [
'sphinx>=7.0.0',
'sphinx-rtd-theme>=1.3.0'
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Telecommunications Industry',
'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',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
zip_safe=False,
include_package_data=True,
keywords='doa direction-of-arrival estimation array-signal-processing music esprit',
project_urls={
'Documentation': 'https://github.com/hengxt/doatools#readme',
'Source': 'https://github.com/hengxt/doatools',
'Tracker': 'https://github.com/hengxt/doatools/issues',
},
)