-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
50 lines (45 loc) · 1.66 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
from setuptools import find_packages, setup
import re
# parse dyneusr/_version.py
try:
version_fn = 'dyneusr/_version.py'
with open(version_fn) as version_fd:
version = version_fd.read()
version_re = r"^__version__ = ['\"]([^'\"]*)['\"]"
version = re.findall(version_re, version, re.M)[0]
except:
raise RuntimeError("Unable to read version in {}.".format(version_fn))
# parse requirements.txt
with open('requirements.txt') as f:
install_requires = [_ for _ in f.read().split('\n')
if len(_) and _[0].isalpha()]
# parse README.md
with open('README.md') as f:
long_description = f.read()
# run setup
setup(
name='dyneusr',
version=version,
description='Dynamical Neural Spatiotemporal Representations.',
long_description=long_description,
long_description_content_type="text/markdown",
author='Caleb Geniesse',
author_email='[email protected]',
url='https://braindynamicslab.github.io/dyneusr',
license='BSD-3',
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
python_requires='>=3.6',
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
keywords='brain dynamics, topology data analysis, neuroimaging, brain networks, mapper, visualization',
)