forked from PIA-Group/BioSPPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (52 loc) · 2.06 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
# -*- coding: utf-8 -*-
"""
BioSPPy
-------
A toolbox for biosignal processing written in Python.
:copyright: (c) 2015-2017 by Instituto de Telecomunicacoes
:license: BSD 3-clause, see LICENSE for more details.
"""
# Imports
from setuptools import find_packages, setup
import os
import re
def read(*paths):
"""Build a file path from *paths and return the contents."""
with open(os.path.join(*paths), 'r') as fid:
return fid.read()
def get_version(path):
"""Get the module version."""
with open(path, 'r') as fid:
m = re.search("version\s*=\s*'([\w.]+)'", fid.read())
if m is None:
raise RuntimeError("Could not find version string.")
version = m.group(1)
version = version.strip()
return version
setup(name='biosppy',
version=get_version('biosppy/version.py'),
description="A toolbox for biosignal processing written in Python.",
long_description=read('README.rst'),
url='https://github.com/PIA-Group/BioSPPy',
license='BSD 3-clause',
author='Instituto de Telecomunicacoes',
author_email='[email protected]',
packages=find_packages(exclude=['tests*', 'docs*', 'examples']),
# install_requires=[],
include_package_data=True,
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Education',
'Topic :: Scientific/Engineering',
],
)