-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathsetup.py
74 lines (63 loc) · 2.41 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env python
import os
import pathlib
from setuptools import find_namespace_packages, setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
with open(os.path.join(HERE, "README.md"), "r", encoding="utf-8") as fh:
long_description = fh.read()
# list of requirements for core packages
fuse_requirements = []
with open(os.path.join(HERE, "fuse/requirements.txt"), "r") as fh:
for line in fh:
if not line.startswith("#"):
fuse_requirements.append(line.strip())
# list of requirements for core packages for development
fuse_requirements_dev = []
with open(os.path.join(HERE, "fuse/requirements_dev.txt"), "r") as fh:
for line in fh:
if not line.startswith("#"):
fuse_requirements_dev.append(line.strip())
# list of requirements for fuseimg
fuseimg_requirements = []
with open(os.path.join(HERE, "fuseimg/requirements.txt"), "r") as fh:
for line in fh:
if not line.startswith("#"):
fuseimg_requirements.append(line.strip())
# list of requirements for fuse_examples
fuse_examples_requirements = []
with open(os.path.join(HERE, "fuse_examples/requirements.txt"), "r") as fh:
for line in fh:
if not line.startswith("#"):
fuse_examples_requirements.append(line.strip())
# all extra requires
all_requirements = fuseimg_requirements + fuse_requirements_dev
# version
from fuse.version import __version__ # noqa
version = __version__
setup(
name="fuse-med-ml",
version=version,
description="A python framework accelerating ML based discovery in the medical field by encouraging code reuse. Batteries included :)",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/BiomedSciAI/fuse-med-ml/",
author="IBM Research - Machine Learning for Healthcare and Life Sciences",
author_email="[email protected]",
packages=find_namespace_packages(),
license="Apache License 2.0",
install_requires=fuse_requirements,
extras_require={
"fuseimg": fuseimg_requirements,
"dev": fuse_requirements_dev,
"all": all_requirements,
"examples": fuse_examples_requirements,
},
python_requires=">=3.9",
classifiers=[
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)