pyfigures 0.2.1__tar.gz → 0.2.2__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 (311) hide show
  1. {pyfigures-0.2.1/pyfigures.egg-info → pyfigures-0.2.2}/PKG-INFO +6 -6
  2. {pyfigures-0.2.1 → pyfigures-0.2.2}/README.md +2 -2
  3. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/self_test.py +15 -2
  4. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/version.py +1 -1
  5. {pyfigures-0.2.1 → pyfigures-0.2.2/pyfigures.egg-info}/PKG-INFO +6 -6
  6. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures.egg-info/requires.txt +3 -3
  7. {pyfigures-0.2.1 → pyfigures-0.2.2}/setup.py +127 -127
  8. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_licensing.py +49 -0
  9. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_self_test.py +64 -2
  10. {pyfigures-0.2.1 → pyfigures-0.2.2}/LICENSE +0 -0
  11. {pyfigures-0.2.1 → pyfigures-0.2.2}/images/__init__.py +0 -0
  12. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/__init__.py +0 -0
  13. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/__main__.py +0 -0
  14. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/album/__init__.py +0 -0
  15. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/album/__main__.py +0 -0
  16. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/arrowheads.py +0 -0
  17. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/__init__.py +0 -0
  18. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/advanced_annotations.py +0 -0
  19. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/assistant_actions.py +0 -0
  20. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/categorized_mcp.py +0 -0
  21. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/existing_tools.py +0 -0
  22. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/figure_state.py +0 -0
  23. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/gui_selection.py +0 -0
  24. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/launch.py +0 -0
  25. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/letter_sequence.py +0 -0
  26. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/live_mcp.py +0 -0
  27. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/live_structure.py +0 -0
  28. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/manual_help.py +0 -0
  29. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/manual_help_verified.json +0 -0
  30. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/native_gui.py +0 -0
  31. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/original_registry.py +0 -0
  32. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/partner_gui.py +0 -0
  33. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/plot_lifecycle.py +0 -0
  34. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/pointer_context.py +0 -0
  35. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/readability.py +0 -0
  36. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/recovery.py +0 -0
  37. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/result_evidence.py +0 -0
  38. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/session.py +0 -0
  39. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/assistant/submission_review.py +0 -0
  40. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/atomic_io.py +0 -0
  41. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/burned_text.py +0 -0
  42. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/colorbar_script.py +0 -0
  43. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/constant_panels.py +0 -0
  44. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/cvd.py +0 -0
  45. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/equations.py +0 -0
  46. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/extras.py +0 -0
  47. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/flip.py +0 -0
  48. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/__init__.py +0 -0
  49. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/about_dialog_pzf.py +0 -0
  50. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/annotation_editor.py +0 -0
  51. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/asingleoraspanel.py +0 -0
  52. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/autolettering_widget.py +0 -0
  53. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/bg_color_selection.py +0 -0
  54. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/bug_recorder.py +0 -0
  55. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/caption_dialog.py +0 -0
  56. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/colorassistant.py +0 -0
  57. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/ctrl_key.py +0 -0
  58. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/deckcraft_blank.json +0 -0
  59. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/dimchooser.py +0 -0
  60. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/drag_sketch.py +0 -0
  61. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/drop_sketch.py +0 -0
  62. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/editable_export.py +0 -0
  63. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/editor_interaction.py +0 -0
  64. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/emptyimagedialog.py +0 -0
  65. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/equation_dialog.py +0 -0
  66. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/ezfig.py +0 -0
  67. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/fonts/README.md +0 -0
  68. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/fontselectorgui.py +0 -0
  69. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/group_builder_GUI.py +0 -0
  70. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/headless_ops.py +0 -0
  71. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/integrity_ops.py +0 -0
  72. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/journal_style_editor.py +0 -0
  73. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/keep_tst_images_for_pzf.py +0 -0
  74. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/label_rows.py +0 -0
  75. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/latex_code_dialog.py +0 -0
  76. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/latex_support.py +0 -0
  77. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/lutmultiselector.py +0 -0
  78. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/mcp_server_dialog.py +0 -0
  79. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/pagelimitswidget.py +0 -0
  80. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/panelcreationwidget.py +0 -0
  81. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/pdf_support.py +0 -0
  82. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/pfgui.py +0 -0
  83. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/portable_fonts.py +0 -0
  84. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/qc_reports.py +0 -0
  85. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/region_picker.py +0 -0
  86. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/render_headless.py +0 -0
  87. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/review/__init__.py +0 -0
  88. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/review/_template.py +0 -0
  89. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/review/dialog.py +0 -0
  90. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/review/html_export.py +0 -0
  91. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/review/send.py +0 -0
  92. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/scalebareditor.py +0 -0
  93. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/scrollableEZFIG.py +0 -0
  94. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/show_me_how.py +0 -0
  95. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/simple_text_editor.py +0 -0
  96. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/spaceselector.py +0 -0
  97. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/style_text_headless.py +0 -0
  98. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/svg_painter.py +0 -0
  99. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/textEditWatcher.py +0 -0
  100. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/theme.py +0 -0
  101. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/tipdialog.py +0 -0
  102. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/tutorial.py +0 -0
  103. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/user_extra_translation.py +0 -0
  104. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/user_prefs.py +0 -0
  105. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/video_support.py +0 -0
  106. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/widget_for_inset.py +0 -0
  107. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/gui/zoom_links.py +0 -0
  108. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/guides.py +0 -0
  109. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/history.py +0 -0
  110. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/icons/__init__.py +0 -0
  111. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/icons/pyfigures.png +0 -0
  112. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/icons/pyfigures_album.png +0 -0
  113. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/icons/pyfigures_poster.png +0 -0
  114. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/image_search.py +0 -0
  115. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/journal_styles.py +0 -0
  116. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/latex_document.py +0 -0
  117. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/layout_formula.py +0 -0
  118. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/layout_picture.py +0 -0
  119. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_control.py +0 -0
  120. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_server.py +0 -0
  121. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/__init__.py +0 -0
  122. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/annotations.py +0 -0
  123. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/app.py +0 -0
  124. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/content.py +0 -0
  125. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/core.py +0 -0
  126. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/export.py +0 -0
  127. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/guidance.py +0 -0
  128. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/image_search.py +0 -0
  129. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/journal.py +0 -0
  130. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/overlays.py +0 -0
  131. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/poster.py +0 -0
  132. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/qc.py +0 -0
  133. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/stacks.py +0 -0
  134. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/structure.py +0 -0
  135. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/upkeep.py +0 -0
  136. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/mcp_tools/workflow.py +0 -0
  137. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/office_math.py +0 -0
  138. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/offscreen.py +0 -0
  139. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/panel_source_preview.py +0 -0
  140. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/path_resolution.py +0 -0
  141. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/__init__.py +0 -0
  142. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/__main__.py +0 -0
  143. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/page_presets.py +0 -0
  144. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_align.py +0 -0
  145. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_canvas.py +0 -0
  146. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_headless.py +0 -0
  147. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_layout_dialog.py +0 -0
  148. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_layouts.py +0 -0
  149. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_recipe.py +0 -0
  150. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_shapes.py +0 -0
  151. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_source_data.py +0 -0
  152. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_templates.py +0 -0
  153. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_text_dialog.py +0 -0
  154. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_web_export.py +0 -0
  155. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/poster_window.py +0 -0
  156. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/poster/serialization.py +0 -0
  157. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/qt_exit.py +0 -0
  158. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/recipe.py +0 -0
  159. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/script_helpers.py +0 -0
  160. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/source_snapshot.py +0 -0
  161. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/stack_info.py +0 -0
  162. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures/zoom_geometry.py +0 -0
  163. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures.egg-info/SOURCES.txt +0 -0
  164. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures.egg-info/dependency_links.txt +0 -0
  165. {pyfigures-0.2.1 → pyfigures-0.2.2}/pyfigures.egg-info/top_level.txt +0 -0
  166. {pyfigures-0.2.1 → pyfigures-0.2.2}/setup.cfg +0 -0
  167. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_advanced_edit_tools.py +0 -0
  168. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_arrow_tip.py +0 -0
  169. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_arrowheads.py +0 -0
  170. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_assistant_live.py +0 -0
  171. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_atomic_io.py +0 -0
  172. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_audit_fixes.py +0 -0
  173. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_audit_fixes_20261008.py +0 -0
  174. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_backgrounds.py +0 -0
  175. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_bug_recorder.py +0 -0
  176. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_bugs_found_by_gui_e2e.py +0 -0
  177. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_canvas_context_menu.py +0 -0
  178. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_canvas_keyboard_and_clicks.py +0 -0
  179. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_codex_trial_findings.py +0 -0
  180. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_colour_bar_gui.py +0 -0
  181. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_consolidate_download.py +0 -0
  182. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_constant_panels.py +0 -0
  183. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_data_plots_and_stats.py +0 -0
  184. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_deserialization.py +0 -0
  185. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_dnd_canvas_more.py +0 -0
  186. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_dnd_combine_with_target.py +0 -0
  187. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_dnd_main_editor.py +0 -0
  188. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_draft_figure.py +0 -0
  189. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_drop_sketches.py +0 -0
  190. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_editable_export.py +0 -0
  191. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_editable_plot_text.py +0 -0
  192. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_editor_interaction.py +0 -0
  193. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_equations.py +0 -0
  194. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_exception_handler.py +0 -0
  195. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_export_waits_for_images.py +0 -0
  196. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_fig_rect_cache.py +0 -0
  197. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_figure_colors.py +0 -0
  198. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_figure_diff.py +0 -0
  199. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_fiji_formats.py +0 -0
  200. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_file_io_encoding.py +0 -0
  201. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_file_state_tracking.py +0 -0
  202. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_flip.py +0 -0
  203. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_folder_drag_and_drop.py +0 -0
  204. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_fonts_available.py +0 -0
  205. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_forbidden_files.py +0 -0
  206. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_e2e_context_menu.py +0 -0
  207. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_e2e_coverage.py +0 -0
  208. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_e2e_dnd.py +0 -0
  209. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_e2e_image_editor.py +0 -0
  210. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_e2e_menus.py +0 -0
  211. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_e2e_monkey.py +0 -0
  212. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_e2e_tutorials.py +0 -0
  213. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_e2e_visual.py +0 -0
  214. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_menus_and_toolbar.py +0 -0
  215. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_more_actions.py +0 -0
  216. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_gui_workflow_actions.py +0 -0
  217. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_guide_routing.py +0 -0
  218. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_image_opacity_reload.py +0 -0
  219. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_image_search.py +0 -0
  220. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_integrity_and_stats.py +0 -0
  221. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_interactive_tools.py +0 -0
  222. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_internal_dnd_group_placement.py +0 -0
  223. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_inverted_luts.py +0 -0
  224. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_journal_styles.py +0 -0
  225. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_latex_code.py +0 -0
  226. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_latex_documents.py +0 -0
  227. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_latex_extras.py +0 -0
  228. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_latex_full.py +0 -0
  229. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_latex_stress_findings.py +0 -0
  230. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_launchers.py +0 -0
  231. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_layout_canvas_geometry.py +0 -0
  232. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_layout_formula.py +0 -0
  233. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_layout_stability_gui.py +0 -0
  234. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_lazy_reflow.py +0 -0
  235. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_lettering_restore.py +0 -0
  236. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_lif_series_reading.py +0 -0
  237. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_llm_feedback_20261020.py +0 -0
  238. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_max_height.py +0 -0
  239. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_mcp_audit_findings.py +0 -0
  240. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_mcp_control.py +0 -0
  241. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_mcp_history.py +0 -0
  242. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_mcp_server.py +0 -0
  243. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_mcp_stdio_protocol.py +0 -0
  244. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_mcp_text_arguments.py +0 -0
  245. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_missing_images_gui.py +0 -0
  246. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_normalization.py +0 -0
  247. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_offscreen_env.py +0 -0
  248. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_ome_zarr.py +0 -0
  249. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_omero.py +0 -0
  250. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_open_perf.py +0 -0
  251. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_panel_editor.py +0 -0
  252. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_panel_editor_more.py +0 -0
  253. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_panel_preview.py +0 -0
  254. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_parity_mcp.py +0 -0
  255. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_path_resolution.py +0 -0
  256. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_pdf_panels.py +0 -0
  257. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_placeholder_grid.py +0 -0
  258. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_portability.py +0 -0
  259. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_poster_files_and_recipe.py +0 -0
  260. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_poster_gui.py +0 -0
  261. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_poster_mcp.py +0 -0
  262. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_poster_stress_findings.py +0 -0
  263. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_poster_vector_figures.py +0 -0
  264. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_property_setters_validate.py +0 -0
  265. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_pyf_loader_thread_deadlock.py +0 -0
  266. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_pyf_loading.py +0 -0
  267. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_pymupdf_offer.py +0 -0
  268. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_qc_gui.py +0 -0
  269. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_qc_mcp_tools.py +0 -0
  270. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_qc_reports.py +0 -0
  271. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_qt_exit.py +0 -0
  272. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_recipe.py +0 -0
  273. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_recipe_checks_bundles.py +0 -0
  274. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_recipe_extra_keys.py +0 -0
  275. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_recipe_for_llms.py +0 -0
  276. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_recipe_more_keys.py +0 -0
  277. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_recordings.py +0 -0
  278. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_render_export.py +0 -0
  279. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_restyle_texts.py +0 -0
  280. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_review_and_library.py +0 -0
  281. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_ruler_labels.py +0 -0
  282. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_save_reminder.py +0 -0
  283. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_scale_bar_calibration.py +0 -0
  284. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_scale_consistency.py +0 -0
  285. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_schema_sweep_findings.py +0 -0
  286. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_send_to_poster.py +0 -0
  287. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_shapes.py +0 -0
  288. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_show_me_how.py +0 -0
  289. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_source_data.py +0 -0
  290. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_stack_tools.py +0 -0
  291. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_stack_tools_gui.py +0 -0
  292. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_stack_with_image.py +0 -0
  293. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_stress_findings.py +0 -0
  294. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_stress_findings_20261028.py +0 -0
  295. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_stress_findings_20261029.py +0 -0
  296. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_style_audit_calbar.py +0 -0
  297. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_svg_clipping_and_pdf_pages.py +0 -0
  298. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_svg_empty_glyph.py +0 -0
  299. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_tex_install.py +0 -0
  300. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_text_editor_and_widgets.py +0 -0
  301. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_tutorial_controller.py +0 -0
  302. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_tutorials.py +0 -0
  303. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_typography_tidy.py +0 -0
  304. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_user_chat_findings_20261104.py +0 -0
  305. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_user_findings_20261022.py +0 -0
  306. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_user_gui_findings_20261021.py +0 -0
  307. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_user_guide_menus.py +0 -0
  308. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_video_support.py +0 -0
  309. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_zarr_stress_findings.py +0 -0
  310. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_zoom_callout_gui.py +0 -0
  311. {pyfigures-0.2.1 → pyfigures-0.2.2}/tests/test_zoom_callout_lut.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfigures
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: PyFigures will assist you assemble publication ready scientific figures in no time.
5
5
  Home-page: https://github.com/baigouy/PyFigures
6
6
  Author: Benoit Aigouy
@@ -46,7 +46,7 @@ Requires-Dist: latex2mathml
46
46
  Requires-Dist: mathml2omml
47
47
  Requires-Dist: pylatexenc
48
48
  Requires-Dist: pypdfium2
49
- Requires-Dist: qtpy-ai-sidecar>=0.1.0
49
+ Requires-Dist: qtpy-ai-sidecar>=0.1.1
50
50
  Requires-Dist: mcp<2,>=1.12
51
51
  Provides-Extra: ai
52
52
  Requires-Dist: mcp<2,>=1.12; extra == "ai"
@@ -63,10 +63,10 @@ Provides-Extra: omero
63
63
  Requires-Dist: omero-py; extra == "omero"
64
64
  Provides-Extra: chat
65
65
  Requires-Dist: mcp<2,>=1.12; extra == "chat"
66
- Requires-Dist: qtpy-ai-sidecar>=0.1.0; extra == "chat"
66
+ Requires-Dist: qtpy-ai-sidecar>=0.1.1; extra == "chat"
67
67
  Provides-Extra: all
68
68
  Requires-Dist: mcp<2,>=1.12; extra == "all"
69
- Requires-Dist: qtpy-ai-sidecar>=0.1.0; extra == "all"
69
+ Requires-Dist: qtpy-ai-sidecar>=0.1.1; extra == "all"
70
70
  Requires-Dist: av; extra == "all"
71
71
  Requires-Dist: opencv-python-headless; extra == "all"
72
72
  Requires-Dist: pyimagej; extra == "all"
@@ -281,7 +281,7 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
281
281
 
282
282
  - **Windows:** `PyFigures-Windows.zip`. Unzip it anywhere you can write (Documents, Desktop, a USB stick) and run `PyFigures.exe` (also `PyFigures Album.exe` and `PyFigures Poster.exe`). If SmartScreen warns about an unknown publisher, click *More info → Run anyway*. To remove it, delete the folder.
283
283
  - **macOS:** `PyFigures-macOS-AppleSilicon.dmg` (M1 and newer) or `PyFigures-macOS-Intel.dmg`. Open it and drag the apps to *Applications*, or, without administrator rights, to the *Applications* folder inside your home folder (or any folder).
284
- - **Linux:** no standalone build; install with pip (see above).
284
+ - **Linux (x86-64):** `PyFigures-Linux-x86_64.AppImage`, one file: make it executable (`chmod +x PyFigures-Linux-x86_64.AppImage`, or *Properties → Allow executing*) and double-click it; `--album` / `--poster` open the photo album / poster designers. If it does not start because FUSE is missing, run it with `--appimage-extract-and-run`, or use `PyFigures-Linux-x86_64.tar.gz` instead: unpack it anywhere and run `PyFigures/PyFigures`. Both need a Linux at least as recent as Ubuntu 22.04 (Debian 12, Fedora 36). The chat saves API keys in the desktop's key store (GNOME Keyring, KWallet).
285
285
 
286
286
  **Supported Macs:** the macOS executables include video support, which needs **macOS 14 (Sonoma) or newer on Apple Silicon** Macs and macOS 11 or newer on Intel Macs. On older Apple Silicon systems the app still opens, but movies cannot be read or exported; older systems are not supported (install with Conda/pip instead, see above).
287
287
 
@@ -348,7 +348,7 @@ Optional (installed only if you ask for them):
348
348
  ### Licence of PyFigures and of the standalone executables
349
349
 
350
350
  - **PyFigures' own source code is BSD 2-Clause** (see [LICENSE](LICENSE)). Installed with pip, it uses the libraries above under their own licences; note that PyQt6 and read-lif are GPL v3, so if you redistribute PyFigures together with them, that combination falls under the GPL v3.
351
- - **The standalone executables (Windows / macOS) are distributed under the GNU GPL v3** as a whole, because they include PyQt6 and FFmpeg built with x264/x265. Qt is used under the LGPL v3 and is dynamically linked, so it can be replaced. They read PDFs with pypdfium2 (Apache/BSD); PyMuPDF (AGPL) is not included. Each executable contains the licence texts of everything inside it (*Help → About → Third-party licences*, or `THIRD_PARTY_LICENSES.txt` next to the Windows executable), and the **complete corresponding source code** of every bundled component is attached to the same GitHub release as the executables (`corresponding-source-*.tar`). This is generated automatically by [`packaging/collect_licenses.py`](packaging/collect_licenses.py) when the executables are built. [docs/LICENSING.md](docs/LICENSING.md) explains the reasoning.
351
+ - **The standalone executables (Windows / macOS / Linux) are distributed under the GNU GPL v3** as a whole, because they include PyQt6 and FFmpeg built with x264/x265. Qt is used under the LGPL v3 and is dynamically linked, so it can be replaced. They read PDFs with pypdfium2 (Apache/BSD); PyMuPDF (AGPL) is not included. Each executable contains the licence texts of everything inside it (*Help → About → Third-party licences*, or `THIRD_PARTY_LICENSES.txt` next to the Windows and Linux executables), and the **complete corresponding source code** of every bundled component is attached to the same GitHub release as the executables (`corresponding-source-*.tar`). This is generated automatically by [`packaging/collect_licenses.py`](packaging/collect_licenses.py) when the executables are built. [docs/LICENSING.md](docs/LICENSING.md) explains the reasoning.
352
352
 
353
353
  # Other Figure-Making Software
354
354
 
@@ -190,7 +190,7 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
190
190
 
191
191
  - **Windows:** `PyFigures-Windows.zip`. Unzip it anywhere you can write (Documents, Desktop, a USB stick) and run `PyFigures.exe` (also `PyFigures Album.exe` and `PyFigures Poster.exe`). If SmartScreen warns about an unknown publisher, click *More info → Run anyway*. To remove it, delete the folder.
192
192
  - **macOS:** `PyFigures-macOS-AppleSilicon.dmg` (M1 and newer) or `PyFigures-macOS-Intel.dmg`. Open it and drag the apps to *Applications*, or, without administrator rights, to the *Applications* folder inside your home folder (or any folder).
193
- - **Linux:** no standalone build; install with pip (see above).
193
+ - **Linux (x86-64):** `PyFigures-Linux-x86_64.AppImage`, one file: make it executable (`chmod +x PyFigures-Linux-x86_64.AppImage`, or *Properties → Allow executing*) and double-click it; `--album` / `--poster` open the photo album / poster designers. If it does not start because FUSE is missing, run it with `--appimage-extract-and-run`, or use `PyFigures-Linux-x86_64.tar.gz` instead: unpack it anywhere and run `PyFigures/PyFigures`. Both need a Linux at least as recent as Ubuntu 22.04 (Debian 12, Fedora 36). The chat saves API keys in the desktop's key store (GNOME Keyring, KWallet).
194
194
 
195
195
  **Supported Macs:** the macOS executables include video support, which needs **macOS 14 (Sonoma) or newer on Apple Silicon** Macs and macOS 11 or newer on Intel Macs. On older Apple Silicon systems the app still opens, but movies cannot be read or exported; older systems are not supported (install with Conda/pip instead, see above).
196
196
 
@@ -257,7 +257,7 @@ Optional (installed only if you ask for them):
257
257
  ### Licence of PyFigures and of the standalone executables
258
258
 
259
259
  - **PyFigures' own source code is BSD 2-Clause** (see [LICENSE](LICENSE)). Installed with pip, it uses the libraries above under their own licences; note that PyQt6 and read-lif are GPL v3, so if you redistribute PyFigures together with them, that combination falls under the GPL v3.
260
- - **The standalone executables (Windows / macOS) are distributed under the GNU GPL v3** as a whole, because they include PyQt6 and FFmpeg built with x264/x265. Qt is used under the LGPL v3 and is dynamically linked, so it can be replaced. They read PDFs with pypdfium2 (Apache/BSD); PyMuPDF (AGPL) is not included. Each executable contains the licence texts of everything inside it (*Help → About → Third-party licences*, or `THIRD_PARTY_LICENSES.txt` next to the Windows executable), and the **complete corresponding source code** of every bundled component is attached to the same GitHub release as the executables (`corresponding-source-*.tar`). This is generated automatically by [`packaging/collect_licenses.py`](packaging/collect_licenses.py) when the executables are built. [docs/LICENSING.md](docs/LICENSING.md) explains the reasoning.
260
+ - **The standalone executables (Windows / macOS / Linux) are distributed under the GNU GPL v3** as a whole, because they include PyQt6 and FFmpeg built with x264/x265. Qt is used under the LGPL v3 and is dynamically linked, so it can be replaced. They read PDFs with pypdfium2 (Apache/BSD); PyMuPDF (AGPL) is not included. Each executable contains the licence texts of everything inside it (*Help → About → Third-party licences*, or `THIRD_PARTY_LICENSES.txt` next to the Windows and Linux executables), and the **complete corresponding source code** of every bundled component is attached to the same GitHub release as the executables (`corresponding-source-*.tar`). This is generated automatically by [`packaging/collect_licenses.py`](packaging/collect_licenses.py) when the executables are built. [docs/LICENSING.md](docs/LICENSING.md) explains the reasoning.
261
261
 
262
262
  # Other Figure-Making Software
263
263
 
@@ -79,7 +79,17 @@ def _check_chat(tmp):
79
79
  import keyring
80
80
  backend = keyring.get_keyring()
81
81
  name = type(backend).__module__ + "." + type(backend).__name__
82
- assert "fail" not in name.lower() and "null" not in name.lower(), f"no key store: {name}"
82
+ if getattr(sys, "frozen", False) and sys.platform.startswith("linux"):
83
+ # Linux apps: the Secret Service backend must be bundled; whether a key
84
+ # store answers depends on the desktop (none on a headless build machine)
85
+ from keyring.backends import SecretService # noqa: F401
86
+ import secretstorage # noqa: F401
87
+ import jeepney # noqa: F401
88
+ elif getattr(sys, "frozen", False):
89
+ # the apps must bundle the OS key store backends (Windows Credential
90
+ # Manager, macOS Keychain); a pip install on a headless Linux server has
91
+ # none, which only means API keys cannot be saved there
92
+ assert "fail" not in name.lower() and "null" not in name.lower(), f"no key store: {name}"
83
93
  from pyfigures.assistant.launch import mcp_server_command
84
94
  command, args = mcp_server_command()
85
95
  import anyio
@@ -100,7 +110,10 @@ def _check_chat(tmp):
100
110
  listed = anyio.run(tools)
101
111
  assert len(listed) >= 5, f"MCP server listed {len(listed)} tools"
102
112
  import importlib.metadata
103
- return f"ok (qtpy-ai-sidecar {importlib.metadata.version('qtpy-ai-sidecar')}, {name.rsplit('.', 2)[-2]}, {len(listed)} MCP tools)"
113
+ store = name.rsplit('.', 2)[-2]
114
+ if store == "fail" and sys.platform.startswith("linux"):
115
+ store = "Secret Service bundled, no key store running"
116
+ return f"ok (qtpy-ai-sidecar {importlib.metadata.version('qtpy-ai-sidecar')}, {store}, {len(listed)} MCP tools)"
104
117
 
105
118
 
106
119
  CHECKS = {"qt_svg": _check_qt_svg, "pdf_panels": _check_pdf_panels,
@@ -1,6 +1,6 @@
1
1
  __MAJOR__ = 0
2
2
  __MINOR__ = 2
3
- __MICRO__ = 1
3
+ __MICRO__ = 2
4
4
  __RELEASE__ = '' # a #b # https://www.python.org/dev/peps/pep-0440/#public-version-identifiers --> alpha beta, ...
5
5
  __VERSION__ = f'{__MAJOR__}.{__MINOR__}.{__MICRO__}{__RELEASE__}'
6
6
  __DESCRIPTION__ = """PyFigures will assist you assemble publication ready scientific figures in no time."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfigures
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: PyFigures will assist you assemble publication ready scientific figures in no time.
5
5
  Home-page: https://github.com/baigouy/PyFigures
6
6
  Author: Benoit Aigouy
@@ -46,7 +46,7 @@ Requires-Dist: latex2mathml
46
46
  Requires-Dist: mathml2omml
47
47
  Requires-Dist: pylatexenc
48
48
  Requires-Dist: pypdfium2
49
- Requires-Dist: qtpy-ai-sidecar>=0.1.0
49
+ Requires-Dist: qtpy-ai-sidecar>=0.1.1
50
50
  Requires-Dist: mcp<2,>=1.12
51
51
  Provides-Extra: ai
52
52
  Requires-Dist: mcp<2,>=1.12; extra == "ai"
@@ -63,10 +63,10 @@ Provides-Extra: omero
63
63
  Requires-Dist: omero-py; extra == "omero"
64
64
  Provides-Extra: chat
65
65
  Requires-Dist: mcp<2,>=1.12; extra == "chat"
66
- Requires-Dist: qtpy-ai-sidecar>=0.1.0; extra == "chat"
66
+ Requires-Dist: qtpy-ai-sidecar>=0.1.1; extra == "chat"
67
67
  Provides-Extra: all
68
68
  Requires-Dist: mcp<2,>=1.12; extra == "all"
69
- Requires-Dist: qtpy-ai-sidecar>=0.1.0; extra == "all"
69
+ Requires-Dist: qtpy-ai-sidecar>=0.1.1; extra == "all"
70
70
  Requires-Dist: av; extra == "all"
71
71
  Requires-Dist: opencv-python-headless; extra == "all"
72
72
  Requires-Dist: pyimagej; extra == "all"
@@ -281,7 +281,7 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
281
281
 
282
282
  - **Windows:** `PyFigures-Windows.zip`. Unzip it anywhere you can write (Documents, Desktop, a USB stick) and run `PyFigures.exe` (also `PyFigures Album.exe` and `PyFigures Poster.exe`). If SmartScreen warns about an unknown publisher, click *More info → Run anyway*. To remove it, delete the folder.
283
283
  - **macOS:** `PyFigures-macOS-AppleSilicon.dmg` (M1 and newer) or `PyFigures-macOS-Intel.dmg`. Open it and drag the apps to *Applications*, or, without administrator rights, to the *Applications* folder inside your home folder (or any folder).
284
- - **Linux:** no standalone build; install with pip (see above).
284
+ - **Linux (x86-64):** `PyFigures-Linux-x86_64.AppImage`, one file: make it executable (`chmod +x PyFigures-Linux-x86_64.AppImage`, or *Properties → Allow executing*) and double-click it; `--album` / `--poster` open the photo album / poster designers. If it does not start because FUSE is missing, run it with `--appimage-extract-and-run`, or use `PyFigures-Linux-x86_64.tar.gz` instead: unpack it anywhere and run `PyFigures/PyFigures`. Both need a Linux at least as recent as Ubuntu 22.04 (Debian 12, Fedora 36). The chat saves API keys in the desktop's key store (GNOME Keyring, KWallet).
285
285
 
286
286
  **Supported Macs:** the macOS executables include video support, which needs **macOS 14 (Sonoma) or newer on Apple Silicon** Macs and macOS 11 or newer on Intel Macs. On older Apple Silicon systems the app still opens, but movies cannot be read or exported; older systems are not supported (install with Conda/pip instead, see above).
287
287
 
@@ -348,7 +348,7 @@ Optional (installed only if you ask for them):
348
348
  ### Licence of PyFigures and of the standalone executables
349
349
 
350
350
  - **PyFigures' own source code is BSD 2-Clause** (see [LICENSE](LICENSE)). Installed with pip, it uses the libraries above under their own licences; note that PyQt6 and read-lif are GPL v3, so if you redistribute PyFigures together with them, that combination falls under the GPL v3.
351
- - **The standalone executables (Windows / macOS) are distributed under the GNU GPL v3** as a whole, because they include PyQt6 and FFmpeg built with x264/x265. Qt is used under the LGPL v3 and is dynamically linked, so it can be replaced. They read PDFs with pypdfium2 (Apache/BSD); PyMuPDF (AGPL) is not included. Each executable contains the licence texts of everything inside it (*Help → About → Third-party licences*, or `THIRD_PARTY_LICENSES.txt` next to the Windows executable), and the **complete corresponding source code** of every bundled component is attached to the same GitHub release as the executables (`corresponding-source-*.tar`). This is generated automatically by [`packaging/collect_licenses.py`](packaging/collect_licenses.py) when the executables are built. [docs/LICENSING.md](docs/LICENSING.md) explains the reasoning.
351
+ - **The standalone executables (Windows / macOS / Linux) are distributed under the GNU GPL v3** as a whole, because they include PyQt6 and FFmpeg built with x264/x265. Qt is used under the LGPL v3 and is dynamically linked, so it can be replaced. They read PDFs with pypdfium2 (Apache/BSD); PyMuPDF (AGPL) is not included. Each executable contains the licence texts of everything inside it (*Help → About → Third-party licences*, or `THIRD_PARTY_LICENSES.txt` next to the Windows and Linux executables), and the **complete corresponding source code** of every bundled component is attached to the same GitHub release as the executables (`corresponding-source-*.tar`). This is generated automatically by [`packaging/collect_licenses.py`](packaging/collect_licenses.py) when the executables are built. [docs/LICENSING.md](docs/LICENSING.md) explains the reasoning.
352
352
 
353
353
  # Other Figure-Making Software
354
354
 
@@ -32,7 +32,7 @@ latex2mathml
32
32
  mathml2omml
33
33
  pylatexenc
34
34
  pypdfium2
35
- qtpy-ai-sidecar>=0.1.0
35
+ qtpy-ai-sidecar>=0.1.1
36
36
  mcp<2,>=1.12
37
37
 
38
38
  [ai]
@@ -40,7 +40,7 @@ mcp<2,>=1.12
40
40
 
41
41
  [all]
42
42
  mcp<2,>=1.12
43
- qtpy-ai-sidecar>=0.1.0
43
+ qtpy-ai-sidecar>=0.1.1
44
44
  av
45
45
  opencv-python-headless
46
46
  pyimagej
@@ -51,7 +51,7 @@ zarr>=3
51
51
 
52
52
  [chat]
53
53
  mcp<2,>=1.12
54
- qtpy-ai-sidecar>=0.1.0
54
+ qtpy-ai-sidecar>=0.1.1
55
55
 
56
56
  [fiji]
57
57
  pyimagej
@@ -1,128 +1,128 @@
1
- import setuptools
2
- import os
3
- from pyfigures.version import __VERSION__, __EMAIL__, __AUTHOR__, __DESCRIPTION__, __URL__
4
-
5
- # def read_requirements(filename):
6
- # with open(filename, 'r') as f:
7
- # requirements = [line.strip() for line in f.readlines()]
8
- # return requirements
9
- #
10
- # # Read requirements.txt
11
- # requirements = read_requirements(os.path.join(os.path.dirname(__file__), 'requirements.txt'))
12
-
13
- with open('README.md', 'r') as fh:
14
- long_description = fh.read()
15
-
16
- setuptools.setup(
17
- name='pyfigures',
18
- version=__VERSION__,
19
- author=__AUTHOR__,
20
- author_email=__EMAIL__,
21
- description=__DESCRIPTION__,
22
- long_description=long_description,
23
- long_description_content_type='text/markdown',
24
- url=__URL__,
25
- # window icons; gui/fonts is no package: without these patterns the wheel has
26
- # no fonts folder (fonts_dir missing, fonts dropped in it never shipped)
27
- package_data={'': ['*.md','*.json'],
28
- 'pyfigures': ['icons/*.png', 'gui/fonts/*.md', 'gui/fonts/*.ttf', 'gui/fonts/*.otf']},
29
- license='BSD',
30
- include_package_data=True,
31
- # only pyfigures: the repo's images/ folder has an __init__.py and was
32
- # installed as a top-level "images" package into site-packages
33
- packages=setuptools.find_packages(include=['pyfigures', 'pyfigures.*']),
34
- classifiers=[
35
- 'Programming Language :: Python :: 3',
36
- 'License :: OSI Approved :: BSD License',
37
- 'Operating System :: OS Independent',
38
- ],
39
- install_requires=[
40
- "Markdown",
41
- "PyYAML", # YAML recipes (on 3.11+ another package happened to bring it)
42
- "matplotlib>=3.5.2",
43
- "numpy>=1.24",
44
- "Pillow>=8.1.2",
45
- "PyQt6",
46
- "read-lif",
47
- "scikit-image>=0.19.3",
48
- "scipy>=1.7.3",
49
- "scikit-learn>=1.0.2",
50
- "tifffile>=2021.11.2",
51
- "tqdm",
52
- "natsort",
53
- "numexpr",
54
- "urllib3",
55
- "qtawesome",
56
- "pandas",
57
- # "numba",
58
- "roifile",
59
- "prettytable",
60
- "pyperclip",
61
- "QtPy>=2.1.0",
62
- "Deprecated",
63
- "Requests",
64
- "batoolset>=0.2.0", # 0.2.0: the split, the Qt layer moved to batoolset-gui
65
- "batoolset-gui>=0.2.0", # batoolset.drawings / figure / luts / pyqts (Qt layer); inverted LUTs
66
- "staplot>=0.1.0", # data-plot panels and stats brackets (staplot.api)
67
- "pyautogui",
68
- "imagecodecs",
69
- "psutil",
70
- "python-pptx", # editable PowerPoint export
71
- "latex2mathml", # $…$ label maths -> native PowerPoint equations (MIT)
72
- "mathml2omml", # (MIT)
73
- "pylatexenc", # $…$ label maths -> Unicode text for Illustrator (MIT)
74
- "pypdfium2", # PDF files as panels, rendered as images (Apache/BSD)
75
- # the chat sidebar (Tools > Chat sidebar, a core part of PyFigures): a
76
- # local or API model edits the open figure through the MCP tools (BSD-2)
77
- "qtpy-ai-sidecar>=0.1.0",
78
- "mcp>=1.12,<2", # MCP server (Claude, LM Studio…) and the sidebar's client; mcp 2 renamed FastMCP
79
- ],
80
- extras_require={
81
- 'ai': [
82
- "mcp>=1.12,<2", # installed by default since 0.2.1; kept for older instructions
83
- ],
84
- 'video': [
85
- "av", # PyAV: reads videos and writes H.264 (bundles ffmpeg; Windows/macOS/Linux)
86
- "opencv-python-headless", # batoolset's mp4/avi/mkv stacks (cv2)
87
- ],
88
- 'fiji': [
89
- "pyimagej", # Fiji / Bio-Formats reader for .lif, .czi, .nd2, ... (needs Java)
90
- ],
91
- # zarr 3 needs Python 3.11+; zarr 2 (all Python 3.10 gets) can't read them here
92
- 'zarr': [
93
- "zarr>=3; python_version >= '3.11'", # OME-Zarr images, local or from a URL (read over http with requests)
94
- ],
95
- 'pdf': [
96
- "pymupdf", # PDF files as vector panels (AGPL v3; not in the standalone apps)
97
- ],
98
- # raw (16-bit) pixels from OMERO; without it OMERO images are read
99
- # through OMERO.web with 256 levels per channel. Left out of the "all"
100
- # extra: it needs zeroc-ice, which has no PyPI wheel for Windows (README).
101
- 'omero': [
102
- "omero-py",
103
- ],
104
- # the chat sidebar is installed by default since 0.2.1; kept so that
105
- # `pip install pyfigures[chat]` from older instructions still works
106
- 'chat': [
107
- "mcp>=1.12,<2",
108
- "qtpy-ai-sidecar>=0.1.0",
109
- ],
110
- 'all': [
111
- "mcp>=1.12,<2",
112
- "qtpy-ai-sidecar>=0.1.0",
113
- "av",
114
- "opencv-python-headless",
115
- "pyimagej",
116
- "zarr>=3; python_version >= '3.11'",
117
- "pymupdf",
118
- ],
119
- # running the test suite (pytest.ini sets a per-test timeout so a stuck
120
- # modal dialog fails the test instead of hanging the run)
121
- 'test': [
122
- "pytest",
123
- "pytest-qt",
124
- "pytest-timeout",
125
- ],
126
- },
127
- python_requires='>=3.10' # staplot needs 3.10+; no upper cap
1
+ import setuptools
2
+ import os
3
+ from pyfigures.version import __VERSION__, __EMAIL__, __AUTHOR__, __DESCRIPTION__, __URL__
4
+
5
+ # def read_requirements(filename):
6
+ # with open(filename, 'r') as f:
7
+ # requirements = [line.strip() for line in f.readlines()]
8
+ # return requirements
9
+ #
10
+ # # Read requirements.txt
11
+ # requirements = read_requirements(os.path.join(os.path.dirname(__file__), 'requirements.txt'))
12
+
13
+ with open('README.md', 'r') as fh:
14
+ long_description = fh.read()
15
+
16
+ setuptools.setup(
17
+ name='pyfigures',
18
+ version=__VERSION__,
19
+ author=__AUTHOR__,
20
+ author_email=__EMAIL__,
21
+ description=__DESCRIPTION__,
22
+ long_description=long_description,
23
+ long_description_content_type='text/markdown',
24
+ url=__URL__,
25
+ # window icons; gui/fonts is no package: without these patterns the wheel has
26
+ # no fonts folder (fonts_dir missing, fonts dropped in it never shipped)
27
+ package_data={'': ['*.md','*.json'],
28
+ 'pyfigures': ['icons/*.png', 'gui/fonts/*.md', 'gui/fonts/*.ttf', 'gui/fonts/*.otf']},
29
+ license='BSD',
30
+ include_package_data=True,
31
+ # only pyfigures: the repo's images/ folder has an __init__.py and was
32
+ # installed as a top-level "images" package into site-packages
33
+ packages=setuptools.find_packages(include=['pyfigures', 'pyfigures.*']),
34
+ classifiers=[
35
+ 'Programming Language :: Python :: 3',
36
+ 'License :: OSI Approved :: BSD License',
37
+ 'Operating System :: OS Independent',
38
+ ],
39
+ install_requires=[
40
+ "Markdown",
41
+ "PyYAML", # YAML recipes (on 3.11+ another package happened to bring it)
42
+ "matplotlib>=3.5.2",
43
+ "numpy>=1.24",
44
+ "Pillow>=8.1.2",
45
+ "PyQt6",
46
+ "read-lif",
47
+ "scikit-image>=0.19.3",
48
+ "scipy>=1.7.3",
49
+ "scikit-learn>=1.0.2",
50
+ "tifffile>=2021.11.2",
51
+ "tqdm",
52
+ "natsort",
53
+ "numexpr",
54
+ "urllib3",
55
+ "qtawesome",
56
+ "pandas",
57
+ # "numba",
58
+ "roifile",
59
+ "prettytable",
60
+ "pyperclip",
61
+ "QtPy>=2.1.0",
62
+ "Deprecated",
63
+ "Requests",
64
+ "batoolset>=0.2.0", # 0.2.0: the split, the Qt layer moved to batoolset-gui
65
+ "batoolset-gui>=0.2.0", # batoolset.drawings / figure / luts / pyqts (Qt layer); inverted LUTs
66
+ "staplot>=0.1.0", # data-plot panels and stats brackets (staplot.api)
67
+ "pyautogui",
68
+ "imagecodecs",
69
+ "psutil",
70
+ "python-pptx", # editable PowerPoint export
71
+ "latex2mathml", # $…$ label maths -> native PowerPoint equations (MIT)
72
+ "mathml2omml", # (MIT)
73
+ "pylatexenc", # $…$ label maths -> Unicode text for Illustrator (MIT)
74
+ "pypdfium2", # PDF files as panels, rendered as images (Apache/BSD)
75
+ # the chat sidebar (Tools > Chat sidebar, a core part of PyFigures): a
76
+ # local or API model edits the open figure through the MCP tools (BSD-2)
77
+ "qtpy-ai-sidecar>=0.1.1",
78
+ "mcp>=1.12,<2", # MCP server (Claude, LM Studio…) and the sidebar's client; mcp 2 renamed FastMCP
79
+ ],
80
+ extras_require={
81
+ 'ai': [
82
+ "mcp>=1.12,<2", # installed by default since 0.2.1; kept for older instructions
83
+ ],
84
+ 'video': [
85
+ "av", # PyAV: reads videos and writes H.264 (bundles ffmpeg; Windows/macOS/Linux)
86
+ "opencv-python-headless", # batoolset's mp4/avi/mkv stacks (cv2)
87
+ ],
88
+ 'fiji': [
89
+ "pyimagej", # Fiji / Bio-Formats reader for .lif, .czi, .nd2, ... (needs Java)
90
+ ],
91
+ # zarr 3 needs Python 3.11+; zarr 2 (all Python 3.10 gets) can't read them here
92
+ 'zarr': [
93
+ "zarr>=3; python_version >= '3.11'", # OME-Zarr images, local or from a URL (read over http with requests)
94
+ ],
95
+ 'pdf': [
96
+ "pymupdf", # PDF files as vector panels (AGPL v3; not in the standalone apps)
97
+ ],
98
+ # raw (16-bit) pixels from OMERO; without it OMERO images are read
99
+ # through OMERO.web with 256 levels per channel. Left out of the "all"
100
+ # extra: it needs zeroc-ice, which has no PyPI wheel for Windows (README).
101
+ 'omero': [
102
+ "omero-py",
103
+ ],
104
+ # the chat sidebar is installed by default since 0.2.1; kept so that
105
+ # `pip install pyfigures[chat]` from older instructions still works
106
+ 'chat': [
107
+ "mcp>=1.12,<2",
108
+ "qtpy-ai-sidecar>=0.1.1",
109
+ ],
110
+ 'all': [
111
+ "mcp>=1.12,<2",
112
+ "qtpy-ai-sidecar>=0.1.1",
113
+ "av",
114
+ "opencv-python-headless",
115
+ "pyimagej",
116
+ "zarr>=3; python_version >= '3.11'",
117
+ "pymupdf",
118
+ ],
119
+ # running the test suite (pytest.ini sets a per-test timeout so a stuck
120
+ # modal dialog fails the test instead of hanging the run)
121
+ 'test': [
122
+ "pytest",
123
+ "pytest-qt",
124
+ "pytest-timeout",
125
+ ],
126
+ },
127
+ python_requires='>=3.10' # staplot needs 3.10+; no upper cap
128
128
  )
@@ -51,6 +51,30 @@ def test_gnu_texts_fall_back_to_spdx_when_gnu_org_times_out(monkeypatch):
51
51
  assert set(C.GNU_SPDX_IDS) == set(C.GNU_TEXTS)
52
52
 
53
53
 
54
+ def test_ffmpeg_build_found_in_ffmpeg_latest_json(monkeypatch):
55
+ # PyAV 19 wheels use FFmpeg 9.0, described only in scripts/ffmpeg-latest.json
56
+ import types
57
+ import urllib.error
58
+ C = _collect()
59
+ monkeypatch.setitem(sys.modules, "av", types.SimpleNamespace(__version__="19.0.2", ffmpeg_version_info="9.0.2"))
60
+ asked = []
61
+
62
+ def fake_get(url, tries=3, timeout=120):
63
+ asked.append(url)
64
+ if url.endswith("ffmpeg-9.0.json"):
65
+ raise urllib.error.HTTPError(url, 404, "Not Found", None, None)
66
+ if url.endswith("ffmpeg-latest.json"):
67
+ return b'{"url": "https://github.com/PyAV-Org/pyav-ffmpeg/releases/download/9.0.2-1/ffmpeg-{platform}.tar.gz"}'
68
+ assert url == C.PYAV_FFMPEG_PKG.format(tag="9.0.2-1"), url
69
+ return b'name="x264", source_url="https://example.org/x264.tar.bz2"'
70
+
71
+ monkeypatch.setattr(C, "_get", fake_get)
72
+ comps = C._ffmpeg_components()
73
+ assert comps[0]["version"] == "9.0.2-1"
74
+ assert [c["name"] for c in comps[1:]] == ["x264"]
75
+ assert asked[0].endswith("/v19.0.2/scripts/ffmpeg-9.0.json")
76
+
77
+
54
78
  def test_sources_are_packed_per_group_and_deduplicated(tmp_path):
55
79
  C = _collect()
56
80
  src = tmp_path / "src"
@@ -81,6 +105,31 @@ def test_sources_are_packed_per_group_and_deduplicated(tmp_path):
81
105
  assert t.extractfile("ffmpeg/x264.tar.bz2").read() == b"x264.tar.bz2" * 10
82
106
 
83
107
 
108
+ def test_source_downloads_survive_connection_resets(tmp_path, monkeypatch):
109
+ # ffmpeg.org reset the connection during v0.2.1's release: 4 resets in a
110
+ # row must not fail it
111
+ C = _collect()
112
+ monkeypatch.setattr(C.time, "sleep", lambda s: None)
113
+ calls = []
114
+
115
+ def flaky_urlopen(url, timeout=None, context=None):
116
+ calls.append(url)
117
+ if len(calls) <= 4:
118
+ raise ConnectionResetError(104, "Connection reset by peer")
119
+ import io
120
+ return io.BytesIO(b"ffmpeg source")
121
+
122
+ monkeypatch.setattr(C.urllib.request, "urlopen", flaky_urlopen)
123
+ m = tmp_path / "m.json"
124
+ m.write_text(json.dumps([{"name": "ffmpeg", "version": "", "license": "GPL",
125
+ "source": "https://ffmpeg.org/releases/ffmpeg-9.0.2.tar.xz",
126
+ "group": "ffmpeg"}]), encoding="utf-8")
127
+ C.sources(str(tmp_path / "out"), [str(m)])
128
+ assert len(calls) == 5
129
+ with tarfile.open(tmp_path / "out" / "corresponding-source-ffmpeg.tar") as t:
130
+ assert t.extractfile("ffmpeg/ffmpeg-9.0.2.tar.xz").read() == b"ffmpeg source"
131
+
132
+
84
133
  def test_a_missing_source_fails_the_release(tmp_path, monkeypatch):
85
134
  C = _collect()
86
135
  monkeypatch.setattr(C.time, "sleep", lambda s: None) # no back-off between retries
@@ -30,8 +30,9 @@ def test_self_test_passes_without_pymupdf(qapp, tmp_path, monkeypatch):
30
30
  from pyfigures import self_test
31
31
  monkeypatch.setitem(sys.modules, "fitz", None) # as in the apps
32
32
  out = tmp_path / "r.json"
33
- assert self_test.run(str(out)) == 0
33
+ status = self_test.run(str(out))
34
34
  report = json.loads(out.read_text(encoding="utf-8"))
35
+ assert status == 0, report
35
36
  assert report["ok"] and set(report["checks"]) == {"qt_svg", "pdf_panels", "video", "zarr", "chat"}
36
37
  assert "pypdfium2" in report["checks"]["pdf_panels"]
37
38
 
@@ -55,6 +56,66 @@ def test_pymupdf_is_fine_in_a_pip_install(qapp, tmp_path, monkeypatch):
55
56
  assert self_test._check_pdf_panels(str(tmp_path)) == "ok (PyMuPDF vector panels)"
56
57
 
57
58
 
59
+ def test_no_key_store_fails_only_the_apps(tmp_path, monkeypatch):
60
+ # headless Linux (CI, servers) has no key store: fine for a pip install,
61
+ # a build error for the apps (which must bundle the OS backends)
62
+ pytest.importorskip("qtpy_ai_sidecar")
63
+ import keyring
64
+ from keyring.backends import fail
65
+ from pyfigures import self_test
66
+ monkeypatch.setattr(keyring, "get_keyring", lambda: fail.Keyring())
67
+ monkeypatch.setattr(sys, "frozen", True, raising=False)
68
+ with pytest.raises(AssertionError, match="no key store"):
69
+ self_test._check_chat(str(tmp_path))
70
+ monkeypatch.delattr(sys, "frozen")
71
+ assert self_test._check_chat(str(tmp_path)).startswith("ok (qtpy-ai-sidecar")
72
+
73
+
74
+ def test_linux_apps_need_the_secret_service_backend_not_a_running_store(tmp_path, monkeypatch):
75
+ # the Linux build machine is headless: the key store check is that the
76
+ # backend is bundled; on a desktop it then finds GNOME Keyring / KWallet
77
+ pytest.importorskip("qtpy_ai_sidecar")
78
+ import keyring
79
+ from keyring.backends import fail
80
+ from pyfigures import self_test
81
+ monkeypatch.setattr(keyring, "get_keyring", lambda: fail.Keyring())
82
+ monkeypatch.setattr(sys, "frozen", True, raising=False)
83
+ monkeypatch.setattr(sys, "platform", "linux")
84
+ real_import = __import__
85
+
86
+ def no_secretstorage(name, *args, **kwargs):
87
+ if name == "secretstorage":
88
+ raise ImportError("not bundled")
89
+ return real_import(name, *args, **kwargs)
90
+
91
+ monkeypatch.setattr("builtins.__import__", no_secretstorage)
92
+ with pytest.raises(ImportError, match="not bundled"):
93
+ self_test._check_chat(str(tmp_path))
94
+
95
+
96
+ def test_linux_packages():
97
+ with open(os.path.join(ROOT, ".github", "workflows", "build.yml"), encoding="utf-8") as f:
98
+ wf = f.read()
99
+ assert "os: ubuntu-22.04" in wf and "PyFigures-Linux-x86_64.*" in wf
100
+ assert "appimagetool/releases/download/1.9.1/" in wf # pinned, not "continuous"
101
+ assert "bash packaging/make_linux_packages.sh dist ./appimagetool" in wf
102
+ assert "PyFigures-Linux-x86_64.AppImage --self-test" in wf # the AppImage itself is tested
103
+ with open(os.path.join(ROOT, "packaging", "make_linux_packages.sh"), encoding="utf-8") as f:
104
+ script = f.read()
105
+ with open(os.path.join(ROOT, "packaging", "linux", "AppRun"), encoding="utf-8") as f:
106
+ apprun = f.read()
107
+ assert '"$APPDIR/usr/lib/PyFigures"' in script and '"$HERE/usr/lib/PyFigures/PyFigures"' in apprun
108
+ for text in (script, apprun):
109
+ assert "\r" not in text # LF only: run by sh/bash
110
+ with open(os.path.join(ROOT, "packaging", "linux", "pyfigures.desktop"), encoding="utf-8") as f:
111
+ desktop = f.read()
112
+ assert "Icon=pyfigures\n" in desktop and os.path.isfile(os.path.join(ROOT, "pyfigures", "icons", "pyfigures.png"))
113
+ assert "Exec=PyFigures --album" in desktop and "Exec=PyFigures --poster" in desktop
114
+ with open(os.path.join(ROOT, "pyfigures.spec"), encoding="utf-8") as f:
115
+ spec = f.read()
116
+ assert "collect_submodules('secretstorage')" in spec and "collect_submodules('jeepney')" in spec
117
+
118
+
58
119
  def test_command_line_flag(tmp_path):
59
120
  out = tmp_path / "r.json"
60
121
  p = subprocess.run([sys.executable, "-m", "pyfigures", "--self-test", str(out)],
@@ -110,7 +171,8 @@ def test_the_spec_bundles_the_chat_sidebar():
110
171
  with open(os.path.join(root, "pyfigures.spec"), encoding="utf-8") as f:
111
172
  spec = f.read()
112
173
  for needed in ("collect_submodules('qtpy_ai_sidecar')", "collect_data_files('qtpy_ai_sidecar')",
113
- "collect_submodules('keyring')", "collect_submodules('mcp')",
174
+ "collect_submodules('keyring')", "collect_submodules('mcp', filter=",
175
+ "not name.startswith('mcp.cli')", # mcp.cli exits without typer
114
176
  "name='PyFigures MCP'", "console=True"):
115
177
  assert needed in spec, needed
116
178
  assert "'0.1.11'" not in spec # the macOS version comes from version.py
File without changes
File without changes