-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
106 lines (91 loc) · 3.45 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
# -*- coding: utf-8 -*-
# Always prefer setuptools over distutils
#from ez_setup import use_setuptools
#use_setuptools()
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path, walk
import versioneer
def main():
# additional files
data_files = []
for dirpath, dirnames, filenames in walk('pleione/example'):
tmp = []
for filename in filenames:
tmp.append(path.join(dirpath, filename))
data_files.append(('pleione', tmp))
#print(data_files)
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='pleione',
license='GPLv3+',
version='1.6.1',
#version=versioneer.get_version(),
description='Pleione: statistical and multi-objective strategies to calibrate rule-based models',
long_description=long_description,
#long_description_content_type='text/markdown',
url='https://github.com/glucksfall/pleione',
author='Rodrigo Santibáñez',
author_email='[email protected]',
classifiers=[
#'Development Status :: 1 - Planning',
#'Development Status :: 2 - Pre-Alpha',
#'Development Status :: 3 - Alpha',
#'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
#'Development Status :: 6 - Mature',
#'Development Status :: 7 - Inactive',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
# Pick your license as you wish
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
#'Programming Language :: Python :: 2',
#'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
# other classifiers added by author
'Environment :: Console',
'Operating System :: Unix',
#'Operating System :: Microsoft :: Windows',
#'Operating System :: MacOS',
],
python_requires='~=3.0',
keywords=['systems biology', 'stochastic modeling', 'parameter estimation'],
install_requires=['numpy', 'pandas', 'statsmodels', 'importlib-resources', 'importlib'],
# WARNING: seems to be bdist_wheel only
packages=find_packages(exclude=('contrib', 'docs', 'tests', 'wellek')),
# using the MANIFEST.in file to exclude same folders from sdist
include_package_data=False,
# WARNING: use this way to install in the package folder and
# to have access files using importlib_resources or importlib.resources
# bdist_wheel only
package_data = {
'pleione' : [
'examples/*',
'examples/*/*',
'examples/*/*/*',
]
},
# WARNING: do not use data_files as the installation path is hard to determine
# e.g.: ubuntu 18.04 install to /usr/local/installation_path or /$USER/.local/installation_path
#data_files=[('installation_path', ['example/ucrit-twotails-5percent.txt'])],
#data_files=data_files,
# others
project_urls={
'Manual': 'https://pleione.readthedocs.io',
'Bug Reports': 'https://github.com/glucksfall/pleione/issues',
'Source': 'https://github.com/glucksfall/pleione',
},
)
if __name__ == '__main__':
main()