napari-plot 0.1.4.5__tar.gz → 0.2.0__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 (290) hide show
  1. napari_plot-0.2.0/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  2. napari_plot-0.2.0/.github/ISSUE_TEMPLATE/documentation.md +11 -0
  3. napari_plot-0.2.0/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
  4. napari_plot-0.2.0/.github/PULL_REQUEST_TEMPLATE.md +29 -0
  5. napari_plot-0.2.0/.github/TEST_FAIL_TEMPLATE.md +12 -0
  6. napari_plot-0.2.0/.github/dependabot.yml +17 -0
  7. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/.github/workflows/auto_author_assign.yml +1 -1
  8. napari_plot-0.2.0/.github/workflows/make_release.yml +81 -0
  9. napari_plot-0.2.0/.github/workflows/test_comprehensive.yml +153 -0
  10. napari_plot-0.2.0/.github/workflows/test_pull_requests.yml +147 -0
  11. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/.gitignore +1 -0
  12. napari_plot-0.2.0/.pre-commit-config.yaml +29 -0
  13. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/MANIFEST.in +3 -1
  14. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/Makefile +9 -1
  15. napari_plot-0.2.0/PKG-INFO +242 -0
  16. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/README.md +24 -16
  17. napari_plot-0.2.0/codecov.yml +15 -0
  18. {napari_plot-0.1.4.5/napari_plot → napari_plot-0.2.0}/conftest.py +45 -17
  19. napari_plot-0.2.0/napari_plot/__init__.py +30 -0
  20. napari_plot-0.2.0/napari_plot/__main__.py +349 -0
  21. napari_plot-0.2.0/napari_plot/_app_model/__init__.py +3 -0
  22. napari_plot-0.2.0/napari_plot/_app_model/_app.py +61 -0
  23. napari_plot-0.2.0/napari_plot/_app_model/actions/_layerlist_context_actions.py +244 -0
  24. napari_plot-0.2.0/napari_plot/_app_model/constants/__init__.py +3 -0
  25. napari_plot-0.2.0/napari_plot/_app_model/constants/_menus.py +128 -0
  26. napari_plot-0.2.0/napari_plot/_app_model/context/__init__.py +10 -0
  27. napari_plot-0.2.0/napari_plot/_app_model/context/_context.py +123 -0
  28. napari_plot-0.2.0/napari_plot/_app_model/context/_context_keys.py +20 -0
  29. napari_plot-0.2.0/napari_plot/_app_model/context/_layerlist_context.py +289 -0
  30. napari_plot-0.2.0/napari_plot/_app_model/utils.py +121 -0
  31. napari_plot-0.2.0/napari_plot/_contribution.py +15 -0
  32. napari_plot-0.1.4.5/napari_plot/_dock_widget.py → napari_plot-0.2.0/napari_plot/_plot_widget.py +6 -13
  33. napari_plot-0.2.0/napari_plot/_qt/_qapp_model/__init__.py +62 -0
  34. napari_plot-0.2.0/napari_plot/_qt/_qapp_model/_qproviders.py +109 -0
  35. napari_plot-0.2.0/napari_plot/_qt/component_controls/qt_axis_controls.py +265 -0
  36. napari_plot-0.2.0/napari_plot/_qt/component_controls/qt_camera_controls.py +398 -0
  37. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/layer_controls/qt_centroids_controls.py +35 -29
  38. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/layer_controls/qt_infline_controls.py +98 -86
  39. napari_plot-0.2.0/napari_plot/_qt/layer_controls/qt_layer_controls_base.py +262 -0
  40. napari_plot-0.2.0/napari_plot/_qt/layer_controls/qt_layer_controls_container.py +36 -0
  41. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/layer_controls/qt_layers_dialog.py +16 -4
  42. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/layer_controls/qt_line_controls.py +29 -23
  43. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/layer_controls/qt_multiline_controls.py +32 -26
  44. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/layer_controls/qt_region_controls.py +91 -75
  45. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/layer_controls/qt_scatter_controls.py +129 -58
  46. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/qt_event_loop.py +64 -32
  47. napari_plot-0.2.0/napari_plot/_qt/qt_layer_buttons.py +156 -0
  48. napari_plot-0.2.0/napari_plot/_qt/qt_main_window.py +1492 -0
  49. napari_plot-0.2.0/napari_plot/_qt/qt_toolbar.py +183 -0
  50. napari_plot-0.2.0/napari_plot/_qt/qt_viewer.py +706 -0
  51. napari_plot-0.2.0/napari_plot/_qt/qt_welcome.py +167 -0
  52. napari_plot-0.2.0/napari_plot/_qt/widgets/qt_dev.py +47 -0
  53. napari_plot-0.2.0/napari_plot/_qt/widgets/qt_icon_button.py +56 -0
  54. napari_plot-0.2.0/napari_plot/_qt/widgets/qt_splash_screen.py +20 -0
  55. napari_plot-0.2.0/napari_plot/_scatter_widget.py +89 -0
  56. napari_plot-0.2.0/napari_plot/_version.py +34 -0
  57. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/__init__.py +2 -1
  58. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/camera.py +39 -15
  59. napari_plot-0.2.0/napari_plot/_vispy/canvas.py +591 -0
  60. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/components/axis.py +4 -6
  61. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/components/camera.py +9 -11
  62. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/layers/centroids.py +7 -3
  63. napari_plot-0.2.0/napari_plot/_vispy/layers/infline.py +122 -0
  64. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/layers/line.py +6 -2
  65. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/layers/multiline.py +6 -2
  66. napari_plot-0.2.0/napari_plot/_vispy/layers/region.py +116 -0
  67. napari_plot-0.2.0/napari_plot/_vispy/layers/scatter.py +203 -0
  68. napari_plot-0.2.0/napari_plot/_vispy/overlays/__init__.py +15 -0
  69. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/overlays/axis.py +1 -0
  70. napari_plot-0.2.0/napari_plot/_vispy/overlays/grid_lines.py +28 -0
  71. napari_plot-0.2.0/napari_plot/_vispy/overlays/text.py +51 -0
  72. napari_plot-0.2.0/napari_plot/_vispy/tools/drag.py +39 -0
  73. napari_plot-0.2.0/napari_plot/_vispy/tools/polygon.py +147 -0
  74. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/utils/axis.py +8 -5
  75. napari_plot-0.2.0/napari_plot/_vispy/utils/visual.py +42 -0
  76. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/visuals/centroids.py +1 -0
  77. napari_plot-0.2.0/napari_plot/_vispy/visuals/infline.py +91 -0
  78. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/visuals/line.py +1 -0
  79. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/visuals/multiline.py +1 -0
  80. napari_plot-0.2.0/napari_plot/_vispy/visuals/region.py +93 -0
  81. napari_plot-0.2.0/napari_plot/_vispy/visuals/scatter.py +90 -0
  82. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/components/__init__.py +2 -2
  83. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/components/_viewer_key_bindings.py +2 -1
  84. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/components/_viewer_mouse_bindings.py +120 -26
  85. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/components/_viewer_utils.py +7 -23
  86. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/components/axis.py +2 -1
  87. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/components/camera.py +46 -21
  88. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/components/dragtool.py +47 -9
  89. napari_plot-0.2.0/napari_plot/components/grid_lines.py +7 -0
  90. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/components/gridlines.py +1 -0
  91. napari_plot-0.2.0/napari_plot/components/layerlist.py +49 -0
  92. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/components/tools.py +34 -24
  93. napari_plot-0.2.0/napari_plot/components/viewer_model.py +907 -0
  94. napari_plot-0.2.0/napari_plot/layers/__init__.py +29 -0
  95. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/base.py +69 -60
  96. napari_plot-0.2.0/napari_plot/layers/centroids/__init__.py +9 -0
  97. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/centroids/_centroids_constants.py +5 -7
  98. napari_plot-0.2.0/napari_plot/layers/centroids/_centroids_key_bindings.py +34 -0
  99. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/centroids/_centroids_utils.py +2 -1
  100. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/centroids/centroids.py +15 -14
  101. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/infline/__init__.py +3 -2
  102. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/infline/_infline.py +16 -12
  103. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/infline/_infline_constants.py +21 -18
  104. napari_plot-0.2.0/napari_plot/layers/infline/_infline_key_bindings.py +64 -0
  105. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/infline/_infline_list.py +32 -19
  106. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/infline/_infline_mouse_bindings.py +36 -28
  107. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/infline/_infline_utils.py +78 -25
  108. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/infline/infline.py +195 -181
  109. napari_plot-0.2.0/napari_plot/layers/line/__init__.py +3 -0
  110. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/line/_line_constants.py +1 -0
  111. napari_plot-0.2.0/napari_plot/layers/line/_line_key_bindings.py +34 -0
  112. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/line/line.py +11 -8
  113. napari_plot-0.2.0/napari_plot/layers/multiline/__init__.py +3 -0
  114. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/multiline/_multiline_constants.py +1 -0
  115. napari_plot-0.2.0/napari_plot/layers/multiline/_multiline_key_bindings.py +34 -0
  116. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/multiline/_multiline_list.py +7 -1
  117. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/multiline/_multiline_utils.py +16 -11
  118. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/multiline/multiline.py +5 -6
  119. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/region/__init__.py +3 -2
  120. napari_plot-0.2.0/napari_plot/layers/region/_region.py +60 -0
  121. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/region/_region_constants.py +20 -17
  122. napari_plot-0.2.0/napari_plot/layers/region/_region_key_bindings.py +94 -0
  123. napari_plot-0.2.0/napari_plot/layers/region/_region_list.py +212 -0
  124. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/region/_region_mouse_bindings.py +87 -93
  125. napari_plot-0.2.0/napari_plot/layers/region/_region_utils.py +196 -0
  126. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/layers/region/region.py +452 -467
  127. napari_plot-0.2.0/napari_plot/layers/scatter/__init__.py +3 -0
  128. napari_plot-0.2.0/napari_plot/layers/scatter/_scatter_key_bindings.py +34 -0
  129. napari_plot-0.2.0/napari_plot/layers/scatter/_utilities.py +22 -0
  130. napari_plot-0.2.0/napari_plot/layers/scatter/scatter.py +334 -0
  131. napari_plot-0.2.0/napari_plot/layers/utils/layer_utils.py +133 -0
  132. napari_plot-0.2.0/napari_plot/napari.yaml +15 -0
  133. napari_plot-0.2.0/napari_plot/resources/__init__.py +48 -0
  134. napari_plot-0.2.0/napari_plot/resources/icon.icns +0 -0
  135. napari_plot-0.2.0/napari_plot/resources/icon.ico +0 -0
  136. napari_plot-0.2.0/napari_plot/resources/icons/logo_silhouette_plot.svg +1 -0
  137. napari_plot-0.2.0/napari_plot/resources/logo.png +0 -0
  138. napari_plot-0.2.0/napari_plot/resources/qss/10_napari_plot.qss +21 -0
  139. napari_plot-0.1.4.5/napari_plot/_tests/utils.py → napari_plot-0.2.0/napari_plot/utils/_test_support.py +1 -0
  140. napari_plot-0.2.0/napari_plot/utils/_tool.py +42 -0
  141. napari_plot-0.2.0/napari_plot/utils/action_manager.py +40 -0
  142. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/utils/utilities.py +8 -3
  143. napari_plot-0.2.0/napari_plot/viewer.py +262 -0
  144. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/window.py +2 -1
  145. napari_plot-0.2.0/napari_plot.egg-info/PKG-INFO +242 -0
  146. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot.egg-info/SOURCES.txt +99 -46
  147. napari_plot-0.2.0/napari_plot.egg-info/entry_points.txt +6 -0
  148. napari_plot-0.2.0/napari_plot.egg-info/not-zip-safe +1 -0
  149. napari_plot-0.2.0/napari_plot.egg-info/requires.txt +106 -0
  150. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot.egg-info/top_level.txt +1 -0
  151. napari_plot-0.2.0/pyproject.toml +333 -0
  152. napari_plot-0.2.0/scripts/png_to_icon.bat +9 -0
  153. napari_plot-0.2.0/setup.cfg +4 -0
  154. napari_plot-0.2.0/tests/_app_model/test_app.py +27 -0
  155. napari_plot-0.2.0/tests/_app_model/test_constants.py +9 -0
  156. napari_plot-0.2.0/tests/_app_model/test_context.py +51 -0
  157. napari_plot-0.2.0/tests/_qt/test_qt_splash_screen.py +22 -0
  158. {napari_plot-0.1.4.5/napari_plot/_qt/_tests → napari_plot-0.2.0/tests/_qt}/test_qt_viewer.py +3 -3
  159. napari_plot-0.2.0/tests/_vispy/test_vispy_line_layer.py +13 -0
  160. napari_plot-0.2.0/tests/_vispy/test_vispy_scatter_layer.py +13 -0
  161. napari_plot-0.2.0/tests/_vispy/test_vispy_tools.py +16 -0
  162. {napari_plot-0.1.4.5/napari_plot/components/_tests → napari_plot-0.2.0/tests/components}/test_camera.py +1 -1
  163. napari_plot-0.2.0/tests/components/test_tools.py +24 -0
  164. {napari_plot-0.1.4.5/napari_plot/components/_tests → napari_plot-0.2.0/tests/components}/test_viewer_model.py +10 -9
  165. napari_plot-0.2.0/tests/layer_controls/test_qt_infline_controls.py +61 -0
  166. napari_plot-0.2.0/tests/layer_controls/test_qt_line_controls.py +28 -0
  167. napari_plot-0.2.0/tests/layer_controls/test_qt_multiline_controls.py +29 -0
  168. napari_plot-0.2.0/tests/layer_controls/test_qt_region_controls.py +61 -0
  169. napari_plot-0.2.0/tests/layer_controls/test_qt_scatter_controls.py +41 -0
  170. napari_plot-0.2.0/tests/layers/centroids/__init__.py +0 -0
  171. {napari_plot-0.1.4.5/napari_plot/layers/centroids/_tests → napari_plot-0.2.0/tests/layers/centroids}/test_centroids.py +12 -3
  172. napari_plot-0.2.0/tests/layers/infline/__init__.py +0 -0
  173. {napari_plot-0.1.4.5/napari_plot/layers/infline/_tests → napari_plot-0.2.0/tests/layers/infline}/test_infline.py +1 -0
  174. {napari_plot-0.1.4.5/napari_plot/layers/infline/_tests → napari_plot-0.2.0/tests/layers/infline}/test_infline_list.py +2 -1
  175. {napari_plot-0.1.4.5/napari_plot/layers/infline/_tests → napari_plot-0.2.0/tests/layers/infline}/test_infline_mouse_bindings.py +68 -75
  176. napari_plot-0.2.0/tests/layers/infline/test_infline_utils.py +31 -0
  177. napari_plot-0.2.0/tests/layers/line/__init__.py +0 -0
  178. {napari_plot-0.1.4.5/napari_plot/layers/line/_tests → napari_plot-0.2.0/tests/layers/line}/test_line.py +2 -1
  179. napari_plot-0.2.0/tests/layers/multiline/__init__.py +0 -0
  180. {napari_plot-0.1.4.5/napari_plot/layers/multiline/_tests → napari_plot-0.2.0/tests/layers/multiline}/test_multiline.py +7 -4
  181. {napari_plot-0.1.4.5/napari_plot/layers/multiline/_tests → napari_plot-0.2.0/tests/layers/multiline}/test_multiline_list.py +1 -0
  182. {napari_plot-0.1.4.5/napari_plot/layers/multiline/_tests → napari_plot-0.2.0/tests/layers/multiline}/test_multiline_utils.py +2 -1
  183. napari_plot-0.2.0/tests/layers/region/__init__.py +0 -0
  184. {napari_plot-0.1.4.5/napari_plot/layers/region/_tests → napari_plot-0.2.0/tests/layers/region}/test_region.py +35 -6
  185. {napari_plot-0.1.4.5/napari_plot/layers/region/_tests → napari_plot-0.2.0/tests/layers/region}/test_region_mouse_bindings.py +57 -62
  186. napari_plot-0.2.0/tests/layers/scatter/__init__.py +0 -0
  187. napari_plot-0.2.0/tests/layers/scatter/test_scatter.py +282 -0
  188. {napari_plot-0.1.4.5/napari_plot/_tests → napari_plot-0.2.0/tests}/test_examples.py +17 -10
  189. napari_plot-0.2.0/tests/test_scatter_widget.py +52 -0
  190. napari_plot-0.2.0/tests/utils/__init__.py +0 -0
  191. napari_plot-0.2.0/tests/utils/test_utilities.py +18 -0
  192. napari_plot-0.2.0/tox.ini +110 -0
  193. napari_plot-0.1.4.5/.github/workflows/test_comprehensive.yml +0 -172
  194. napari_plot-0.1.4.5/.github/workflows/test_pull_requests.yml +0 -148
  195. napari_plot-0.1.4.5/.pre-commit-config.yaml +0 -25
  196. napari_plot-0.1.4.5/PKG-INFO +0 -155
  197. napari_plot-0.1.4.5/codecov.yml +0 -2
  198. napari_plot-0.1.4.5/napari_plot/__init__.py +0 -18
  199. napari_plot-0.1.4.5/napari_plot/_qt/_tests/test_icon_button.py +0 -45
  200. napari_plot-0.1.4.5/napari_plot/_qt/_tests/test_icon_label.py +0 -16
  201. napari_plot-0.1.4.5/napari_plot/_qt/helpers.py +0 -318
  202. napari_plot-0.1.4.5/napari_plot/_qt/layer_controls/qt_axis_controls.py +0 -245
  203. napari_plot-0.1.4.5/napari_plot/_qt/layer_controls/qt_camera_controls.py +0 -247
  204. napari_plot-0.1.4.5/napari_plot/_qt/layer_controls/qt_layer_controls_base.py +0 -132
  205. napari_plot-0.1.4.5/napari_plot/_qt/layer_controls/qt_layer_controls_container.py +0 -24
  206. napari_plot-0.1.4.5/napari_plot/_qt/qt_dialog.py +0 -195
  207. napari_plot-0.1.4.5/napari_plot/_qt/qt_layer_buttons.py +0 -126
  208. napari_plot-0.1.4.5/napari_plot/_qt/qt_main_window.py +0 -737
  209. napari_plot-0.1.4.5/napari_plot/_qt/qt_toolbar.py +0 -158
  210. napari_plot-0.1.4.5/napari_plot/_qt/qt_viewer.py +0 -701
  211. napari_plot-0.1.4.5/napari_plot/_qt/widgets/qt_icon_button.py +0 -133
  212. napari_plot-0.1.4.5/napari_plot/_qt/widgets/qt_icon_label.py +0 -96
  213. napari_plot-0.1.4.5/napari_plot/_qt/widgets/qt_line.py +0 -20
  214. napari_plot-0.1.4.5/napari_plot/_qt/widgets/qt_mini_toolbar.py +0 -49
  215. napari_plot-0.1.4.5/napari_plot/_version.py +0 -5
  216. napari_plot-0.1.4.5/napari_plot/_vispy/canvas.py +0 -98
  217. napari_plot-0.1.4.5/napari_plot/_vispy/layers/infline.py +0 -75
  218. napari_plot-0.1.4.5/napari_plot/_vispy/layers/region.py +0 -75
  219. napari_plot-0.1.4.5/napari_plot/_vispy/layers/scatter.py +0 -92
  220. napari_plot-0.1.4.5/napari_plot/_vispy/overlays/grid_lines.py +0 -30
  221. napari_plot-0.1.4.5/napari_plot/_vispy/overlays/text.py +0 -50
  222. napari_plot-0.1.4.5/napari_plot/_vispy/tools/box.py +0 -64
  223. napari_plot-0.1.4.5/napari_plot/_vispy/tools/drag.py +0 -37
  224. napari_plot-0.1.4.5/napari_plot/_vispy/tools/polygon.py +0 -65
  225. napari_plot-0.1.4.5/napari_plot/_vispy/utils/visual.py +0 -48
  226. napari_plot-0.1.4.5/napari_plot/_vispy/visuals/infline.py +0 -15
  227. napari_plot-0.1.4.5/napari_plot/_vispy/visuals/region.py +0 -15
  228. napari_plot-0.1.4.5/napari_plot/_vispy/visuals/scatter.py +0 -15
  229. napari_plot-0.1.4.5/napari_plot/components/layerlist.py +0 -20
  230. napari_plot-0.1.4.5/napari_plot/components/viewer_model.py +0 -387
  231. napari_plot-0.1.4.5/napari_plot/layers/__init__.py +0 -16
  232. napari_plot-0.1.4.5/napari_plot/layers/centroids/__init__.py +0 -2
  233. napari_plot-0.1.4.5/napari_plot/layers/infline/_infline_key_bindings.py +0 -49
  234. napari_plot-0.1.4.5/napari_plot/layers/infline/_tests/test_infline_utils.py +0 -30
  235. napari_plot-0.1.4.5/napari_plot/layers/line/__init__.py +0 -2
  236. napari_plot-0.1.4.5/napari_plot/layers/multiline/__init__.py +0 -2
  237. napari_plot-0.1.4.5/napari_plot/layers/region/_region.py +0 -63
  238. napari_plot-0.1.4.5/napari_plot/layers/region/_region_key_bindings.py +0 -62
  239. napari_plot-0.1.4.5/napari_plot/layers/region/_region_list.py +0 -682
  240. napari_plot-0.1.4.5/napari_plot/layers/region/_region_utils.py +0 -81
  241. napari_plot-0.1.4.5/napari_plot/layers/region/_tests/test_region_list.py +0 -41
  242. napari_plot-0.1.4.5/napari_plot/layers/scatter/__init__.py +0 -2
  243. napari_plot-0.1.4.5/napari_plot/layers/scatter/_tests/test_scatter.py +0 -45
  244. napari_plot-0.1.4.5/napari_plot/layers/scatter/scatter.py +0 -412
  245. napari_plot-0.1.4.5/napari_plot/resources/__init__.py +0 -43
  246. napari_plot-0.1.4.5/napari_plot/resources/qss/04_napari1d.qss +0 -119
  247. napari_plot-0.1.4.5/napari_plot/viewer.py +0 -104
  248. napari_plot-0.1.4.5/napari_plot.egg-info/PKG-INFO +0 -155
  249. napari_plot-0.1.4.5/napari_plot.egg-info/entry_points.txt +0 -2
  250. napari_plot-0.1.4.5/napari_plot.egg-info/requires.txt +0 -38
  251. napari_plot-0.1.4.5/pyproject.toml +0 -75
  252. napari_plot-0.1.4.5/setup.cfg +0 -105
  253. napari_plot-0.1.4.5/setup.py +0 -6
  254. napari_plot-0.1.4.5/tox.ini +0 -82
  255. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/.deepsource.toml +0 -0
  256. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/.github/labeler.yml +0 -0
  257. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/.github/workflows/auto_label.yml +0 -0
  258. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/LICENSE +0 -0
  259. {napari_plot-0.1.4.5/napari_plot/_qt/_tests → napari_plot-0.2.0/napari_plot/_app_model/actions}/__init__.py +0 -0
  260. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/__init__.py +0 -0
  261. {napari_plot-0.1.4.5/napari_plot/_tests → napari_plot-0.2.0/napari_plot/_qt/component_controls}/__init__.py +0 -0
  262. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/layer_controls/__init__.py +0 -0
  263. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_qt/widgets/__init__.py +0 -0
  264. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/components/__init__.py +0 -0
  265. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/_vispy/layers/__init__.py +0 -0
  266. {napari_plot-0.1.4.5/napari_plot/_vispy/overlays → napari_plot-0.2.0/napari_plot/_vispy/tools}/__init__.py +0 -0
  267. {napari_plot-0.1.4.5/napari_plot/_vispy/tools → napari_plot-0.2.0/napari_plot/_vispy/utils}/__init__.py +0 -0
  268. {napari_plot-0.1.4.5/napari_plot/_vispy/utils → napari_plot-0.2.0/napari_plot/_vispy/visuals}/__init__.py +0 -0
  269. {napari_plot-0.1.4.5/napari_plot/_vispy/visuals → napari_plot-0.2.0/napari_plot/layers/utils}/__init__.py +0 -0
  270. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/resources/icons/new_centroids.svg +0 -0
  271. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/resources/icons/new_inf_line.svg +0 -0
  272. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/resources/icons/new_line.svg +0 -0
  273. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/resources/icons/new_region.svg +0 -0
  274. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/resources/icons/new_scatter.svg +0 -0
  275. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/utils/__init__.py +0 -0
  276. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/utils/_register.py +0 -0
  277. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot/utils/system.py +0 -0
  278. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/napari_plot.egg-info/dependency_links.txt +0 -0
  279. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/renovate.json +0 -0
  280. {napari_plot-0.1.4.5 → napari_plot-0.2.0}/scripts/qtaicons.bat +0 -0
  281. {napari_plot-0.1.4.5/napari_plot/layers/centroids/_tests → napari_plot-0.2.0/tests}/__init__.py +0 -0
  282. {napari_plot-0.1.4.5/napari_plot/layers/infline/_tests → napari_plot-0.2.0/tests/_app_model}/__init__.py +0 -0
  283. {napari_plot-0.1.4.5/napari_plot/layers/line/_tests → napari_plot-0.2.0/tests/_qt}/__init__.py +0 -0
  284. {napari_plot-0.1.4.5/napari_plot/_qt/_tests → napari_plot-0.2.0/tests/_qt}/test_qt_window.py +0 -0
  285. {napari_plot-0.1.4.5/napari_plot/layers/multiline/_tests → napari_plot-0.2.0/tests/_vispy}/__init__.py +0 -0
  286. {napari_plot-0.1.4.5/napari_plot/layers/region/_tests → napari_plot-0.2.0/tests/components}/__init__.py +0 -0
  287. {napari_plot-0.1.4.5/napari_plot/layers/scatter/_tests → napari_plot-0.2.0/tests/layer_controls}/__init__.py +0 -0
  288. {napari_plot-0.1.4.5/napari_plot/utils/vendored → napari_plot-0.2.0/tests/layers}/__init__.py +0 -0
  289. /napari_plot-0.1.4.5/napari_plot/_tests/test_dock_widget.py → /napari_plot-0.2.0/tests/test_plot_widget.py +0 -0
  290. /napari_plot-0.1.4.5/napari_plot/layers/region/_tests/test_region_utils.py → /napari_plot-0.2.0/tests/utils/test_tool.py +0 -0
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: "\U0001F41B Bug Report"
3
+ about: Submit a bug report to help us improve napari-plot
4
+ title: ''
5
+ labels: bug
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ## 🐛 Bug
11
+
12
+ <!-- A clear and concise description of what the bug is. -->
13
+
14
+ ## To Reproduce
15
+
16
+ Steps to reproduce the behavior:
17
+
18
+ 1.
19
+ 2.
20
+ 3.
21
+
22
+ <!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
23
+
24
+ ## Expected behavior
25
+
26
+ <!-- A clear and concise description of what you expected to happen. -->
27
+
28
+ ## Environment
29
+
30
+ - Please copy and paste the information at napari info option in help menubar here:
31
+
32
+ - Any other relevant information:
33
+
34
+ ## Additional context
35
+
36
+ <!-- Add any other context about the problem here. -->
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "\U0001F4DA Documentation"
3
+ about: Report an issue with napari-plot documentation
4
+ title: ''
5
+ labels: documentation
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ## 📚 Documentation
11
+ <!-- A clear and concise description of the documentation that needs to be created/updated -->
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: "\U0001F680 Feature Request"
3
+ about: Submit a proposal/request for a new napari-plot feature
4
+ title: ''
5
+ labels: feature
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ## 🚀 Feature
11
+ <!-- A clear and concise description of the feature proposal -->
12
+
13
+ ## Motivation
14
+
15
+ <!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
16
+
17
+ ## Pitch
18
+
19
+ <!-- A clear and concise description of what you want to happen. -->
20
+
21
+ ## Alternatives
22
+
23
+ <!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
24
+
25
+ ## Additional context
26
+
27
+ <!-- Add any other context or screenshots about the feature request here. -->
@@ -0,0 +1,29 @@
1
+ # Description
2
+ <!-- What does this pull request (PR) do? Why is it necessary? -->
3
+ <!-- Tell us about your new feature, improvement, or fix! -->
4
+ <!-- If your change includes user interface changes, please add an image, or an animation "An image is worth a thousand words!" -->
5
+ <!-- You can use https://www.cockos.com/licecap/ or similar to create animations -->
6
+
7
+ ## Type of change
8
+ <!-- Please delete options that are not relevant. -->
9
+ - [ ] Bug-fix (non-breaking change which fixes an issue)
10
+ - [ ] New feature (non-breaking change which adds functionality)
11
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12
+ - [ ] This change requires a documentation update
13
+
14
+ # References
15
+ <!-- What resources, documentation, and guides were used in the creation of this PR? -->
16
+ <!-- If this is a bug-fix or otherwise resolves an issue, reference it here with "closes #(issue)" -->
17
+
18
+ # How has this been tested?
19
+ <!-- Please describe the tests that you ran to verify your changes. -->
20
+ - [ ] example: the test suite for my feature covers cases x, y, and z
21
+ - [ ] example: all tests pass with my change
22
+ - [ ] example: I check if my changes works with both PySide and PyQt backends
23
+ as there are small differences between the two Qt bindings.
24
+
25
+ ## Final checklist:
26
+ - [ ] My PR is the minimum possible work for the desired functionality
27
+ - [ ] I have commented my code, particularly in hard-to-understand areas
28
+ - [ ] I have made corresponding changes to the documentation
29
+ - [ ] I have added tests that prove my fix is effective or that my feature works
@@ -0,0 +1,12 @@
1
+ ---
2
+ title: "{{ env.TITLE }}"
3
+ labels: [bug]
4
+ ---
5
+ The {{ workflow }} workflow failed on {{ date | date("YYYY-MM-DD HH:mm") }} UTC
6
+
7
+ The most recent failing test was on {{ env.PLATFORM }} py{{ env.PYTHON }} {{ env.BACKEND }}
8
+ with commit: {{ sha }}
9
+
10
+ Full run: https://github.com/napari/napari/actions/runs/{{ env.RUN_ID }}
11
+
12
+ (This post will be updated if another test fails, as long as this issue remains open.)
@@ -0,0 +1,17 @@
1
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2
+
3
+ version: 2
4
+ updates:
5
+ - package-ecosystem: "github-actions"
6
+ directory: "/"
7
+ schedule:
8
+ interval: "monthly"
9
+ commit-message:
10
+ prefix: "ci(dependabot):"
11
+
12
+ - package-ecosystem: "pip"
13
+ directory: "/resources"
14
+ schedule:
15
+ interval: "weekly"
16
+
17
+ target-branch: "develop"
@@ -12,4 +12,4 @@ jobs:
12
12
  assign-author:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: toshimaru/auto-author-assign@v1.3.4
15
+ - uses: toshimaru/auto-author-assign@v2.1.1
@@ -0,0 +1,81 @@
1
+ on:
2
+ push:
3
+ # Sequence of patterns matched against refs/tags
4
+ tags:
5
+ - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6
+
7
+ name: Create Release
8
+
9
+ jobs:
10
+ build:
11
+ name: Create Release
12
+ runs-on: ubuntu-latest
13
+ if: github.repository == 'lukasz-migas/napari'
14
+ steps:
15
+ - name: Checkout code
16
+ uses: actions/checkout@v5
17
+ - name: Install Python
18
+ uses: actions/setup-python@v6
19
+ with:
20
+ python-version: 3.10
21
+ cache-dependency-path: setup.cfg
22
+ - name: Install Dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ python -m pip install -e .[build] # need full install so we can build type stubs
26
+ - name: Build Distribution
27
+ run: |
28
+ make dist
29
+ - name: Find Release Notes
30
+ id: release_notes
31
+ run: |
32
+ TAG="${GITHUB_REF/refs\/tags\/v/}" # clean tag
33
+ RELEASE_NOTES="pre-release $TAG"
34
+ echo "tag=${TAG}" >> $GITHUB_ENV
35
+ # https://help.github.com/en/actions/reference/workflow-commands-for-github-actions
36
+ echo "::set-output name=contents::$RELEASE_NOTES"
37
+ # if [[ "$TAG" != *"rc"* ]]; then
38
+ # VER="${TAG/rc*/}" # remove pre-release identifier
39
+ # RELEASE_NOTES="$(cat docs/release/release_${VER//./_}.md)"
40
+ # # https://github.community/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/m-p/38372/highlight/true#M3322
41
+ # RELEASE_NOTES="${RELEASE_NOTES//'%'/'%25'}"
42
+ # RELEASE_NOTES="${RELEASE_NOTES//$'\n'/'%0A'}"
43
+ # RELEASE_NOTES="${RELEASE_NOTES//$'\r'/'%0D'}"
44
+ # else
45
+ # fi
46
+ - name: Create Release
47
+ id: create_release
48
+ uses: actions/create-release@latest
49
+ env:
50
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
51
+ with:
52
+ tag_name: ${{ github.ref }}
53
+ release_name: ${{ env.tag }}
54
+ body: ${{ steps.release_notes.outputs.contents }}
55
+ draft: false
56
+ prerelease: ${{ contains(github.ref, 'rc') }}
57
+
58
+ - name: Upload Release Asset
59
+ uses: actions/upload-release-asset@v1
60
+ env:
61
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62
+ with:
63
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
64
+ asset_path: ./dist/napari-plot-${{ env.tag }}.tar.gz
65
+ asset_name: napari-plot-${{ env.tag }}.tar.gz
66
+ asset_content_type: application/gzip
67
+
68
+ - name: Publish to Test PyPI
69
+ uses: pypa/gh-action-pypi-publish@master
70
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
71
+ with:
72
+ user: __token__
73
+ password: ${{ secrets.TEST_PYPI_API_TOKEN }}
74
+ repository_url: https://test.pypi.org/legacy/
75
+
76
+ # - name: Publish to PyPI
77
+ # uses: pypa/gh-action-pypi-publish@master
78
+ # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
79
+ # with:
80
+ # user: __token__
81
+ # password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,153 @@
1
+ # The full test suite, which will be run anytime anything is merged into master.
2
+ # See test_pull_request.yml for the tests that will be run
3
+ name: Full Test
4
+
5
+ on:
6
+ push:
7
+ branches:
8
+ - main
9
+ - "v*x"
10
+ tags:
11
+ - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
12
+ # Allows you to run this workflow manually from the Actions tab
13
+ workflow_dispatch:
14
+
15
+ concurrency:
16
+ group: comprehensive-test
17
+
18
+ jobs:
19
+
20
+ check-manifest:
21
+ name: Check Manifest
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v5
25
+ - uses: astral-sh/setup-uv@v6
26
+ - run: uvx check-manifest
27
+
28
+ test:
29
+ name: Test
30
+ uses: pyapp-kit/workflows/.github/workflows/test-pyrepo.yml@v2
31
+ secrets:
32
+ codecov_token: ${{ secrets.CODECOV_TOKEN }}
33
+ with:
34
+ os: ${{ matrix.platform }}
35
+ python-version: ${{ matrix.python-version }}
36
+ qt: ${{ matrix.backend }}
37
+ pip-install-pre-release: ${{ github.event_name == 'schedule' }}
38
+ extras: 'test'
39
+ coverage-upload: artifact
40
+
41
+ strategy:
42
+ fail-fast: false
43
+ matrix:
44
+ platform: [ubuntu-latest, windows-latest, macos-latest]
45
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
46
+ backend: [pyqt5, pyside2, pyqt6]
47
+ exclude:
48
+ # Abort (core dumped) on linux pyqt6, unknown reason
49
+ - platform: ubuntu-latest
50
+ backend: pyqt6
51
+ # lack of wheels for pyside2 on MacOS
52
+ - platform: macos-latest
53
+ backend: pyside2
54
+ # lack of wheels for pyside2/py3.11
55
+ - python-version: "3.9"
56
+ backend: pyside2
57
+ - python-version: "3.10"
58
+ backend: pyside2
59
+ - python-version: "3.11"
60
+ backend: pyside2
61
+ - python-version: "3.12"
62
+ backend: pyside2
63
+ - python-version: "3.12"
64
+ backend: pyqt5
65
+ # super slow
66
+ - python-version: "3.13"
67
+ backend: pyqt6
68
+ platform: windows-latest
69
+ include:
70
+ - python-version: "3.13"
71
+ platform: ubuntu-latest
72
+ backend: "pyqt6"
73
+ - python-version: "3.10"
74
+ platform: macos-latest
75
+ backend: "'pyside6<6.8'"
76
+ - python-version: "3.11"
77
+ platform: macos-latest
78
+ backend: "'pyside6<6.8'"
79
+ - python-version: "3.10"
80
+ platform: windows-latest
81
+ backend: "'pyside6<6.8'"
82
+ - python-version: "3.12"
83
+ platform: windows-latest
84
+ backend: "'pyside6<6.8'"
85
+ # legacy Qt
86
+ - python-version: 3.9
87
+ platform: ubuntu-latest
88
+ backend: "pyqt5==5.12.*"
89
+ - python-version: 3.9
90
+ platform: ubuntu-latest
91
+ backend: "pyqt5==5.13.*"
92
+ - python-version: 3.9
93
+ platform: ubuntu-latest
94
+ backend: "pyqt5==5.14.*"
95
+
96
+ test_examples:
97
+ name: test examples
98
+ runs-on: ubuntu-latest
99
+ steps:
100
+ - uses: actions/checkout@v5
101
+ - uses: astral-sh/setup-uv@v6
102
+ with:
103
+ python-version: 3.10
104
+
105
+ - uses: tlambert03/setup-qt-libs@v1
106
+ - name: Install this commit
107
+ run: |
108
+ uv pip install --upgrade pip
109
+ uv pip install setuptools tox tox-gh-actions
110
+
111
+ - name: Test
112
+ uses: aganders3/headless-gui@v2
113
+ with:
114
+ run: tox -e py310-linux-pyqt6-examples
115
+
116
+ # deploy:
117
+ # name: Deploy to Test PyPI and PyPI
118
+ # # this will run when you have tagged a commit, starting with "v*"
119
+ # # and requires that you have put your twine API key in your
120
+ # # github secrets (see readme for details)
121
+ # needs: [test, test_pip_install, test_examples]
122
+ # runs-on: ubuntu-latest
123
+ # if: contains(github.ref, 'tags')
124
+ # steps:
125
+ # - uses: actions/checkout@v5
126
+ # - name: Set up Python
127
+ # uses: actions/setup-python@v4
128
+ # with:
129
+ # python-version: "3.x"
130
+ #
131
+ # - name: Install dependencies
132
+ # run: |
133
+ # python -m pip install --upgrade pip
134
+ # python -m pip install -e .[build] # need full install so we can build type stubs
135
+ #
136
+ # - name: Build package
137
+ # run: |
138
+ # make dist
139
+ #
140
+ # - name: Publish to Test PyPI
141
+ # uses: pypa/gh-action-pypi-publish@master
142
+ # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
143
+ # with:
144
+ # user: __token__
145
+ # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
146
+ # repository_url: https://test.pypi.org/legacy/
147
+ #
148
+ # - name: Publish to PyPI
149
+ # uses: pypa/gh-action-pypi-publish@master
150
+ # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
151
+ # with:
152
+ # user: __token__
153
+ # password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,147 @@
1
+ # Our minimal suite of tests that run on each pull request
2
+ name: PR Test
3
+
4
+ env:
5
+ COLUMNS: 120
6
+
7
+ on:
8
+ pull_request:
9
+ branches:
10
+ - main
11
+ - "v*x"
12
+
13
+ concurrency:
14
+ group: test-${{ github.ref }}
15
+ cancel-in-progress: true
16
+
17
+ jobs:
18
+ check-manifest:
19
+ name: Check Manifest
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v5
23
+ - uses: astral-sh/setup-uv@v6
24
+ - run: uvx check-manifest
25
+
26
+ test_uv:
27
+ name: Test UV (${{ matrix.backend } py${{ matrix.python-version }} ${{ matrix.os }})
28
+ runs-on: ${{ matrix.os }}
29
+ env:
30
+ UV_NO_SYNC: "1"
31
+ UV_MANAGED_PYTHON: "1"
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ os: [macos-latest, windows-latest, ubuntu-latest]
36
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
37
+ backend: [PySide6, PyQt6]
38
+ include:
39
+ - os: windows-latest
40
+ python-version: "3.10"
41
+ backend: PySide2
42
+ - os: windows-latest
43
+ python-version: "3.11"
44
+ backend: PySide6
45
+ - os: windows-latest
46
+ python-version: "3.12"
47
+ backend: PyQt6
48
+ # MacOS legacy Qt
49
+ - os: macos-13
50
+ python-version: "3.10"
51
+ backend: PySide2
52
+ - os: macos-13
53
+ python-version: "3.10"
54
+ backend: PyQt5
55
+
56
+
57
+ test:
58
+ name: Test
59
+ uses: pyapp-kit/workflows/.github/workflows/test-pyrepo.yml@v2
60
+ secrets:
61
+ codecov_token: ${{ secrets.CODECOV_TOKEN }}
62
+ with:
63
+ os: ${{ matrix.platform }}
64
+ python-version: ${{ matrix.python-version }}
65
+ qt: ${{ matrix.backend }}
66
+ pip-install-pre-release: ${{ github.event_name == 'schedule' }}
67
+ extras: 'testing'
68
+ coverage-upload: artifact
69
+
70
+ strategy:
71
+ fail-fast: false
72
+ matrix:
73
+ platform: [ubuntu-latest, windows-latest, macos-latest]
74
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
75
+ backend: [pyside2, pyqt5, pyqt6, pyside6]
76
+ exclude:
77
+ # Abort (core dumped) on linux pyqt6, unknown reason
78
+ - platform: ubuntu-latest
79
+ backend: pyqt6
80
+ # lack of wheels for pyside2 on MacOS
81
+ - platform: macos-latest
82
+ backend: pyside2
83
+ # lack of wheels for pyside2/py3.11
84
+ - python-version: "3.9"
85
+ backend: pyside2
86
+ - python-version: "3.10"
87
+ backend: pyside2
88
+ - python-version: "3.11"
89
+ backend: pyside2
90
+ - python-version: "3.12"
91
+ backend: pyside2
92
+ - python-version: "3.12"
93
+ backend: pyqt5
94
+ # lack of wheels for pyside6/py3.10 and py3.12 on Windows
95
+ - python-version: "3.13"
96
+ backend: pyside2
97
+ platform: windows-latest
98
+ # super slow
99
+ - python-version: "3.13"
100
+ backend: pyqt6
101
+ platform: windows-latest
102
+ include:
103
+ - python-version: "3.13"
104
+ platform: ubuntu-latest
105
+ backend: "pyqt6"
106
+ - python-version: "3.10"
107
+ platform: macos-latest
108
+ backend: "'pyside6<6.8'"
109
+ - python-version: "3.11"
110
+ platform: macos-latest
111
+ backend: "'pyside6<6.8'"
112
+ - python-version: "3.10"
113
+ platform: windows-latest
114
+ backend: "'pyside6<6.8'"
115
+ - python-version: "3.12"
116
+ platform: windows-latest
117
+ backend: "'pyside6<6.8'"
118
+ # legacy Qt
119
+ - python-version: 3.9
120
+ platform: ubuntu-latest
121
+ backend: "pyqt5==5.12.*"
122
+ - python-version: 3.9
123
+ platform: ubuntu-latest
124
+ backend: "pyqt5==5.13.*"
125
+ - python-version: 3.9
126
+ platform: ubuntu-latest
127
+ backend: "pyqt5==5.14.*"
128
+
129
+ test_examples:
130
+ name: Test examples
131
+ runs-on: ubuntu-latest
132
+ steps:
133
+ - uses: actions/checkout@v5
134
+ - uses: astral-sh/setup-uv@v6
135
+ with:
136
+ python-version: 3.11
137
+
138
+ - uses: tlambert03/setup-qt-libs@v1
139
+ - name: Install this commit
140
+ run: |
141
+ uv pip install --upgrade pip
142
+ uv pip install setuptools tox tox-gh-actions
143
+
144
+ - name: Test
145
+ uses: aganders3/headless-gui@v2
146
+ with:
147
+ run: tox -e py311-linux-pyqt6-examples
@@ -85,3 +85,4 @@ _version.py
85
85
  .project
86
86
  .pydevproject
87
87
  .settings/
88
+ *.pkg
@@ -0,0 +1,29 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v6.0.0
4
+ hooks:
5
+ - id: no-commit-to-branch
6
+ args: ['--branch', 'master', "--branch", "main"]
7
+ - repo: https://github.com/MarcoGorelli/absolufy-imports
8
+ rev: v0.3.1
9
+ hooks:
10
+ - id: absolufy-imports
11
+ exclude: _vendor|vendored|examples|examples_with_napari
12
+ - repo: https://github.com/hadialqattan/pycln
13
+ rev: v2.5.0
14
+ hooks:
15
+ - id: pycln
16
+ - repo: https://github.com/pycqa/isort
17
+ rev: 7.0.0
18
+ hooks:
19
+ - id: isort
20
+ - repo: https://github.com/astral-sh/ruff-pre-commit
21
+ rev: v0.14.2
22
+ hooks:
23
+ - id: ruff
24
+ exclude: _vendor|vendored
25
+ - repo: https://github.com/seddonym/import-linter
26
+ rev: v2.5.2
27
+ hooks:
28
+ - id: import-linter
29
+ stages: [manual]
@@ -13,6 +13,7 @@ exclude requirements.txt
13
13
  recursive-exclude tools *
14
14
  recursive-exclude docs *
15
15
  recursive-exclude examples *
16
+ recursive-exclude examples_with_napari *
16
17
  recursive-exclude misc *
17
18
  recursive-exclude napari_plot __pycache__
18
19
  recursive-exclude napari_plot *.pyc
@@ -21,4 +22,5 @@ recursive-exclude binder *
21
22
  exclude bundle.py
22
23
  exclude dockerfile
23
24
  exclude napari_plot _version.py
24
- exclude mkdocs.yml
25
+ exclude mkdocs.yml
26
+ exclude .readthedocs.yaml
@@ -36,4 +36,12 @@ untrack:
36
36
 
37
37
  docs:
38
38
  mkdocs build
39
- xcopy site src\docs /E/H/Y/D
39
+ xcopy site src\docs /E/H/Y/D
40
+
41
+ check-manifest:
42
+ pip install -U check-manifest
43
+ check-manifest
44
+
45
+ dist: check-manifest
46
+ pip install -U build
47
+ python -m build