Recent commits to derivepassphrase.git (ac34e6c40a56671408768c19c0cd41eadde9bfc3) https://git.schokokeks.org/derivepassphrase.git/tree/ac34e6c40a56671408768c19c0cd41eadde9bfc3 Recent commits feed provided by GitList. Fix typing and linting errors after tool upgrade https://git.schokokeks.org/derivepassphrase.git/commit/ac34e6c40a56671408768c19c0cd41eadde9bfc3 software@the13thletter.info (Marco Ricci) Sat, 29 Aug 2026 18:45:38 +0200 ac34e6c40a56671408768c19c0cd41eadde9bfc3 Update hatch use to "hatch check", and ruff to >= 0.16.0 As part of the ruff upgrade, the hatch configuration uses rule names now instead of rule codes. The code still uses the rule codes, because these are currently the only non-tool-specific notation available. https://git.schokokeks.org/derivepassphrase.git/commit/5276e72ac685e9dac43372dee273f0f5d384738c software@the13thletter.info (Marco Ricci) Sat, 29 Aug 2026 18:35:09 +0200 5276e72ac685e9dac43372dee273f0f5d384738c Fix minor mistakes in old changelog entries - The `"correctness"/"regression" split` phrase does not break properly in the browser when used with quotes. The browser appears to have trouble finding the word boundaries in this case. - The entry for the introduction of SSH agent socket providers mentions that an Annoying OS-specific provider is yet to be written, even though two entries further down, that same socket provider is being introduced. https://git.schokokeks.org/derivepassphrase.git/commit/677616ff0f82e91293ae0a14dafa10dbffebceab software@the13thletter.info (Marco Ricci) Sat, 29 Aug 2026 18:03:13 +0200 677616ff0f82e91293ae0a14dafa10dbffebceab Document recent test suite changes in the changelog - Mention the "import unavailable" simulation, and the resulting reduction in test configurations. - Mention that Python 3.15 is now supported (and tested). https://git.schokokeks.org/derivepassphrase.git/commit/94ad2e5b3e6a2a82fc136d8f5c101126cee90aa2 software@the13thletter.info (Marco Ricci) Sat, 29 Aug 2026 18:01:11 +0200 94ad2e5b3e6a2a82fc136d8f5c101126cee90aa2 Update compatibility info for Python 3.15 https://git.schokokeks.org/derivepassphrase.git/commit/27d47606610d2a44be4ebb3c7e6721aac35c25ce software@the13thletter.info (Marco Ricci) Sat, 29 Aug 2026 17:32:01 +0200 27d47606610d2a44be4ebb3c7e6721aac35c25ce Repair the --version output test for derivepassphrase export vault The test was no longer triggering the fallback behavior for when the "export" extra/the "cryptography" library was not available. Partially, this was because we now need to parametrize this test for both cases, but forgot to do so. Partially, this was *also* because querying the installed version of "cryptography" needs to be separately mocked, beyond just blocking the import. https://git.schokokeks.org/derivepassphrase.git/commit/25d4b90f83405a030224b2f52cb0951c76e75ef6 software@the13thletter.info (Marco Ricci) Sun, 23 Aug 2026 17:23:09 +0200 25d4b90f83405a030224b2f52cb0951c76e75ef6 Officially support and test on Python 3.15 Currently at release candidate 1. https://git.schokokeks.org/derivepassphrase.git/commit/caddac1d8b253aa4cb561016904bc26dfb3cc3c2 software@the13thletter.info (Marco Ricci) Sun, 23 Aug 2026 14:58:43 +0200 caddac1d8b253aa4cb561016904bc26dfb3cc3c2 Fix hypothesis dependency on PyPy 3.9 and PyPy 3.10 Because `hypothesis` requires a Rust toolchain for building 6.156 and higher, and because this is not installable on PyPy 3.10 and lower, pin `hypothesis` to 6.155.* and lower on PyPy 3.9 and 3.10. This was already broken for quite some time, but cropped up again after redoing the virtualenvs in commit 4fbfed4a4de887bd35f295863ea7548989024bf7. https://git.schokokeks.org/derivepassphrase.git/commit/9897a0ee0a6a8093813ec4b797811c9058fa4c8c software@the13thletter.info (Marco Ricci) Sun, 23 Aug 2026 12:56:29 +0200 9897a0ee0a6a8093813ec4b797811c9058fa4c8c Always test the "no cryptography support" scenario, shrinking the test matrix Even when the `cryptography` library is available, we test the fallback behavior of `derivepassphrase export vault` by inhibiting the loading of `cryptography`. As a result, we no longer need a separate testing environment for the "no cryptography support" case, and can therefore halve the number of configurations in our testing matrix. We also no longer need some associated configuration and helper objects. In hindsight, I cannot believe I never tried to do a web search on how to inhibit loading of a module in Python, and rather assumed that just because pytest does not prominently offer a dedicated top-level function or a dedicated `monkeypatch` method, that this is not supported. But seeing the underlying documentation for `importlib.import_module` and the documentation of how `sys.modules[...] = None` affects the module resolution, it becomes immediately obvious that this can be handled with monkeypatching, and does not need a separate virtualenv. https://git.schokokeks.org/derivepassphrase.git/commit/4fbfed4a4de887bd35f295863ea7548989024bf7 software@the13thletter.info (Marco Ricci) Sun, 23 Aug 2026 12:44:07 +0200 4fbfed4a4de887bd35f295863ea7548989024bf7 Set the Python path correctly during pytest invocation, round two In commit 0bf24eb16ec698d7759657cb810385ec7388f74c, we added the current directory explicitly to pytest's `pythonpath` configuration to avoid failing tests. Further analysis revealed that the culprit was the multiprocessing module with the `spawn` method, which needs to re-import the module it is called from (and other helper code from the `tests.data` and `tests.machinery` submodules), but is not compatible with some ways of modifying Python's module search path before module loading. According to my search results, the common way of dealing with this problem is instead to add the `tests` path to `pythonpath`, instead of the parent directory. Furthermore, it is unnecessary to explicitly add the `src` directory to `pythonpath`, as the virtualenv in which the tests run already has `derivepassphrase` installed. So we can reduce the `pythonpath` to only `tests`, and add an appropriate comment as to why this entry specifically is needed. We also add comments to the entries in `testpaths`, because it may not be immediately obvious that the `src` entry is needed for the doctests. https://git.schokokeks.org/derivepassphrase.git/commit/88fbfda029bfec81cf8190c000b1e539017c008c software@the13thletter.info (Marco Ricci) Sun, 23 Aug 2026 12:24:05 +0200 88fbfda029bfec81cf8190c000b1e539017c008c