-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
174 lines (159 loc) · 3.81 KB
/
pyproject.toml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# PIP, using PEP621
[project]
name = "utag"
authors = [
{name = "Junbum Kim", email = "[email protected]"},
{name = "Andre Rendeiro", email = "[email protected]"},
]
description = "Unsupervised discovery of tissue architechture with graphs (UTAG)"
readme = "README.md"
keywords = [
"computational biology",
"bioinformatics",
"imaging",
"multiplexed imaging",
]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Development Status :: 3 - Alpha",
"Typing :: Typed",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
#license = "gpt3"
requires-python = ">=3.5"
# not yet supported by pip!
dependencies = [
"numpy>=1.19",
"pandas>=1.0.1",
"anndata",
"scanpy",
"parc",
"squidpy",
"scipy>=1.6",
"matplotlib>=3.4",
"tqdm",
"networkx>=2.4",
"parmap",
"scikit-learn"
]
dynamic = ['version']
[project.optional-dependencies]
# not yet supported by pip!
dev = [
"ipython",
"black[d]",
"mypy", # pin to version supporting pyproject.toml
"pylint",
"git-lint",
"pytest",
"rich",
# data-science-types
"PyQt5",
]
test = [
"pytest>=6",
"pytest-cov",
]
doc = [
"Sphinx",
"sphinx-issues",
"sphinx-rtd-theme",
"sphinx-autodoc-typehints"
]
[project.urls]
homepage = "https://github.com/ElementoLab/utag"
documentation = "https://github.com/ElementoLab/utag/blob/main/README.md"
repository = "https://github.com/ElementoLab/utag"
[build-system]
# requires = ["poetry>=0.12", "setuptools>=45", "wheel", "poetry-dynamic-versioning"]
# build-backend = "poetry.masonry.api"
requires = ["setuptools==68.2.2", "wheel", "setuptools_scm[toml]>=6.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "utag/_version.py"
write_to_template = 'version = __version__ = "{version}"'
# Poetry
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.poetry]
name = "utag"
version = "0.0.0" # waiting on next release of poetry to use dynamic-versioning extension
description = "Unsupervised discovery of tissue architechture with graphs (UTAG)"
authors = ["Junbum Kim <[email protected]>", "Andre Rendeiro <[email protected]>"]
license = "GPL-3.0-or-later"
[tool.poetry.dependencies]
python = "^3.8"
numpy = "^1.19"
pandas = "^1.0.1"
scipy = "^1.6"
scikit-image = "^1.18"
matplotlib = "^3.4"
networkx = "^2.4"
tensorflow-gpu = "^2.4.1"
[tool.poetry.dev-dependencies]
ipython = "^7.16.1"
pylint = "^2.5.3"
git-lint = "^0.1.2"
black = {extras = ["d"], version = "^19.10b0"}
mypy = "^0.782"
pytest = "^5.4.3"
Sphinx = "^3.1.1"
sphinx-issues = "^1.2.0"
sphinx-rtd-theme = "^0.5.0"
sphinx-autodoc-typehints = "^1.12.0"
[tool.poetry.extras]
[tool.black]
line-length = 90
target-version = ['py36']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.mypy]
python_version = '3.8'
warn_return_any = true
warn_unused_configs = true
# Packages without type annotations in shed yet
[[tool.mypy.overrides]]
module = [
'numpy.*',
'pandas.*',
'scipy.*',
'skimage.*',
'matplotlib.*',
'networkx.*',
#
'utag.*'
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --strict-markers"
testpaths = [
"tests",
"integration",
]
markers = [
'slow', # 'marks tests as slow (deselect with "-m 'not slow'")',
'serial'
]