-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
92 lines (84 loc) · 2.77 KB
/
setup.py
File metadata and controls
92 lines (84 loc) · 2.77 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
"""Install package."""
import io
import re
from pkg_resources import parse_requirements
from setuptools import find_packages, setup
def read_version(filepath: str) -> str:
"""Read the __version__ variable from the file.
Args:
filepath: probably the path to the root __init__.py
Returns:
the version
"""
match = re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
io.open(filepath, encoding="utf_8_sig").read(),
)
if match is None:
raise SystemExit("Version number not found.")
return match.group(1)
# ease installation during development
vcs = re.compile(r"(git|svn|hg|bzr)\+")
try:
with open("requirements.txt") as fp:
VCS_REQUIREMENTS = [
str(requirement)
for requirement in parse_requirements(fp)
if vcs.search(str(requirement))
]
except FileNotFoundError:
# requires verbose flags to show
print("requirements.txt not found.")
VCS_REQUIREMENTS = []
# TODO: Update these values according to the name of the module.
setup(
name="ai4scr-scQUEST",
version=read_version("scQUEST/__init__.py"), # single place for version
description="scQUEST package",
long_description='scQUEST, an open-source Python library for cell type identification and quantification of tumor ecosystem heterogeneity in patient cohorts.',
url="https://github.ibm.com/art-zurich/scQUEST",
author="Adriano Martinelli, Marianna Rapsomaniki, Johanna Wagner",
author_email="art@zurich.ibm.com",
# the following exclusion is to prevent shipping of tests.
# if you do include them, add pytest to the required packages.
packages=find_packages(".", exclude=["*tests*"]),
package_data={"scQUEST": ["py.typed"]},
extras_require={
"vcs": VCS_REQUIREMENTS,
"test": ["pytest", "pytest-cov"],
"dev": [
# tests
"pytest",
"pytest-cov",
# checks
"black==21.5b0",
"flake8",
"mypy",
# docs
"sphinx",
"sphinx-autodoc-typehints",
"better-apidoc",
"six",
"sphinx_rtd_theme",
"myst-parser",
#
],
},
install_requires=[
# versions should be very loose here, just exclude unsuitable versions
# because your dependencies also have dependencies and so on ...
# being too strict here will make dependency resolution harder
'pandas>=1.3',
'torch>=1.11',
'scikit-learn>=1.0',
'umap-learn>=0.5.3',
'numpy>=1.2',
'pytorch-lightning>=1.6',
'anndata>0.7',
'matplotlib>=3.5',
'seaborn>=0.11',
'torchmetrics>=0.7',
'ipywidgets>=7.7',
'protobuf==3.20.0'
],
)