Skip to content

Commit 7370edc

Browse files
committed
changed config for napari plugin and cli
1 parent d038c5a commit 7370edc

3 files changed

Lines changed: 16 additions & 33 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=42.0.0", "wheel"]
2+
requires = ["setuptools==68.2.2", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.black]
66
line-length = 79
77

88
[tool.isort]
99
profile = "black"
10-
line_length = 79
11-
12-
[project]
13-
name = "unet_lungs_segmentation"
14-
version = "1.0.5"
15-
description = "A U-Net model for lung segmentation in mice CT scans."
16-
authors = [
17-
{ name = "Chappuis Quentin", email = "quentin.chappuis@epfl.ch" }
18-
]
19-
license = { text = "BSD-3-Clause" }
20-
readme = "README.md"
21-
requires-python = ">=3.9"
22-
dependencies = [
23-
"napari[all]==0.4.18",
24-
"scikit-image==0.22.0",
25-
"tifffile==2023.9.18",
26-
"matplotlib==3.8.2",
27-
"csbdeep==0.7.4",
28-
"python-dotenv==1.0.0"
29-
]
10+
line_length = 79

setup.cfg

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
2-
name = unet-lungs-segmentation
3-
version = 1.0.5
2+
name = unet_lungs_segmentation
3+
version = 1.0.6
44
description = 3D U-Net model for the segmentation of the lungs in mice CT scans.
55
long_description = file: README.md
66
long_description_content_type = text/markdown
@@ -12,15 +12,15 @@ author = Quentin Chappuis, Center for Imaging, Ecole Polytechnique Federale de L
1212
author_email = quentin.chappuis@epfl.ch
1313
license = BSD-3-Clause
1414
license_files = LICENSE
15+
1516
classifiers =
1617
Development Status :: 2 - Pre-Alpha
17-
# Framework :: napari
18+
Framework :: napari
1819
Intended Audience :: Developers
1920
License :: OSI Approved :: BSD License
2021
Operating System :: OS Independent
2122
Programming Language :: Python
2223
Programming Language :: Python :: 3
23-
Programming Language :: Python :: 3 :: Only
2424
Programming Language :: Python :: 3.8
2525
Programming Language :: Python :: 3.9
2626
Programming Language :: Python :: 3.10
@@ -41,25 +41,27 @@ install_requires =
4141

4242
python_requires = >=3.8
4343
include_package_data = True
44+
4445
package_dir =
45-
=src
46+
= src
4647

4748
[options.packages.find]
4849
where = src
4950

5051
[options.entry_points]
5152
napari.manifest =
52-
UNet-lungs-segmentation = unet_lungs_segmentation:napari.yaml
53+
unet-lungs-segmentation = unet_lungs_segmentation:napari.yaml
54+
5355
console_scripts =
5456
uls_predict_image = unet_lungs_segmentation.cli:cli_predict_image
5557
uls_predict_folder = unet_lungs_segmentation.cli:cli_predict_folder
5658

5759
[options.extras_require]
5860
testing =
5961
tox
60-
pytest # https://docs.pytest.org/en/latest/contents.html
61-
pytest-cov # https://pytest-cov.readthedocs.io/en/latest/
62-
pytest-qt # https://pytest-qt.readthedocs.io/en/latest/
62+
pytest
63+
pytest-cov
64+
pytest-qt
6365
napari
6466
pyqt5
6567

src/unet_lungs_segmentation/napari.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: UNet-lungs-segmentation
1+
name: unet-lungs-segmentation
22
display_name: Mouse lungs segmentation
33
contributions:
44
commands:
5-
- id: UNet-lungs-segmentation.predict
5+
- id: unet-lungs-segmentation.predict
66
title: Lungs segmentation
77
python_name: unet_lungs_segmentation.napari_plugin:LungsSegmentationWidget
88
widgets:
9-
- command: UNet-lungs-segmentation.predict
9+
- command: unet-lungs-segmentation.predict
1010
display_name: Lungs segmentation
1111
sample_data:
1212
- key: lung_ct

0 commit comments

Comments
 (0)