-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (43 loc) · 1.64 KB
/
setup.py
File metadata and controls
53 lines (43 loc) · 1.64 KB
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
#!/usr/bin/env python
import sys
import os
import re
from setuptools import setup, find_packages
def load_readme():
with open('README.rst', 'r') as fd:
return fd.read()
def load_requirements():
"""Parse requirements.txt"""
reqs_path = os.path.join('.', 'requirements.txt')
with open(reqs_path, 'r') as fd:
requirements = [line.rstrip() for line in fd]
return requirements
sys.path.append("./tests")
package_name = 'causaltestdata'
init_path = os.path.join(os.path.dirname(__file__), package_name, '__init__.py')
with open(init_path) as f:
version = re.search("__version__ = '([^']+)'", f.read()).group(1)
setup(name=package_name,
version=version,
description='A toolkit to generate pseudo dataset for causal inference.',
long_description=load_readme(),
author='Satoru Kobayashi',
author_email='sat@nii.ac.jp',
url='https://github.com/cpflat/causaltestdata/',
install_requires=load_requirements(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
"Intended Audience :: Developers",
'License :: OSI Approved :: BSD License',
"Operating System :: OS Independent",
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules'],
license='The 3-Clause BSD License',
packages=find_packages(),
include_package_data=True,
test_suite="tests"
)