-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·48 lines (41 loc) · 1.29 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
import os
import sys
import re
try:
from setuptools import setup
setup
except ImportError:
from distutils.core import setup
setup
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
vre = re.compile("__version__ = \"(.*?)\"")
m = open(os.path.join(os.path.dirname(os.path.abspath(__file__)),
"emcee", "__init__.py")).read()
version = vre.findall(m)[0]
setup(
name="emcee",
version=version,
author="Daniel Foreman-Mackey",
author_email="[email protected]",
packages=["emcee"],
url="http://danfm.ca/emcee/",
license="GPLv2",
description="Kick ass affine-invariant ensemble MCMC sampling",
long_description=open("README.rst").read() + "\n\n"
+ "Changelog\n"
+ "---------\n\n"
+ open("HISTORY.rst").read(),
package_data={"": ["LICENSE", "AUTHORS.rst"]},
include_package_data=True,
install_requires=["numpy"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
)