-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
32 lines (26 loc) · 854 Bytes
/
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
import io
import os
from setuptools import find_packages, setup
MAJOR = "0"
MINOR = "0.1"
if os.path.exists("../major.version"):
with open("../major.version", "rt") as bf:
MAJOR = str(bf.read()).strip()
if os.path.exists("../minor.version"):
with open("../minor.version", "rt") as bf:
MINOR = str(bf.read()).strip()
VERSION = "{}.{}".format(MAJOR, MINOR)
with io.open("README.md", "r", encoding="utf-8") as f:
README = f.read()
setup(
name="omop-learn",
version=VERSION,
description="Machine learning on healthcare data stored in OHDSI's OMOP CDM.",
long_description=README,
long_description_content_type="text/x-rst",
namespace_packages=[],
package_dir={"": "src"},
packages=find_packages(where="src", exclude=["test*"]),
include_package_data=True,
python_requires=">=3.5,<4",
)