-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (48 loc) · 1.74 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (48 loc) · 1.74 KB
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
"""
setup.py
Author: Jose Guzman, jose.guzman<at>guzman-lab.com
Created: Sun Jun 30 15:16:05 CEST 2019
Installation file required for the minibrain module
"""
import os
import re
import os.path as op
from setuptools import setup
#-------------------------------------------------------------------------
# setup
#-------------------------------------------------------------------------
def _package_tree(pkgroot):
path = op.dirname(__file__)
subdirs = [op.relpath(i[0], path).replace(op.sep, '.')
for i in os.walk(op.join(path, pkgroot))
if '__init__.py' in i[2]]
return subdirs
# read README.md
curdir = op.dirname(op.realpath(__file__))
with open(op.join(curdir, 'README.md')) as f:
myreadme = f.read()
# Find version number from `__init__.py` without executing it.
filename = op.join(curdir, 'minibrain/__init__.py')
with open(filename, 'r') as f:
myversion = re.search(r"__version__ = '([^']+)'", f.read()).group(1)
setup(
name = 'minibrain', # application name
version = myversion,# application version
license = 'LICENSE',
description = 'minibrain is a Python module to analyze\
electrical signals and calcium fluorescence in brain organoids',
long_description = myreadme,
author ='Jose Guzman',
author_email = 'jguzman<at>guzman-lab.com',
url = 'https://github.com/JoseGuzman/minibrain.git',
packages = ['minibrain'],
python_requires='>=3.5',
include_package_data = True,# include additional data
package_data={
# If any package contains *.txt files, include them:
'': ['*.txt'],
# And include any *.csv files in the 'DataSets' subdirectory
# of the 'minibrain' package, also:
'minibrain': ['DataSets/*.csv'],
},
)