Skip to content

Commit 2fcca12

Browse files
浅見正洋浅見正洋
authored andcommitted
[add] setup
1 parent 186c611 commit 2fcca12

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
import os
2+
import sys
3+
4+
from setuptools import setup
5+
6+
7+
here = os.path.abspath(os.path.dirname(__file__))
8+
9+
install_requires = [
10+
'pandas',
11+
'matplotlib',
12+
'numpy',
13+
'tqdm',
14+
'sklearn',
15+
'scipy',
16+
'toolz',
17+
'bayesian-optimization >= 1.1.0'
18+
]
19+
tests_require = [
20+
'pytest',
21+
'pytest-cov',
22+
'mock',
23+
'tox'
24+
]
25+
setup_requires = [
26+
'flake8',
27+
'isort'
28+
]
29+
extras_require = {
30+
'docs': [
31+
'ipython',
32+
'jupyter'
33+
]
34+
}
35+
36+
packages = ['synthdid']
37+
38+
_version = {}
39+
_version_path = os.path.join(here, 'synthdid', '__version__.py')
40+
41+
with open(_version_path, 'r') as f:
42+
exec(f.read(), _version)
43+
44+
with open('README.md', 'r') as f:
45+
readme = f.read()
46+
47+
setup(
48+
name='pysynthdid',
49+
version=_version['__version__'],
50+
author='MasaAsami',
51+
author_email='[email protected]',
52+
url='https://github.com/MasaAsami/pysynthdid',
53+
description= "Python version of Synthetic difference in differences",
54+
long_description=readme,
55+
long_description_content_type='text/markdown',
56+
packages=packages,
57+
include_package_data=True,
58+
install_requires=install_requires,
59+
tests_require=tests_require,
60+
setup_requires=setup_requires,
61+
extras_require=extras_require,
62+
license='Apache License 2.0',
63+
keywords='causal-inference',
64+
classifiers=[
65+
'Intended Audience :: Developers',
66+
'Intended Audience :: Education',
67+
'Intended Audience :: Science/Research',
68+
'License :: OSI Approved :: Apache Software License',
69+
'Operating System :: Unix',
70+
'Programming Language :: Python :: 3.6',
71+
'Programming Language :: Python :: 3.7',
72+
'Programming Language :: Python :: 3.8',
73+
'Programming Language :: Python :: 3.9',
74+
'Topic :: Scientific/Engineering',
75+
],
76+
project_urls={
77+
'Source': 'https://github.com/MasaAsami/pysynthdid'
78+
},
79+
python_requires='>=3',
80+
test_suite='tests'

0 commit comments

Comments
 (0)