forked from myokit/myokit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
117 lines (98 loc) · 3.22 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#
# SetupTools script for Myokit
#
# This file is part of Myokit.
# See http://myokit.org for copyright, sharing, and licensing details.
#
from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from setuptools import setup, find_packages
# Get version number
import os
import sys
sys.path.append(os.path.abspath('myokit'))
from _myokit_version import __version__ as version # noqa
sys.path.pop()
del(os, sys)
# Load text for description and license
with open('README.md') as f:
readme = f.read()
# Go!
setup(
# See https://python-packaging.readthedocs.io/en/latest/index.html
# for details of what goes in here.
# Module name (lowercase)
name='myokit',
# Version
version=version,
# Description
description='A simple interface to cardiac cellular electrophysiology',
long_description=readme,
long_description_content_type='text/markdown',
# Author and license
license='BSD 3-clause license',
author='Michael Clerx',
author_email='[email protected]',
# URLs
url='http://myokit.org',
project_urls={
'Bug Tracker': 'https://github.com/MichaelClerx/myokit/issues',
'Documentation': 'http://docs.myokit.org',
'Source Code': 'https://github.com/MichaelClerx/myokit',
},
# Classifiers for pypi
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'Topic :: Scientific/Engineering :: Physics',
],
# Packages to include
packages=find_packages(include=('myokit', 'myokit.*')),
# Include non-python files (via MANIFEST.in)
include_package_data=True,
# Register myokit as a shell script
entry_points={
'console_scripts': ['myokit = myokit.__main__:main']
},
# List of dependencies
install_requires=[
'configparser',
'lxml',
'matplotlib>=1.5',
'numpy',
'scipy', # Used in data log, and data log viewer
'setuptools',
# PyQT or PySide?
# (PySide is pip installable, Travis can get PyQt from apt)
],
# Optional extras
extras_require={
'docs': [
'sphinx>=1.5, !=1.7.3', # Doc generation
],
'dev': [
'coverage', # Coverage checking
'flake8>=3', # Style checking
],
'optional': [
'sympy', # Used in formats.sympy
],
'gui': ['pyqt5', 'sip'],
'pyqt': ['pyqt5', 'sip'],
'pyside': ['pyside2'],
},
# Unit tests
test_suite='myokit.tests',
# See: https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html
# #setting-the-zip-safe-flag
zip_safe=False,
)