Skip to content

Commit d5f7451

Browse files
committed
Bump version
1 parent ebb2248 commit d5f7451

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

MANIFEST.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
include LICENSE
22
include README.md
33
include requirements.txt
4-
include napari_cellseg3d/res/*.png
5-
include napari_cellseg3d/code_models/models/pretrained/*.json
4+
include napari.yaml
5+
recursive-include res *.png
6+
recursive-include code_models *.json
67

78
recursive-exclude * __pycache__
89
recursive-exclude * *.py[co]

napari_cellseg3d/code_plugins/plugin_helper.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ def __init__(self, viewer: "napari.viewer.Viewer"):
2323
self.repo_url = "https://github.com/AdaptiveMotorControlLab/CellSeg3d"
2424
self._viewer = viewer
2525

26-
path = pathlib.Path(__file__).parent.resolve()
27-
url = str(path) + "../res/logo_alpha.png"
28-
image = QPixmap(url)
26+
logo_path = str(
27+
pathlib.Path(__file__).parent.resolve() / "../res/logo_alpha.png"
28+
)
29+
print(logo_path)
30+
image = QPixmap(logo_path)
2931

3032
self.logo_label = ui.Button(func=lambda: ui.open_url(self.repo_url))
3133
self.logo_label.setIcon(QIcon(image))

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ dependencies = [
3333
requires = ["setuptools", "wheel"]
3434
build-backend = "setuptools.build_meta"
3535

36+
[tool.setuptools]
37+
include-package-data = true
38+
3639
[tool.setuptools.packages.find]
3740
where = ["."]
3841

3942
[tool.setuptools.package-data]
40-
"*" = ["napari_cellseg3d/res/*.png", "napari_cellseg3d/code_models/models/pretrained/*.json", "*.yaml"]
43+
"*" = ["res/*.png", "code_models/models/pretrained/*.json", "*.yaml"]
4144

4245
[tool.ruff]
4346
# Never enforce `E501` (line length violations).

setup.cfg

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ install_requires =
6464
where = .
6565

6666
[options.package_data]
67-
* =
68-
napari_cellseg3d/res/*.png
69-
napari_cellseg3d/code_models/models/pretrained/*.json
67+
napari-cellseg3d =
68+
res/*.png
69+
code_models/models/pretrained/*.json
7070
napari.yaml
71-
napari-cellseg3d = napari.yaml
7271

7372
[options.entry_points]
7473
napari.manifest =

0 commit comments

Comments
 (0)