forked from BlueBrain/snap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
90 lines (79 loc) · 2.9 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
# Copyright (c) 2019, EPFL/Blue Brain Project
# This file is part of BlueBrain SNAP library <https://github.com/BlueBrain/snap>
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License version 3.0 as published
# by the Free Software Foundation.
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from setuptools import setup, find_packages
from setuptools.command.egg_info import egg_info
# setuptools_scm forcibly includes all files under version control into the sdist
# See https://github.com/pypa/setuptools_scm/issues/190
# Workaround taken from:
# https://github.com/raiden-network/raiden/commit/3fb837e8b6e6343f65d99055459cb440e1a938ff
class EggInfo(egg_info):
def __init__(self, *args, **kwargs):
egg_info.__init__(self, *args, **kwargs)
try:
import setuptools_scm.integration
setuptools_scm.integration.find_files = lambda _: []
except ImportError:
pass
with open('README.rst') as f:
README = f.read()
setup(
name='bluepysnap',
install_requires=[
'cached_property>=1.0',
'h5py>=3.0.1,<4.0.0',
'libsonata>=0.1.6,<1.0.0',
'morphio>=3.0.0,<4.0.0',
'morph-tool>=2.4.3,<3.0.0',
'numpy>=1.8,<2.0.0',
'pandas>=1.0.0,<2.0.0',
'click>=7.0,<8.0.0',
'more-itertools>=8.2.0'
],
extras_require={
'docs': ['sphinx', 'sphinx-bluebrain-theme'],
'plots': ["matplotlib>=3.0.0,<4.0.0"],
},
packages=find_packages(),
use_scm_version=True,
setup_requires=[
'setuptools_scm',
],
cmdclass={
'egg_info': EggInfo,
},
entry_points='''
[console_scripts]
bluepysnap=bluepysnap.cli:cli
''',
author="Blue Brain Project, EPFL",
description="Simulation and Neural network Analysis Productivity layer",
long_description=README,
long_description_content_type='text/x-rst',
license="LGPLv3",
url='https://github.com/BlueBrain/snap',
keywords=[
'SONATA',
'BlueBrainProject'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Operating System :: POSIX',
'Topic :: Scientific/Engineering',
'Topic :: Utilities',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
]
)