/
setup.py
executable file
·85 lines (69 loc) · 2.3 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#! /usr/bin/env python
descr = """Propensity score matching
"""
import os
DISTNAME = 'pscore_match'
DESCRIPTION = 'Propensity score matching'
LONG_DESCRIPTION = descr
AUTHOR = 'Kellie Ottoboni'
AUTHOR_EMAIL = 'kellieotto@berkeley.edu'
URL = 'http://www.github.com/kellieotto/pscore_match'
LICENSE = 'BSD 2 License'
DOWNLOAD_URL = 'http://www.github.com/kellieotto/pscore_match'
VERSION = '0.1dev'
PYTHON_VERSION = (2, 7)
INSTALL_REQUIRES = [
'numpy',
'scipy'
]
TESTS_REQUIRE = [
'coverage',
'nose',
'flake8'
]
def write_version_py(filename='pscore_match/version.py'):
template = """# THIS FILE IS GENERATED FROM THE PSCORE-MATCH SETUP.PY
version='%s'
"""
try:
fname = os.path.join(os.path.dirname(__file__), filename)
with open(fname, 'w') as f:
f.write(template % VERSION)
except IOError:
raise IOError("Could not open/write to pscore_match/version.py - did you "
"install using sudo in the past? If so, run\n"
"sudo chown -R your_username ./*\n"
"from package root to fix permissions, and try again.")
if __name__ == "__main__":
write_version_py()
from setuptools import setup
setup(
name=DISTNAME,
version=VERSION,
license=LICENSE,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
download_url=DOWNLOAD_URL,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
],
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
packages=['pscore_match', 'pscore_match.tests',],
)