/
setup.py
57 lines (49 loc) · 1.78 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
#!/usr/bin/env python
from __future__ import absolute_import
import io
import re
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def find_version():
version_file = io.open(os.path.join(os.path.dirname(__file__), 'getdist/__init__.py')).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
def get_long_description():
with open('README.rst') as f:
lines = f.readlines()
i = -1
while not '=====' in lines[i]: i -= 1
return "".join(lines[:i])
setup(name='GetDist',
version=find_version(),
description='GetDist Monte Carlo sample analysis, plotting and GUI',
long_description=get_long_description(),
author='Antony Lewis',
url="https://github.com/cmbant/getdist",
packages=['getdist', 'getdist.gui', 'paramgrid', 'getdist_tests'],
scripts=['GetDist.py', 'GetDistGUI.py'],
test_suite='getdist_tests',
package_data={'getdist': ['analysis_defaults.ini', 'distparam_template.ini']},
requires=[
'numpy',
'matplotlib',
'six',
"scipy (>=0.11.0)"],
# PySide is needed for the GUI
# optional (for faster file read)
# 'pandas (>=0.14.0)'
classifiers=[
"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',
],
keywords=['MCMC', 'KDE', 'sample', 'density estimation', 'plot']
)