-
Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathsetup.py
45 lines (35 loc) · 1.32 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
import os
import re
import setuptools
def read(fname: str) -> str:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_version() -> str:
version_file = read("cmgp/version.py")
version_re = r"__version__ = \"(?P<version>.+)\""
version_raw = re.match(version_re, version_file)
if version_raw is None:
return "0.0.1"
version = version_raw.group("version")
return version
long_description = read("README.md")
install_requires = read("requirements.txt")
setuptools.setup(
name="cmgp",
version=find_version(),
author="Ahmed M. Alaa",
author_email="",
description="Bayesian Inference of Individualized Treatment Effects using Multi-task Gaussian Processes",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/vanderschaarlab/mlforhealthlabpub/tree/main/alg/causal_multitask_gaussian_processes_ite",
license="BSD-3-Clause",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Intended Audience :: Healthcare Industry",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
install_requires=install_requires,
)