-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsetup.py
73 lines (67 loc) · 2.12 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
65
66
67
68
69
70
71
72
73
__author__ = 'Robert Meyer'
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
try:
# Used to convert md to rst for pypi, otherwise not needed
import m2r
except ImportError:
m2r = None
install_requires=[
'tables',
'pandas',
'numpy',
'scipy'
]
# For versioning, Version found in pypet._version.py
verstrline = open('pypet/_version.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError('Unable to find version in pypet/_version.py')
description = ('A toolkit for numerical simulations to allow '
'easy parameter exploration and storage of results.')
if m2r is None:
long_description = description
else:
# convert markdown to rst
long_description = m2r.convert(open('README.md').read())
setup(
name='pypet',
version=verstr,
packages=['pypet',
'pypet.brian2',
'pypet.utils',
'pypet.tests',
'pypet.tests.unittests',
'pypet.tests.integration',
'pypet.tests.profiling',
'pypet.tests.testutils',
'pypet.tests.unittests.brian2tests',
'pypet.tests.integration.brian2tests',
],
package_data={'pypet.tests': ['testdata/*.hdf5'], 'pypet': ['logging/*.ini']},
license='BSD',
author='Robert Meyer',
author_email='robert.meyer@alcemy.tech',
description=description,
long_description=long_description,
url='https://github.com/SmokinCaterpillar/pypet',
install_requires=install_requires,
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: BSD License',
'Topic :: Utilities'],
python_requires='>=3.6',
)