-
Notifications
You must be signed in to change notification settings - Fork 78
/
setup.py
56 lines (51 loc) · 1.8 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
dir_path = os.path.dirname(os.path.realpath(__file__))
version_string = open(os.path.join(dir_path, 'py', 'dynesty',
'_version.py')).read()
VERS = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VERS, version_string, re.M)
__version__ = mo.group(1)
try:
import pypandoc
with open('README.md', 'r') as f:
txt = f.read()
txt = re.sub('<[^<]+>', '', txt)
long_description = pypandoc.convert(txt, 'rst', 'md')
except ImportError:
long_description = open('README.md').read()
setup(name="dynesty",
url="https://github.com/joshspeagle/dynesty",
version=__version__,
author="Joshua S Speagle, Sergey E Koposov",
author_email="[email protected]",
packages=["dynesty"],
license="MIT",
description=("A dynamic nested sampling package for computing Bayesian "
"posteriors and evidences."),
long_description=long_description,
long_description_content_type="text/markdown",
package_data={
"":
["README.md", "LICENSE", "AUTHORS.md", 'CHANGELOG.md', 'TESTING.md']
},
package_dir={'': 'py/'},
include_package_data=True,
keywords=[
"nested sampling", "dynamic", "monte carlo", "bayesian", "inference",
"modeling"
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Natural Language :: English", "Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research"
])