-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
51 lines (39 loc) · 1.43 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
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("src/organsync/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
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt") as fp:
install_requires = fp.read()
setuptools.setup(
name="organsync",
version=find_version(),
author="Jeroen Berrevoets",
author_email="[email protected]",
description="Learning Queueing Policies for Organ Transplantation Allocation using Interpretable Counterfactual Survival Analysis",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/jeroenbe/organsync",
license="BSD-3-Clause",
packages=setuptools.find_packages("src"),
package_dir={"": "src"},
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,
include_package_data=True,
)