-
Notifications
You must be signed in to change notification settings - Fork 31
/
setup_tag.py
72 lines (61 loc) · 2.1 KB
/
setup_tag.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
#!/usr/bin/env python
# based on:
# https://github.com/marcindulak/python-mycli/blob/master/setup.py#L34
import os
from setuptools import setup
def fetch_version_from_file():
""" Fetch the version string from a file. If the file doesn't exist the setup will exit. """
with open("TAG_VERSION", "r") as fp:
version = fp.read()
return version
return None
name = "dyconnmap"
rootdir = os.path.abspath(os.path.dirname(__file__))
packages = []
for dirname, dirnames, filenames in os.walk(name):
if "__init__.py" in filenames:
packages.append(dirname.replace("/", "."))
data_files = []
for extra_dirs in ("docs", "examples", "tests"):
for dirname, dirnames, filenames in os.walk(extra_dirs):
fileslist = []
for filename in filenames:
fullname = os.path.join(dirname, filename)
fileslist.append(fullname)
data_files.append(("share/" + name + "/" + dirname, fileslist))
setup(
name="dyconnmap",
version=fetch_version_from_file(),
description="A dynamic connectome mapping module in Python",
author="Avraam Marimpis, Stavros Dimitriadis",
author_email="[email protected], [email protected]",
license="BSD",
keywords="eeg fMRI meg connectivity graphs neuroimage brain",
url="https://github.com/makism/dyconnmap",
python_requires="~=3.6",
packages=packages,
install_requires=[
"numpy",
"scipy",
"networkx",
"matplotlib",
"statsmodels",
"scikit-learn",
"bctpy",
],
package_dir={"dyconnmap": "dyconnmap"},
data_files=data_files,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.6",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
],
)