/
setup.py
65 lines (61 loc) · 1.93 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
from setuptools import setup, find_packages
from glob import glob
from os.path import join
# read version (single place of truth)
name = 'leopy-stat'
version = {}
with open("leopy/__about__.py") as fp:
exec(fp.read(), version)
version = version['__version__']
# read the contents of README file
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
cmdclass = {}
try:
from sphinx.setup_command import BuildDoc
cmdclass['build_html'] = BuildDoc
except ImportError:
pass
setup(name=name,
version=version,
description='Likelihood Estimation for Observational data with Python',
long_description=long_description,
long_description_content_type='text/x-rst',
python_requires='>=3.5',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Mathematics',
],
url='http://github.com/rfeldmann/leopy',
author='Robert Feldmann',
author_email='RobertFeldmann@gmx.de',
maintainer='Robert Feldmann',
maintainer_email='RobertFeldmann@gmx.de',
license='GNU GPLv3',
keywords='statistics likelihood probability',
packages=find_packages(),
include_package_data=True,
install_requires=[
'pandas>=0.24.0',
'scipy>=1.3.0',
'numpy',
'sphinx',
'sphinx_rtd_theme'
],
extras_require={
'MPI': ['schwimmbad', 'mpi4py'],
'multiprocessing': ['schwimmbad']
},
setup_requires=['pytest-runner', 'numpy', 'scipy'],
tests_require=['pytest'],
zip_safe=False,
cmdclass=cmdclass,
command_options={
'build_html': {
'project': ('setup.py', name),
'version': ('setup.py', version),
'source_dir': ('setup.py', 'docs'),
}
})