Recent commits to derivepassphrase.git (27f9bd183d7b124ddf137b536d1063dd64db3c66) https://git.schokokeks.org/derivepassphrase.git/tree/27f9bd183d7b124ddf137b536d1063dd64db3c66 Recent commits feed provided by GitList. Fail gracefully if UNIX domain socket support is unavailable To talk to the SSH agent, we currently require UNIX domain socket support, but not every Python on every system supports this (notably: Windows). If we detect such missing support, fail gracefully and with a useful error message, instead of a technical reason such as `AttributeError`. Besides the new failure modes that API consumers will need to handle, this results in one more observable change: socket objects passed to the `SSHAgentClient` constructor are now required to be already connected. The constructor will no longer prepare sockets it didn't create itself in any way. This new failure behavior also has consequences for the tests, which so far have naively assumed UNIX semantics and UNIX domain socket support. So change the testing machinery to automatically skip any test that involves constructing a custom SSH agent client *and* expecting that step to go well. Furthermore, since the "no support" constellation can be reasonably well simulated even on systems that *do* have UNIX domain socket support (via pytest's monkeypatching fixture), include explicit tests on the API and the CLI level for the "no support" constellation, in any case. https://git.schokokeks.org/derivepassphrase.git/commit/27f9bd183d7b124ddf137b536d1063dd64db3c66 software@the13thletter.info (Marco Ricci) Wed, 02 Oct 2024 19:26:30 +0200 27f9bd183d7b124ddf137b536d1063dd64db3c66 Merge topic branch 'support-py39' into master * t/support-py39: Add changelog entry for Python 3.9 support Add support for Python 3.9 Accomodate known slow tests in hypothesis deadline Fix awkward parametrization declaration for SSH agent client tests https://git.schokokeks.org/derivepassphrase.git/commit/2511d75900a3fddc676ede50f9b5310a6dae8b97 software@the13thletter.info (Marco Ricci) Wed, 02 Oct 2024 09:32:06 +0200 2511d75900a3fddc676ede50f9b5310a6dae8b97 Add changelog entry for Python 3.9 support https://git.schokokeks.org/derivepassphrase.git/commit/b815a40b7b829470af7ea98e4065a563e518d963 software@the13thletter.info (Marco Ricci) Wed, 02 Oct 2024 09:31:40 +0200 b815a40b7b829470af7ea98e4065a563e518d963 Add support for Python 3.9 Support Python 3.9 by not using the following features: - `match`/`case` statements; replace them with `if`-statements - annotation-like class unions in `isinstance`; use a tuple instead - `TypeAlias` objects; write these as strings - the `root_dir` parameter of `glob.glob`; build the file list via `fnmatch.fnmatch` ourselves https://git.schokokeks.org/derivepassphrase.git/commit/eea542a5c4507c46f795152b3e6577b1408df4bd software@the13thletter.info (Marco Ricci) Tue, 01 Oct 2024 11:51:05 +0200 eea542a5c4507c46f795152b3e6577b1408df4bd Accomodate known slow tests in hypothesis deadline With coverage measurement enabled, program execution can slow down by a factor of roughly 40 if the Python tracer is used, instead of the C tracer. In some configurations, only the Python tracer is available. To avoid timing out on tests that otherwise would be okay with default settings, manually reset those tests' deadline to 40 times their original value; currently only one test is affected. https://git.schokokeks.org/derivepassphrase.git/commit/37a84d7952f9b6a09b4404cf36ea6c2b5dd2a020 software@the13thletter.info (Marco Ricci) Tue, 01 Oct 2024 11:36:02 +0200 37a84d7952f9b6a09b4404cf36ea6c2b5dd2a020 Fix awkward parametrization declaration for SSH agent client tests Instead of introducing a static method, calling it to obtain test parameters, then removing it again, use a declaration within the `pytest.mark.parametrize` decorator arguments, even if that is supposedly more difficult to read (I wouldn't agree). Among the readability benefits (primarily because of compactness), the imperative version via a static method throws errors on Python 3.9, presumably because the `staticmethod` object itself is being returned, not the bound method object, and the former isn't callable in Python 3.9. On a related note, a future import for annotations was missing as well. https://git.schokokeks.org/derivepassphrase.git/commit/0bdfe96ea10f82e3e3f91b5cddfd92369d7bf180 software@the13thletter.info (Marco Ricci) Tue, 01 Oct 2024 10:15:36 +0200 0bdfe96ea10f82e3e3f91b5cddfd92369d7bf180 Merge topic branch 'hypothesis' into master * t/hypothesis: Add hypothesis-based tests for SSH wire format serialization https://git.schokokeks.org/derivepassphrase.git/commit/7f1a2688085588bc44c39306a88f9691ee2142db software@the13thletter.info (Marco Ricci) Mon, 30 Sep 2024 15:42:48 +0200 7f1a2688085588bc44c39306a88f9691ee2142db Add hypothesis-based tests for SSH wire format serialization https://git.schokokeks.org/derivepassphrase.git/commit/d85d25eaa422dbbd6b4c5798c6fcec0aac5413e6 software@the13thletter.info (Marco Ricci) Mon, 30 Sep 2024 15:41:53 +0200 d85d25eaa422dbbd6b4c5798c6fcec0aac5413e6 Merge topic branch 'typing-fixes' into master * t/typing-fixes: Add changelog entries for Buffer support and documentation fix Fix bad documentation for SSHAgentClient.request return value Add proper support for Buffer types in the SSH agent client Add explicit example in hypothesis test, for test coverage Overhaul the validation function for vault(1) configurations https://git.schokokeks.org/derivepassphrase.git/commit/0065c6f5679b86d514a09306b3b76d31a4f39168 software@the13thletter.info (Marco Ricci) Mon, 30 Sep 2024 15:18:53 +0200 0065c6f5679b86d514a09306b3b76d31a4f39168 Add changelog entries for Buffer support and documentation fix https://git.schokokeks.org/derivepassphrase.git/commit/320cc9a7f1ff7097b812adcf9c76d6a0ebb48dfe software@the13thletter.info (Marco Ricci) Mon, 30 Sep 2024 15:18:00 +0200 320cc9a7f1ff7097b812adcf9c76d6a0ebb48dfe