Hi,

I was able to reproduce the bug that was reported by Santiago in v2.6.0 of python-papermill.

I've updated the packaging to 2.7.0 which adds support for Python 3.13 and also attempted to fix the patches to make them work properly with the new version but I seem to be running into issues with some indentations somewhere in the patch.

I don't have enough time to continue working on this bug so I'd like someone else to take over.

Below is the error log of the last error that I encountered after pushing my changes to salsa:

=========================== short test summary info ============================
ERROR papermill/tests/test_iorw.py
ERROR tests/test_iorw.py
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!! ================= 21 deselected, 1 warning, 2 errors in 2.23s ================== E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=2: cd /build/reproducible-path/python-papermill-2.7.0/.pybuild/cpython3_3.14/build; python3.14 -m pytest --verbose -k "not GCSTest" --deselect tests/test_adl.py::ADLTest::test_create_adapter I: pybuild base:385: cd /build/reproducible-path/python-papermill-2.7.0/.pybuild/cpython3_3.13/build; python3.13 -m pytest --verbose -k "not GCSTest" --deselect tests/test_adl.py::ADLTest::test_create_adapter ============================= test session starts ============================== platform linux -- Python 3.13.12, pytest-9.0.2, pluggy-1.6.0 -- /usr/bin/python3.13
cachedir: .pytest_cache
rootdir: /build/reproducible-path/python-papermill-2.7.0/.pybuild/cpython3_3.13/build
configfile: pyproject.toml
plugins: typeguard-4.4.4, anyio-4.12.1
collecting ... collected 996 items / 2 errors / 21 deselected / 975 selected

==================================== ERRORS ==================================== ________________ ERROR collecting papermill/tests/test_iorw.py _________________
/usr/lib/python3/dist-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/usr/lib/python3/dist-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1387: in _gcd_import
    ???
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:188: in exec_module
    source_stat, co = _rewrite_test(fn, self.config)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:357: in _rewrite_test
    tree = ast.parse(source, filename=strfn)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/ast.py:50: in parse
    return compile(source, filename, mode, flags,
E     File "/build/reproducible-path/python-papermill-2.7.0/.pybuild/cpython3_3.13/build/papermill/tests/test_iorw.py", line 112
E  mock_entry_points.select.assert_called_once_with(group="papermill.io")
E   IndentationError: unexpected indent
_____________________ ERROR collecting tests/test_iorw.py ______________________
/usr/lib/python3/dist-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/usr/lib/python3/dist-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1387: in _gcd_import
    ???
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:188: in exec_module
    source_stat, co = _rewrite_test(fn, self.config)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:357: in _rewrite_test
    tree = ast.parse(source, filename=strfn)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/ast.py:50: in parse
    return compile(source, filename, mode, flags,
E     File "/build/reproducible-path/python-papermill-2.7.0/.pybuild/cpython3_3.13/build/tests/test_iorw.py", line 112
E  mock_entry_points.select.assert_called_once_with(group="papermill.io")
E   IndentationError: unexpected indent
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428
  /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1428: PytestConfigWarning: Unknown config option: env

    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR papermill/tests/test_iorw.py
ERROR tests/test_iorw.py
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!! ================= 21 deselected, 1 warning, 2 errors in 2.30s ================== E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=2: cd /build/reproducible-path/python-papermill-2.7.0/.pybuild/cpython3_3.13/build; python3.13 -m pytest --verbose -k "not GCSTest" --deselect tests/test_adl.py::ADLTest::test_create_adapter dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" --parallel=12 returned exit code 13
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Build finished at 2026-03-28T03:22:07Z

--
Regards,

Aryan Karamtoth,
Debian Maintainer

"Sic Parvis Magna" - Sir Francis Drake

Homepage: https://spaceports.in

IRC: SpaciousCoder78
Matrix: @SpaciousCoder78:matrix.org
XMPP:[email protected]

GPG Fingerprint: 7A7D 9308 2BD1 9BAF A83B 7E34 FE90 07B8 ED64 0421

Attachment: OpenPGP_0xFE9007B8ED640421.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to