-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (55 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
import sys
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
NAME = 'megspikes'
MAINTAINER = 'Valerii Chirkov'
MAINTAINER_EMAIL = '[email protected]'
DESCRIPTION = 'Pipelines for detection epileptic spikes in MEG recording.'
URL = 'https://github.com/MEG-SPIKES/megspikes'
AUTHOR = 'Valerii Chirkov'
AUTHOR_EMAIL = '[email protected]'
PACKAGES = find_packages()
VERSION = '0.1.5'
CLASSIFIERS = ['Programming Language :: Python :: 3',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Operating System :: OS Independent']
LICENSE = 'MIT'
PYTHON_REQUIRES = '>=3.7'
PLATFORMS = 'any'
with open('requirements.txt') as f:
REQUIRES = f.read().splitlines()
REQUIRES = [f"{i}" for i in REQUIRES]
# Give setuptools a hint to complain if it's too old a version
# 24.2.0 added the python_requires option
# Should match pyproject.toml
SETUP_REQUIRES = ['setuptools >= 24.2.0']
# This enables setuptools to install wheel on-the-fly
SETUP_REQUIRES += ['wheel'] if 'bdist_wheel' in sys.argv else []
# for AlphaCSC installation
SETUP_REQUIRES += ['numpy', 'Cython']
opts = dict(name=NAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url=URL,
download_url=URL,
license=LICENSE,
classifiers=CLASSIFIERS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
platforms=PLATFORMS,
version=VERSION,
packages=PACKAGES,
include_package_data=True,
install_requires=REQUIRES,
python_requires=PYTHON_REQUIRES,
setup_requires=SETUP_REQUIRES)
if __name__ == '__main__':
setup(**opts)