napari-tmidas 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. napari_tmidas-0.1.1/.github/dependabot.yml +14 -0
  2. napari_tmidas-0.1.1/.github/workflows/test_and_deploy.yml +91 -0
  3. napari_tmidas-0.1.1/.gitignore +84 -0
  4. napari_tmidas-0.1.1/.napari-hub/DESCRIPTION.md +9 -0
  5. napari_tmidas-0.1.1/.napari-hub/config.yml +9 -0
  6. napari_tmidas-0.1.1/.pre-commit-config.yaml +27 -0
  7. napari_tmidas-0.1.1/LICENSE +28 -0
  8. napari_tmidas-0.1.1/MANIFEST.in +5 -0
  9. napari_tmidas-0.1.1/PKG-INFO +134 -0
  10. napari_tmidas-0.1.1/README.md +67 -0
  11. napari_tmidas-0.1.1/pyproject.toml +119 -0
  12. napari_tmidas-0.1.1/setup.cfg +4 -0
  13. napari_tmidas-0.1.1/src/napari_tmidas/__init__.py +25 -0
  14. napari_tmidas-0.1.1/src/napari_tmidas/_reader.py +73 -0
  15. napari_tmidas-0.1.1/src/napari_tmidas/_sample_data.py +22 -0
  16. napari_tmidas-0.1.1/src/napari_tmidas/_tests/__init__.py +0 -0
  17. napari_tmidas-0.1.1/src/napari_tmidas/_tests/test_reader.py +31 -0
  18. napari_tmidas-0.1.1/src/napari_tmidas/_tests/test_sample_data.py +7 -0
  19. napari_tmidas-0.1.1/src/napari_tmidas/_tests/test_widget.py +66 -0
  20. napari_tmidas-0.1.1/src/napari_tmidas/_tests/test_writer.py +7 -0
  21. napari_tmidas-0.1.1/src/napari_tmidas/_version.py +21 -0
  22. napari_tmidas-0.1.1/src/napari_tmidas/_widget.py +129 -0
  23. napari_tmidas-0.1.1/src/napari_tmidas/_writer.py +66 -0
  24. napari_tmidas-0.1.1/src/napari_tmidas/napari.yaml +57 -0
  25. napari_tmidas-0.1.1/src/napari_tmidas.egg-info/PKG-INFO +134 -0
  26. napari_tmidas-0.1.1/src/napari_tmidas.egg-info/SOURCES.txt +29 -0
  27. napari_tmidas-0.1.1/src/napari_tmidas.egg-info/dependency_links.txt +1 -0
  28. napari_tmidas-0.1.1/src/napari_tmidas.egg-info/entry_points.txt +2 -0
  29. napari_tmidas-0.1.1/src/napari_tmidas.egg-info/requires.txt +12 -0
  30. napari_tmidas-0.1.1/src/napari_tmidas.egg-info/top_level.txt +1 -0
  31. napari_tmidas-0.1.1/tox.ini +33 -0
@@ -0,0 +1,14 @@
1
+ # Dependabot configuration
2
+ # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates#enabling-github-dependabot-version-updates
3
+ # https://til.simonwillison.net/github/dependabot-python-setup
4
+
5
+ version: 2
6
+ updates:
7
+ - package-ecosystem: pip
8
+ directory: "/"
9
+ schedule:
10
+ interval: monthly
11
+ groups:
12
+ python-packages:
13
+ patterns:
14
+ - "*"
@@ -0,0 +1,91 @@
1
+ # This workflows will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
+
4
+ name: tests
5
+
6
+ on:
7
+ push:
8
+ branches:
9
+ - main
10
+ - npe2
11
+ tags:
12
+ - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
13
+ pull_request:
14
+ branches:
15
+ - main
16
+ - npe2
17
+ workflow_dispatch:
18
+
19
+ jobs:
20
+ test:
21
+ name: ${{ matrix.platform }} py${{ matrix.python-version }}
22
+ runs-on: ${{ matrix.platform }}
23
+ timeout-minutes: 30
24
+ strategy:
25
+ matrix:
26
+ platform: [ubuntu-latest, windows-latest, macos-latest]
27
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
28
+
29
+ steps:
30
+ - uses: actions/checkout@v4
31
+
32
+ - name: Set up Python ${{ matrix.python-version }}
33
+ uses: actions/setup-python@v5
34
+ with:
35
+ python-version: ${{ matrix.python-version }}
36
+
37
+ # these libraries enable testing on Qt on linux
38
+ - uses: tlambert03/setup-qt-libs@v1
39
+
40
+ # strategy borrowed from vispy for installing opengl libs on windows
41
+ - name: Install Windows OpenGL
42
+ if: runner.os == 'Windows'
43
+ run: |
44
+ git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
45
+ powershell gl-ci-helpers/appveyor/install_opengl.ps1
46
+
47
+ # note: if you need dependencies from conda, considering using
48
+ # setup-miniconda: https://github.com/conda-incubator/setup-miniconda
49
+ # and
50
+ # tox-conda: https://github.com/tox-dev/tox-conda
51
+ - name: Install dependencies
52
+ run: |
53
+ python -m pip install --upgrade pip
54
+ python -m pip install setuptools tox tox-gh-actions
55
+
56
+ # this runs the platform-specific tests declared in tox.ini
57
+ - name: Test with tox
58
+ uses: aganders3/headless-gui@v2
59
+ with:
60
+ run: python -m tox
61
+ env:
62
+ PLATFORM: ${{ matrix.platform }}
63
+
64
+ - name: Coverage
65
+ uses: codecov/codecov-action@v3
66
+
67
+ deploy:
68
+ # this will run when you have tagged a commit, starting with "v*"
69
+ # and requires that you have put your twine API key in your
70
+ # github secrets (see readme for details)
71
+ needs: [test]
72
+ runs-on: ubuntu-latest
73
+ if: contains(github.ref, 'tags')
74
+ steps:
75
+ - uses: actions/checkout@v4
76
+ - name: Set up Python
77
+ uses: actions/setup-python@v5
78
+ with:
79
+ python-version: "3.x"
80
+ - name: Install dependencies
81
+ run: |
82
+ python -m pip install --upgrade pip
83
+ pip install -U setuptools setuptools_scm wheel twine build
84
+ - name: Build and publish
85
+ env:
86
+ TWINE_USERNAME: __token__
87
+ TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
88
+ run: |
89
+ git tag
90
+ python -m build .
91
+ twine upload dist/*
@@ -0,0 +1,84 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ env/
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+
27
+ # PyInstaller
28
+ # Usually these files are written by a python script from a template
29
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
30
+ *.manifest
31
+ *.spec
32
+
33
+ # Installer logs
34
+ pip-log.txt
35
+ pip-delete-this-directory.txt
36
+
37
+ # Unit test / coverage reports
38
+ htmlcov/
39
+ .tox/
40
+ .coverage
41
+ .coverage.*
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+ *,cover
46
+ .hypothesis/
47
+ .napari_cache
48
+
49
+ # Translations
50
+ *.mo
51
+ *.pot
52
+
53
+ # Django stuff:
54
+ *.log
55
+ local_settings.py
56
+
57
+ # Flask instance folder
58
+ instance/
59
+
60
+ # Sphinx documentation
61
+ docs/_build/
62
+
63
+ # MkDocs documentation
64
+ /site/
65
+
66
+ # PyBuilder
67
+ target/
68
+
69
+ # Pycharm and VSCode
70
+ .idea/
71
+ venv/
72
+ .vscode/
73
+
74
+ # IPython Notebook
75
+ .ipynb_checkpoints
76
+
77
+ # pyenv
78
+ .python-version
79
+
80
+ # OS
81
+ .DS_Store
82
+
83
+ # written by setuptools_scm
84
+ **/_version.py
@@ -0,0 +1,9 @@
1
+ <!-- This file is a placeholder for customizing description of your plugin
2
+ on the napari hub if you wish. The readme file will be used by default if
3
+ you wish not to do any customization for the napari hub listing.
4
+
5
+ If you need some help writing a good description, check out our
6
+ [guide](https://github.com/chanzuckerberg/napari-hub/wiki/Writing-the-Perfect-Description-for-your-Plugin)
7
+ -->
8
+
9
+ The developer has not yet provided a napari-hub specific description.
@@ -0,0 +1,9 @@
1
+ # You may use this file to customize how your plugin page appears
2
+ # on the napari hub: https://www.napari-hub.org/
3
+ # See their wiki for details https://github.com/chanzuckerberg/napari-hub/wiki
4
+
5
+ # Please note that this file should only be used IN ADDITION to entering
6
+ # metadata fields (such as summary, description, authors, and various URLS)
7
+ # in your standard python package metadata (e.g. setup.cfg, setup.py, or
8
+ # pyproject.toml), when you would like those fields to be displayed
9
+ # differently on the hub than in the napari application.
@@ -0,0 +1,27 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: check-docstring-first
6
+ - id: end-of-file-fixer
7
+ - id: trailing-whitespace
8
+ exclude: ^\.napari-hub/.*
9
+ - id: check-yaml # checks for correct yaml syntax for github actions ex.
10
+ - repo: https://github.com/astral-sh/ruff-pre-commit
11
+ rev: v0.9.9
12
+ hooks:
13
+ - id: ruff
14
+ - repo: https://github.com/psf/black
15
+ rev: 25.1.0
16
+ hooks:
17
+ - id: black
18
+ - repo: https://github.com/tlambert03/napari-plugin-checks
19
+ rev: v0.3.0
20
+ hooks:
21
+ - id: napari-plugin-checks
22
+ # https://mypy.readthedocs.io/en/stable/
23
+ # you may wish to add this as well!
24
+ # - repo: https://github.com/pre-commit/mirrors-mypy
25
+ # rev: v1.9.0
26
+ # hooks:
27
+ # - id: mypy
@@ -0,0 +1,28 @@
1
+
2
+ Copyright (c) 2025, Marco Meer
3
+ All rights reserved.
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ * Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ * Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ * Neither the name of copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,5 @@
1
+ include LICENSE
2
+ include README.md
3
+
4
+ recursive-exclude * __pycache__
5
+ recursive-exclude * *.py[co]
@@ -0,0 +1,134 @@
1
+ Metadata-Version: 2.2
2
+ Name: napari-tmidas
3
+ Version: 0.1.1
4
+ Summary: Tissue Microscopy Image Data Analysis Suite
5
+ Author: Marco Meer
6
+ Author-email: marco.meer@pm.me
7
+ License:
8
+ Copyright (c) 2025, Marco Meer
9
+ All rights reserved.
10
+
11
+ Redistribution and use in source and binary forms, with or without
12
+ modification, are permitted provided that the following conditions are met:
13
+
14
+ * Redistributions of source code must retain the above copyright notice, this
15
+ list of conditions and the following disclaimer.
16
+
17
+ * Redistributions in binary form must reproduce the above copyright notice,
18
+ this list of conditions and the following disclaimer in the documentation
19
+ and/or other materials provided with the distribution.
20
+
21
+ * Neither the name of copyright holder nor the names of its
22
+ contributors may be used to endorse or promote products derived from
23
+ this software without specific prior written permission.
24
+
25
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
29
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
+
36
+ Project-URL: Bug Tracker, https://github.com/macromeer/napari-tmidas/issues
37
+ Project-URL: Documentation, https://github.com/macromeer/napari-tmidas#README.md
38
+ Project-URL: Source Code, https://github.com/macromeer/napari-tmidas
39
+ Project-URL: User Support, https://github.com/macromeer/napari-tmidas/issues
40
+ Classifier: Development Status :: 2 - Pre-Alpha
41
+ Classifier: Framework :: napari
42
+ Classifier: Intended Audience :: Developers
43
+ Classifier: License :: OSI Approved :: BSD License
44
+ Classifier: Operating System :: OS Independent
45
+ Classifier: Programming Language :: Python
46
+ Classifier: Programming Language :: Python :: 3
47
+ Classifier: Programming Language :: Python :: 3 :: Only
48
+ Classifier: Programming Language :: Python :: 3.9
49
+ Classifier: Programming Language :: Python :: 3.10
50
+ Classifier: Programming Language :: Python :: 3.11
51
+ Classifier: Programming Language :: Python :: 3.12
52
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
53
+ Requires-Python: >=3.9
54
+ Description-Content-Type: text/markdown
55
+ License-File: LICENSE
56
+ Requires-Dist: numpy
57
+ Requires-Dist: magicgui
58
+ Requires-Dist: qtpy
59
+ Requires-Dist: scikit-image
60
+ Provides-Extra: testing
61
+ Requires-Dist: tox; extra == "testing"
62
+ Requires-Dist: pytest; extra == "testing"
63
+ Requires-Dist: pytest-cov; extra == "testing"
64
+ Requires-Dist: pytest-qt; extra == "testing"
65
+ Requires-Dist: napari; extra == "testing"
66
+ Requires-Dist: pyqt5; extra == "testing"
67
+
68
+ # napari-tmidas
69
+
70
+ [![License BSD-3](https://img.shields.io/pypi/l/napari-tmidas.svg?color=green)](https://github.com/macromeer/napari-tmidas/raw/main/LICENSE)
71
+ [![PyPI](https://img.shields.io/pypi/v/napari-tmidas.svg?color=green)](https://pypi.org/project/napari-tmidas)
72
+ [![Python Version](https://img.shields.io/pypi/pyversions/napari-tmidas.svg?color=green)](https://python.org)
73
+ [![tests](https://github.com/macromeer/napari-tmidas/workflows/tests/badge.svg)](https://github.com/macromeer/napari-tmidas/actions)
74
+ [![codecov](https://codecov.io/gh/macromeer/napari-tmidas/branch/main/graph/badge.svg)](https://codecov.io/gh/macromeer/napari-tmidas)
75
+ [![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-tmidas)](https://napari-hub.org/plugins/napari-tmidas)
76
+
77
+ Tissue Microscopy Image Data Analysis Suite
78
+
79
+ ----------------------------------
80
+
81
+ This [napari] plugin was generated with [copier] using the [napari-plugin-template].
82
+
83
+ <!--
84
+ Don't miss the full getting started guide to set up your new package:
85
+ https://github.com/napari/napari-plugin-template#getting-started
86
+
87
+ and review the napari docs for plugin developers:
88
+ https://napari.org/stable/plugins/index.html
89
+ -->
90
+
91
+ ## Installation
92
+
93
+ You can install `napari-tmidas` via [pip]:
94
+
95
+ pip install napari-tmidas
96
+
97
+
98
+
99
+ To install latest development version :
100
+
101
+ pip install git+https://github.com/macromeer/napari-tmidas.git
102
+
103
+
104
+ ## Contributing
105
+
106
+ Contributions are very welcome. Tests can be run with [tox], please ensure
107
+ the coverage at least stays the same before you submit a pull request.
108
+
109
+ ## License
110
+
111
+ Distributed under the terms of the [BSD-3] license,
112
+ "napari-tmidas" is free and open source software
113
+
114
+ ## Issues
115
+
116
+ If you encounter any problems, please [file an issue] along with a detailed description.
117
+
118
+ [napari]: https://github.com/napari/napari
119
+ [copier]: https://copier.readthedocs.io/en/stable/
120
+ [@napari]: https://github.com/napari
121
+ [MIT]: http://opensource.org/licenses/MIT
122
+ [BSD-3]: http://opensource.org/licenses/BSD-3-Clause
123
+ [GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
124
+ [GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
125
+ [Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
126
+ [Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
127
+ [napari-plugin-template]: https://github.com/napari/napari-plugin-template
128
+
129
+ [file an issue]: https://github.com/macromeer/napari-tmidas/issues
130
+
131
+ [napari]: https://github.com/napari/napari
132
+ [tox]: https://tox.readthedocs.io/en/latest/
133
+ [pip]: https://pypi.org/project/pip/
134
+ [PyPI]: https://pypi.org/
@@ -0,0 +1,67 @@
1
+ # napari-tmidas
2
+
3
+ [![License BSD-3](https://img.shields.io/pypi/l/napari-tmidas.svg?color=green)](https://github.com/macromeer/napari-tmidas/raw/main/LICENSE)
4
+ [![PyPI](https://img.shields.io/pypi/v/napari-tmidas.svg?color=green)](https://pypi.org/project/napari-tmidas)
5
+ [![Python Version](https://img.shields.io/pypi/pyversions/napari-tmidas.svg?color=green)](https://python.org)
6
+ [![tests](https://github.com/macromeer/napari-tmidas/workflows/tests/badge.svg)](https://github.com/macromeer/napari-tmidas/actions)
7
+ [![codecov](https://codecov.io/gh/macromeer/napari-tmidas/branch/main/graph/badge.svg)](https://codecov.io/gh/macromeer/napari-tmidas)
8
+ [![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-tmidas)](https://napari-hub.org/plugins/napari-tmidas)
9
+
10
+ Tissue Microscopy Image Data Analysis Suite
11
+
12
+ ----------------------------------
13
+
14
+ This [napari] plugin was generated with [copier] using the [napari-plugin-template].
15
+
16
+ <!--
17
+ Don't miss the full getting started guide to set up your new package:
18
+ https://github.com/napari/napari-plugin-template#getting-started
19
+
20
+ and review the napari docs for plugin developers:
21
+ https://napari.org/stable/plugins/index.html
22
+ -->
23
+
24
+ ## Installation
25
+
26
+ You can install `napari-tmidas` via [pip]:
27
+
28
+ pip install napari-tmidas
29
+
30
+
31
+
32
+ To install latest development version :
33
+
34
+ pip install git+https://github.com/macromeer/napari-tmidas.git
35
+
36
+
37
+ ## Contributing
38
+
39
+ Contributions are very welcome. Tests can be run with [tox], please ensure
40
+ the coverage at least stays the same before you submit a pull request.
41
+
42
+ ## License
43
+
44
+ Distributed under the terms of the [BSD-3] license,
45
+ "napari-tmidas" is free and open source software
46
+
47
+ ## Issues
48
+
49
+ If you encounter any problems, please [file an issue] along with a detailed description.
50
+
51
+ [napari]: https://github.com/napari/napari
52
+ [copier]: https://copier.readthedocs.io/en/stable/
53
+ [@napari]: https://github.com/napari
54
+ [MIT]: http://opensource.org/licenses/MIT
55
+ [BSD-3]: http://opensource.org/licenses/BSD-3-Clause
56
+ [GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
57
+ [GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
58
+ [Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
59
+ [Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
60
+ [napari-plugin-template]: https://github.com/napari/napari-plugin-template
61
+
62
+ [file an issue]: https://github.com/macromeer/napari-tmidas/issues
63
+
64
+ [napari]: https://github.com/napari/napari
65
+ [tox]: https://tox.readthedocs.io/en/latest/
66
+ [pip]: https://pypi.org/project/pip/
67
+ [PyPI]: https://pypi.org/
@@ -0,0 +1,119 @@
1
+ [project]
2
+ name = "napari-tmidas"
3
+ dynamic = ["version"]
4
+ description = "Tissue Microscopy Image Data Analysis Suite"
5
+ readme = "README.md"
6
+ license = {file = "LICENSE"}
7
+ authors = [
8
+ {name = "Marco Meer"},
9
+ {email = "marco.meer@pm.me"},
10
+ ]
11
+ classifiers = [
12
+ "Development Status :: 2 - Pre-Alpha",
13
+ "Framework :: napari",
14
+ "Intended Audience :: Developers",
15
+ "License :: OSI Approved :: BSD License",
16
+ "Operating System :: OS Independent",
17
+ "Programming Language :: Python",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3 :: Only",
20
+ "Programming Language :: Python :: 3.9",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Topic :: Scientific/Engineering :: Image Processing",
25
+ ]
26
+ requires-python = ">=3.9"
27
+ dependencies = [
28
+ "numpy",
29
+ "magicgui",
30
+ "qtpy",
31
+ "scikit-image",
32
+ ]
33
+
34
+ [project.optional-dependencies]
35
+ testing = [
36
+ "tox",
37
+ "pytest", # https://docs.pytest.org/en/latest/contents.html
38
+ "pytest-cov", # https://pytest-cov.readthedocs.io/en/latest/
39
+ "pytest-qt", # https://pytest-qt.readthedocs.io/en/latest/
40
+ "napari",
41
+ "pyqt5",
42
+ ]
43
+
44
+ [project.entry-points."napari.manifest"]
45
+ napari-tmidas = "napari_tmidas:napari.yaml"
46
+
47
+ [project.urls]
48
+ "Bug Tracker" = "https://github.com/macromeer/napari-tmidas/issues"
49
+ "Documentation" = "https://github.com/macromeer/napari-tmidas#README.md"
50
+ "Source Code" = "https://github.com/macromeer/napari-tmidas"
51
+ "User Support" = "https://github.com/macromeer/napari-tmidas/issues"
52
+
53
+ [build-system]
54
+ requires = ["setuptools>=42.0.0", "wheel", "setuptools_scm"]
55
+ build-backend = "setuptools.build_meta"
56
+
57
+ [tool.setuptools]
58
+ include-package-data = true
59
+
60
+ [tool.setuptools.packages.find]
61
+ where = ["src"]
62
+
63
+ [tool.setuptools.package-data]
64
+ "*" = ["*.yaml"]
65
+
66
+
67
+ [tool.setuptools_scm]
68
+ write_to = "src/napari_tmidas/_version.py"
69
+
70
+
71
+ [tool.black]
72
+ line-length = 79
73
+ target-version = ['py38', 'py39', 'py310']
74
+
75
+ [tool.ruff]
76
+ line-length = 79
77
+ lint.select = [
78
+ "E", "F", "W", #flake8
79
+ "UP", # pyupgrade
80
+ "I", # isort
81
+ "BLE", # flake8-blind-exception
82
+ "B", # flake8-bugbear
83
+ "A", # flake8-builtins
84
+ "C4", # flake8-comprehensions
85
+ "ISC", # flake8-implicit-str-concat
86
+ "G", # flake8-logging-format
87
+ "PIE", # flake8-pie
88
+ "SIM", # flake8-simplify
89
+ ]
90
+ lint.ignore = [
91
+ "E501", # line too long. let black handle this
92
+ "UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this.
93
+ "SIM117", # flake8-simplify - some of merged with statements are not looking great with black, reanble after drop python 3.9
94
+ ]
95
+
96
+ exclude = [
97
+ ".bzr",
98
+ ".direnv",
99
+ ".eggs",
100
+ ".git",
101
+ ".mypy_cache",
102
+ ".pants.d",
103
+ ".ruff_cache",
104
+ ".svn",
105
+ ".tox",
106
+ ".venv",
107
+ "__pypackages__",
108
+ "_build",
109
+ "buck-out",
110
+ "build",
111
+ "dist",
112
+ "node_modules",
113
+ "venv",
114
+ "*vendored*",
115
+ "*_vendor*",
116
+ ]
117
+
118
+ target-version = "py38"
119
+ fix = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,25 @@
1
+ try:
2
+ from ._version import version as __version__
3
+ except ImportError:
4
+ __version__ = "unknown"
5
+
6
+ from ._reader import napari_get_reader
7
+ from ._sample_data import make_sample_data
8
+ from ._widget import (
9
+ ExampleQWidget,
10
+ ImageThreshold,
11
+ threshold_autogenerate_widget,
12
+ threshold_magic_widget,
13
+ )
14
+ from ._writer import write_multiple, write_single_image
15
+
16
+ __all__ = (
17
+ "napari_get_reader",
18
+ "write_single_image",
19
+ "write_multiple",
20
+ "make_sample_data",
21
+ "ExampleQWidget",
22
+ "ImageThreshold",
23
+ "threshold_autogenerate_widget",
24
+ "threshold_magic_widget",
25
+ )