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
from setuptools import setup

VERSION = "1.2.1"

DESCRIPTION = "Implementation of the Empirical Mode Decomposition (EMD) and its variations"


def main():
    import io

    with io.open("README.md", encoding="utf8") as fp:
        long_description = fp.read().strip()

    with open("requirements.txt") as f:
        required = f.read().splitlines()

    classifiers = [
        "Intended Audience :: Information Technology",
        "Intended Audience :: Science/Research",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Information Analysis",
        "Topic :: Scientific/Engineering :: Mathematics",
    ]

    setup_params = dict(
        name="EMD-signal",
        version=VERSION,
        description=DESCRIPTION,
        long_description=long_description,
        long_description_content_type="text/markdown",
        url="https://github.com/laszukdawid/PyEMD",
        author="Dawid Laszuk",
        author_email="pyemd@dawid.lasz.uk",
        license="Apache-2.0",
        classifiers=classifiers,
        keywords="signal decomposition data analysis",
        packages=["PyEMD"],
        install_requires=required,
        python_requires=">=3.6, <4",
        test_suite="PyEMD.tests",
        extras_require={
            "doc": ["sphinx", "sphinx_rtd_theme", "numpydoc"],
            "dev": ["pycodestyle", "black", "isort"],
            "test": ["pytest", "codecov"],
        },
    )

    _ = setup(**setup_params)


if __name__ == "__main__":
    main()