-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
64 lines (56 loc) · 1.81 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
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
from setuptools import find_packages
try:
from setuptools import setup, Extension
setup, Extension
except ImportError:
from distutils.core import setup, Extension
setup, Extension
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
desc = open("README.rst").read()
required = ["numpy", "emcee"]
test_requires = ["mock"]
PACKAGE_PATH = os.path.abspath(os.path.join(__file__, os.pardir))
setup(
name="cosmoHammer",
version='0.6.1',
author='Joel Akeret',
author_email="[email protected]",
url="http://www.cosmology.ethz.ch/research/software-lab/cosmohammer.html",
license="GPLv3",
packages=find_packages(PACKAGE_PATH, "Tests"),
description="Cosmological parameter estimation with the MCMC Hammer",
long_description=desc,
install_requires=required,
test_requires=test_requires,
package_data={"": ["LICENSE"],
'cosmoHammer': ['data/*.dat']},
include_package_data=True,
keywords=["CosmoHammer",
"parameter estimation",
"cosmology",
"MCMC"],
cmdclass = {'test': PyTest},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
],
)