pyDiffTools 0.1.44__tar.gz → 0.1.45__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.
- {pydifftools-0.1.44/pyDiffTools.egg-info → pydifftools-0.1.45}/PKG-INFO +1 -1
- {pydifftools-0.1.44 → pydifftools-0.1.45/pyDiffTools.egg-info}/PKG-INFO +1 -1
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/continuous.py +6 -6
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pyproject.toml +1 -1
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_wrap_check.py +28 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/LICENSE.md +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/MANIFEST.in +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/README.rst +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/_quarto.yml +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/__version__.txt +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/1a724af72b16f5a9e607e12b1c721645/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/1b28fc9daac9081847e5161b2c546f8a/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/231f64eee282fa225d1104935cf80a24/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/26e56f6b0ff54851a45145157f2f0dc4/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/311fabd7029ffd050d056e2f316eb50f/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/57da2021e5b156ac3adf01398201c723/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/62b24ea7da75011d92b0f8924faa208d/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/7f1b20d69d889514ab5d1cc92e3cb14f/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/86f74c8c54a87ff892d9b15dd714e8f0/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/88893b4234eac2945d9d6cb2e277f186/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/9a40046ada6f582ee34af00fbdbfb417/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/a1bf4d270d0641ff41faf1d7cce3439a/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/a3789f7d9585a781f2a1c60ce95ff10d/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/be46ecba858d39ad5f0c46902ddf1c02/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/d0cbc57a12f2ccce710a5afd04cc05e7/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/d3e12d320b14228f701231ae32ddd7dd/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/eb434f61555438d020a6970a5dbf9ee8/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/f6b0e73aa7fa029134665d4dde57e096/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/f719a6e4ff09873cb0ffb06ec9d232f9/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/executed/feeee244a7ce3d60e1a227eb604df823/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/global.db +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/example.qmd +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/example.tex +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/index.qmd +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/.jupyter_cache/__version__.txt +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/.jupyter_cache/executed/ca90e4df5f4f0583df6554156a68dc7f/base.ipynb +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/.jupyter_cache/global.db +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/end_vs_he_sketch.jpg +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/independent.qmd +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/index.qmd +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/tasks.qmd +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/test_include.qmd +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/tryforerror.qmd +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/test_include.qmd +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pyDiffTools.egg-info/SOURCES.txt +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pyDiffTools.egg-info/dependency_links.txt +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pyDiffTools.egg-info/entry_points.txt +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pyDiffTools.egg-info/requires.txt +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pyDiffTools.egg-info/top_level.txt +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/__init__.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/bibliography.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/browser_lifecycle.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/check_numbers.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/citation_dialog.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/command_line.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/command_registry.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/comment_functions.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/comment_migration.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/comment_tags.lua +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/comment_tags_margin.lua +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/comment_tags_no_comments.lua +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/comment_toggle.js +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/comments.css +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/copy_files.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/diff-doc.js +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/doc_contents.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/flowchart/__init__.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/flowchart/comparison.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/flowchart/dot_to_yaml.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/flowchart/graph.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/flowchart/svg-pan-zoom.min.js +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/flowchart/watch_graph.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/flowchart/wgrph_view.js +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/forward_search.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/git_gd.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/git_gd_history.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/git_gd_image.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/git_gd_qt.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/html_comments.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/html_uncomments.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/log_example.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/match_spaces.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/notebook/__init__.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/notebook/display.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/notebook/fast_build.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/notebook/tex_to_qmd.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/onewordify.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/onewordify_undo.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/outline.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/rearrange_tex.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/searchacro.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/separate_comments.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/split_conflict.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/unseparate_comments.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/update_check.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/wrap_sentences.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/xml2xlsx.vbs +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/pydifftools/zotero.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/setup.cfg +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_bibliography.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_browser_lifecycle.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_check_single_use.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_command_line_help.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_comment_migration.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_continuous_shutdown.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_forward_search.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_git_gd_history.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_git_gd_image.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_git_gd_qt.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_rrng.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_tex_to_qmd.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_update_check.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_wrapping.py +0 -0
- {pydifftools-0.1.44 → pydifftools-0.1.45}/tests/test_zotero.py +0 -0
|
@@ -149,10 +149,10 @@ def show_markdown_fix_dialog(report):
|
|
|
149
149
|
if not fixes and not warnings and not layout:
|
|
150
150
|
return
|
|
151
151
|
|
|
152
|
+
# a QApplication must exist before any widget is constructed
|
|
153
|
+
application = QApplication.instance() or QApplication([])
|
|
152
154
|
dialog = QDialog()
|
|
153
|
-
dialog._pydifftools_application =
|
|
154
|
-
QApplication.instance() or QApplication([])
|
|
155
|
-
)
|
|
155
|
+
dialog._pydifftools_application = application
|
|
156
156
|
dialog.setWindowTitle("Markdown source fixes")
|
|
157
157
|
fixed_font = QFontDatabase.systemFont(QFontDatabase.SystemFont.FixedFont)
|
|
158
158
|
# {{{ group fixes of one kind onto pages that fill the screen
|
|
@@ -372,10 +372,10 @@ def show_markdown_reload_dialog():
|
|
|
372
372
|
QVBoxLayout,
|
|
373
373
|
)
|
|
374
374
|
|
|
375
|
+
# a QApplication must exist before any widget is constructed
|
|
376
|
+
application = QApplication.instance() or QApplication([])
|
|
375
377
|
dialog = QDialog()
|
|
376
|
-
dialog._pydifftools_application =
|
|
377
|
-
QApplication.instance() or QApplication([])
|
|
378
|
-
)
|
|
378
|
+
dialog._pydifftools_application = application
|
|
379
379
|
dialog.setWindowTitle("Reload the Markdown source")
|
|
380
380
|
dialog.resize(440, 150)
|
|
381
381
|
layout = QVBoxLayout(dialog)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import os
|
|
1
2
|
import re
|
|
2
3
|
import subprocess
|
|
4
|
+
import sys
|
|
3
5
|
|
|
4
6
|
import pytest
|
|
5
7
|
|
|
@@ -909,3 +911,29 @@ def test_qt_layout_notice_shows_head_now_and_suggested(tmp_path):
|
|
|
909
911
|
assert head.startswith("git HEAD:")
|
|
910
912
|
assert re.search(r"^ +3 This script determines .* amplitudes$", now, re.M)
|
|
911
913
|
assert re.search(r"^ +4 spectral lines for", suggested, re.M)
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
def test_qt_fix_windows_create_their_own_application():
|
|
917
|
+
# cpb shows these windows without a QApplication; constructing the
|
|
918
|
+
# dialog first aborted the whole process
|
|
919
|
+
pytest.importorskip("PySide6")
|
|
920
|
+
script = (
|
|
921
|
+
"from PySide6.QtWidgets import QDialog\n"
|
|
922
|
+
"QDialog.exec = lambda self: 0\n"
|
|
923
|
+
"from pydifftools.continuous import (\n"
|
|
924
|
+
" show_markdown_fix_dialog, show_markdown_reload_dialog)\n"
|
|
925
|
+
"show_markdown_fix_dialog({'fixes': [{'line': 1, 'reason': 'r',\n"
|
|
926
|
+
" 'before': 'a ', 'after': 'a'}], 'warnings': []})\n"
|
|
927
|
+
"show_markdown_reload_dialog()\n"
|
|
928
|
+
"print('shown')\n"
|
|
929
|
+
)
|
|
930
|
+
|
|
931
|
+
completed = subprocess.run(
|
|
932
|
+
[sys.executable, "-c", script],
|
|
933
|
+
capture_output=True,
|
|
934
|
+
text=True,
|
|
935
|
+
env={**os.environ, "QT_QPA_PLATFORM": "offscreen"},
|
|
936
|
+
)
|
|
937
|
+
|
|
938
|
+
assert completed.returncode == 0, completed.stderr
|
|
939
|
+
assert completed.stdout.strip() == "shown"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/__version__.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/.jupyter_cache/global.db
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/end_vs_he_sketch.jpg
RENAMED
|
File without changes
|
{pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/independent.qmd
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/test_include.qmd
RENAMED
|
File without changes
|
{pydifftools-0.1.44 → pydifftools-0.1.45}/example_notebook/project1/subproject1/tryforerror.qmd
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|