https://git.schokokeks.org/derivepassphrase.git/tree/eea542a5c4507c46f795152b3e6577b1408df4bd Recent commits to derivepassphrase.git (eea542a5c4507c46f795152b3e6577b1408df4bd) 2024-10-01T11:51:05+02:00 tag:gitlist.org,2012:commit/eea542a5c4507c46f795152b3e6577b1408df4bd Add support for Python 3.9 2024-10-01T11:51:05+02:00 Marco Ricci software@the13thletter.info <pre>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 &lt;/pre&gt; tag:gitlist.org,2012:commit/37a84d7952f9b6a09b4404cf36ea6c2b5dd2a020 Accomodate known slow tests in hypothesis deadline 2024-10-01T11:36:02+02:00 Marco Ricci software@the13thletter.info <pre>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. &lt;/pre&gt; tag:gitlist.org,2012:commit/0bdfe96ea10f82e3e3f91b5cddfd92369d7bf180 Fix awkward parametrization declaration for SSH agent client tests 2024-10-01T10:15:36+02:00 Marco Ricci software@the13thletter.info <pre>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. &lt;/pre&gt; tag:gitlist.org,2012:commit/7f1a2688085588bc44c39306a88f9691ee2142db Merge topic branch 'hypothesis' into master 2024-09-30T15:42:48+02:00 Marco Ricci software@the13thletter.info <pre>* t/hypothesis: Add hypothesis-based tests for SSH wire format serialization &lt;/pre&gt; tag:gitlist.org,2012:commit/d85d25eaa422dbbd6b4c5798c6fcec0aac5413e6 Add hypothesis-based tests for SSH wire format serialization 2024-09-30T15:41:53+02:00 Marco Ricci software@the13thletter.info <pre>&lt;/pre&gt; tag:gitlist.org,2012:commit/0065c6f5679b86d514a09306b3b76d31a4f39168 Merge topic branch 'typing-fixes' into master 2024-09-30T15:18:53+02:00 Marco Ricci software@the13thletter.info <pre>* 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 &lt;/pre&gt; tag:gitlist.org,2012:commit/320cc9a7f1ff7097b812adcf9c76d6a0ebb48dfe Add changelog entries for Buffer support and documentation fix 2024-09-30T15:18:00+02:00 Marco Ricci software@the13thletter.info <pre>&lt;/pre&gt; tag:gitlist.org,2012:commit/005bd61e75457254319a3136ccc5365100258258 Fix bad documentation for SSHAgentClient.request return value 2024-09-30T15:03:05+02:00 Marco Ricci software@the13thletter.info <pre>&lt;/pre&gt; tag:gitlist.org,2012:commit/0dcc1a8c0b8b2ae2574d9d94ddba81fb203fe888 Add proper support for Buffer types in the SSH agent client 2024-09-30T14:35:47+02:00 Marco Ricci software@the13thletter.info <pre>As of Python 3.12, any custom Python class can declare support for the buffer protocol. So instead of special-casing `bytes` and `bytearray`, and ignoring all other types, support arbitrary classes with buffer protocol support. Furthermore, explicitly return bytes objects (i.e., read-only copies) of all involved byte strings, because the buffer protocol ensures that copies are relatively cheap. &lt;/pre&gt; tag:gitlist.org,2012:commit/9e573fa48b3adf6a3bb23b30bf421e885a27f39b Add explicit example in hypothesis test, for test coverage 2024-09-30T10:40:45+02:00 Marco Ricci software@the13thletter.info <pre>The test coverage otherwise gets flaky. &lt;/pre&gt;