-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (138 loc) · 4.16 KB
/
pyproject.toml
File metadata and controls
158 lines (138 loc) · 4.16 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
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
# package build
# https://peps.python.org/pep-0518/
[build-system]
requires = ["setuptools>=69", "setuptools-scm>=8"] # not including wheel based on https://setuptools.pypa.io/en/latest/userguide/quickstart.html
build-backend = "setuptools.build_meta"
# package basics
# https://peps.python.org/pep-0621/
[project]
name = "allencell-segmenter-ml"
version = "1.0.1rc1"
description = "A plugin to leverage ML segmentation in napari"
readme = "README.md"
requires-python = ">=3.10,<3.11"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Framework :: napari",
"Intended Audience :: Science/Research",
"License :: Other/Proprietary License",
"License :: Free for non-commercial use",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = [
"npe2>=0.6.2",
"numpy<2.0",
"hydra-core==1.3.2",
"bioio==1.1.0",
"bioio-base==1.0.4",
"tifffile>=2023.4.12,<2025.2.18",
"watchdog",
"cyto-dl>=0.4.5",
"scikit-image!=0.23.0",
]
[project.urls]
Homepage = "https://github.com/AllenCell/allencell-ml-segmenter"
"Bug Tracker" = "https://github.com/AllenCell/allencell-ml-segmenter/issues"
Documentation = "https://github.com/AllenCell/allencell-ml-segmenter#README.md"
"User Support" = "https://github.com/AllenCell/allencell-ml-segmenter/issues"
# extra dependencies
# https://peps.python.org/pep-0621/#dependencies-optional-dependencies
[project.optional-dependencies]
napari = [
"napari>=0.6.2",
"pyqt5",
]
test_lint = [
"pytest<8.0.0", # https://docs.pytest.org/en/latest/contents.html
"pytest-cov", # https://pytest-cov.readthedocs.io/en/latest/
"pytest-qt",
"qtpy",
"pyqt5",
"black>=24.2.0",
'pytest-xvfb; sys_platform == "linux"',
"responses",
"mypy",
"toml",
"bumpver",
"napari>=0.6.2",
"magicgui"
]
dev = [
"black>=24.2.0",
"coverage>=7.2.2",
"flake8>=6.0.0",
"pytest>=7.2.2, <8.0.0",
"pytest-qt>=3.3.0",
"pytest-cov>=2.6.1",
"pyqt5>=5.15.9",
"bumpver>=2023.1129",
"build>=1.0.3",
"twine>=5.0.0",
"responses",
"mypy",
]
sphinx_docs = [
"linkify-it-py",
"sphinx",
"furo",
"sphinxext-opengraph",
"sphinx_inline_tabs",
"sphinx_copybutton",
"myst_parser",
"sphinx_togglebutton",
"sphinx_design",
]
# entry points
# https://peps.python.org/pep-0621/#entry-points
[project.entry-points."napari.manifest"]
allencell-segmenter-ml = "allencell_ml_segmenter:napari.yaml"
# build settings
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
# does not work with include-package-data due to https://github.com/pypa/setuptools/issues/3260
# exclude = ["*_tests*", "*sample*"]
[tool.setuptools_scm]
# https://pypi.org/project/bumpver
[tool.bumpver]
current_version = "1.0.1rc1"
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = false # no longer useful to tag here, must happen in create_publish_pr.yaml
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"', 'version = "{version}"']
"src/allencell_ml_segmenter/__init__.py" = ['__version__ = "{version}"']
# ".github/workflows/publish_to_pypi.yaml" = ["Current version: {version}"]
[tool.black]
line-length = 79 # should change to 88 once release_pipeline is merged
[tool.isort]
profile = "black"
line_length = 79
# https://flake8.pycqa.org/en/latest/user/options.html
# https://gitlab.com/durko/flake8-pyprojecttoml
# configure flake8 to work with black
[tool.flake8]
max-line-length = 88
max-complexity = 18
ignore = "E203,E266,E501,W503"
select = "B,C,E,F,W,T4"
# allow pytest testing on pyqt5
[tool.pytest]
qt_api="pyqt5"
[tool.mypy]
check_untyped_defs = true
disallow_untyped_defs = true
exclude = [
"src/allencell_ml_segmenter/_tests/*",
"src/debug.py",
]