forked from stan-dev/cmdstanpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (53 loc) · 1.58 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
#!/usr/bin/env python
import os
import re
import setuptools
def readme_contents() -> str:
with open('README.md', 'r') as fd:
src = fd.read()
return src
def get_version() -> str:
version_file = open(os.path.join('cmdstanpy', '_version.py'))
version_contents = version_file.read()
return re.search("__version__ = '(.*?)'", version_contents).group(1)
_classifiers = """
Programming Language :: Python :: 3
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Natural Language :: English
Programming Language :: Python
Topic :: Scientific/Engineering :: Information Analysis
"""
INSTALL_REQUIRES = ['numpy', 'pandas']
EXTRAS_REQUIRE = {
'all': ['tqdm', 'ujson'],
'tests': ['pytest', 'pytest-cov', 'testfixtures'],
'docs': [
'sphinx',
'sphinx-gallery',
'sphinx_rtd_theme',
'numpydoc',
'matplotlib',
],
}
setuptools.setup(
name='cmdstanpy',
version=get_version(),
description='Python interface to CmdStan',
long_description=readme_contents(),
long_description_content_type="text/markdown",
author='Stan Dev Team',
url='https://github.com/stan-dev/cmdstanpy',
packages=['cmdstanpy'],
entry_points={
'console_scripts': [
'install_cmdstan=cmdstanpy.install_cmdstan:main',
'install_cxx_toolchain=cmdstanpy.install_cxx_toolchain:main',
]
},
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
classifiers=_classifiers.strip().split('\n'),
)