-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
52 lines (45 loc) · 1.64 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
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools import find_packages
package_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(package_directory, "README.md"), encoding="utf-8") as fh:
long_description = fh.read()
with open(os.path.join(package_directory, "requirements.txt")) as req_file:
requirements = req_file.readlines()
on_rtd = os.environ.get("READTHEDOCS") == "True"
if on_rtd:
requirements = []
setup_args = dict(
name="causeinfer",
packages=find_packages(where="src"),
package_dir={"": "src"},
include_package_data=True,
version="1.0.2",
author="Andrew Tavis McAllister",
author_email="[email protected]",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
install_requires=requirements,
description="Machine learning based causal inference/uplift in Python",
long_description=long_description,
long_description_content_type="text/markdown",
license="new BSD",
url="https://github.com/andrewtavis/causeinfer",
)
if __name__ == "__main__":
setup(**setup_args)