Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various changes #2936

Merged
merged 15 commits into from
Dec 22, 2023
Merged

Various changes #2936

merged 15 commits into from
Dec 22, 2023

Commits on Dec 21, 2023

  1. Configuration menu
    Copy the full SHA
    fb82e6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    38a4a5d View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2023

  1. src/__init__.py: allow extra debug exceptions diagnostics.

    Extra diagnostics are enabled if PYMUPDF_EXCEPTIONS_VERBOSE is 2.
    julian-smith-artifex-com committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    08734a8 View commit details
    Browse the repository at this point in the history
  2. tests/: added test_2904(), handling of corrupt JPX header.

    mupdf-1.23.7 seems ok, mupdf master causes us problems.
    julian-smith-artifex-com committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    2d20d04 View commit details
    Browse the repository at this point in the history
  3. tests/: added test_2907() for segfault bug in classic.

    This is for pymupdf#2907, 'segfault trying to call clean_contents on certain pdfs with
    python 3.12'.
    
    We are not intending to fix this bug, so actually this test only runs on
    rebased.
    julian-smith-artifex-com committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    9cf377a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    24423b0 View commit details
    Browse the repository at this point in the history
  5. src/__init__.py: fix pymupdf_version_tuple.

    Was previously set to mupdf version.
    julian-smith-artifex-com committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    be4b275 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f3873fb View commit details
    Browse the repository at this point in the history
  7. scripts/gh_release.py: minor changes to diagnostics, and improved ven…

    …v().
    
    venv():
        added `venv_quick` option, small speed up if venv directory already exists.
    
    log():
        show caller path and fn name.
    julian-smith-artifex-com committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    dd87c19 View commit details
    Browse the repository at this point in the history
  8. tests/run_compound.py: added option to select which implementations t…

    …o run.
    
    Also don't print python backtrace after subprocess errors, as not usually
    useful.
    julian-smith-artifex-com committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    6c9b340 View commit details
    Browse the repository at this point in the history
  9. scripts/test.py: improved cli, added various new options.

    Simplified command line to be <options> followed by <commands>.
    
    New options:
        -b: set build type (e.g. debug).
        -d: set debug build.
        -i: set pymupdf implementations to test.
        -m: same as --mupdf, sets location of mupdf.
        -p: set pytest options.
        -t: set pytest test file/function.
        -v: save time if venv directory already exists.
    
    If tests fail, show information about re-running tests manually in venv.
    
    Don't show python backtrace of subprocess errors, as not useful.
    julian-smith-artifex-com committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    3388371 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1caef6e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2189c26 View commit details
    Browse the repository at this point in the history
  12. Renamed fitz_old -> src_classic.

    Avoid problems on github with valgrind tests, where classic cannot find
    libmupdf.so if PyMuPDF checkout is the current directory.
    julian-smith-artifex-com committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    8e26ecf View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f3594f4 View commit details
    Browse the repository at this point in the history