-
Notifications
You must be signed in to change notification settings - Fork 96
/
setup.py
84 lines (71 loc) · 2.97 KB
/
setup.py
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
# -*- coding: utf-8 -*-
#
# Copyright © 2020 John Muradeli
# Licensed under the terms of the MIT License
# (see ssqueezepy/__init__.py for details)
"""
ssqueezepy
==========
Synchrosqueezing, wavelet transforms, and time-frequency analysis in Python
ssqueezepy features time-frequency analysis written for performance, flexibility,
and clarity. Included are Continuous Wavelet Transform (CWT), Short-Time Fourier
Transform (STFT), CWT & STFT synchrosqueezing, Generalized Morse Wavelets,
visualizations, a signal testing suite, and automatic ridge extraction.
"""
import os
import re
from setuptools import setup, find_packages
current_path = os.path.abspath(os.path.dirname(__file__))
def read_file(*parts):
with open(os.path.join(current_path, *parts), encoding='utf-8') as reader:
return reader.read()
def get_requirements(*parts):
with open(os.path.join(current_path, *parts), encoding='utf-8') as reader:
return list(map(lambda x: x.strip(), reader.readlines()))
def find_version(*file_paths):
version_file = read_file(*file_paths)
version_matched = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_matched:
return version_matched.group(1)
raise RuntimeError('Unable to find version')
setup(
name="ssqueezepy",
version=find_version('ssqueezepy', '__init__.py'),
packages=find_packages(exclude=['tests', 'examples']),
url="https://github.com/OverLordGoldDragon/ssqueezepy",
license="MIT",
author="John Muradeli",
author_email="[email protected]",
description=("Synchrosqueezing, wavelet transforms, and "
"time-frequency analysis in Python"),
long_description=read_file('README.md'),
long_description_content_type="text/markdown",
keywords=(
"signal-processing python synchrosqueezing wavelet-transform cwt stft "
"morse-wavelet ridge-extraction time-frequency time-frequency-analysis "
"visualization"
),
install_requires=get_requirements('requirements.txt'),
tests_require=["pytest>=4.0", "pytest-cov"],
include_package_data=True,
zip_safe=True,
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Topic :: Utilities",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)