Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Achard committed Apr 11, 2023
1 parent ebb2248 commit d5f7451
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
5 changes: 3 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
include LICENSE
include README.md
include requirements.txt
include napari_cellseg3d/res/*.png
include napari_cellseg3d/code_models/models/pretrained/*.json
include napari.yaml
recursive-include res *.png
recursive-include code_models *.json

recursive-exclude * __pycache__
recursive-exclude * *.py[co]
8 changes: 5 additions & 3 deletions napari_cellseg3d/code_plugins/plugin_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ def __init__(self, viewer: "napari.viewer.Viewer"):
self.repo_url = "https://github.com/AdaptiveMotorControlLab/CellSeg3d"
self._viewer = viewer

path = pathlib.Path(__file__).parent.resolve()
url = str(path) + "../res/logo_alpha.png"
image = QPixmap(url)
logo_path = str(
pathlib.Path(__file__).parent.resolve() / "../res/logo_alpha.png"
)
print(logo_path)
image = QPixmap(logo_path)

self.logo_label = ui.Button(func=lambda: ui.open_url(self.repo_url))
self.logo_label.setIcon(QIcon(image))
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@ dependencies = [
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
where = ["."]

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

[tool.ruff]
# Never enforce `E501` (line length violations).
Expand Down
7 changes: 3 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ install_requires =
where = .

[options.package_data]
* =
napari_cellseg3d/res/*.png
napari_cellseg3d/code_models/models/pretrained/*.json
napari-cellseg3d =
res/*.png
code_models/models/pretrained/*.json
napari.yaml
napari-cellseg3d = napari.yaml

[options.entry_points]
napari.manifest =
Expand Down

0 comments on commit d5f7451

Please sign in to comment.