https://git.schokokeks.org/derivepassphrase.git/tree/5ef40c2b120a9f4cac53794a225b5a7d91f2b0c8Recent commits to derivepassphrase.git (5ef40c2b120a9f4cac53794a225b5a7d91f2b0c8)2025-06-10T19:31:24+02:00tag:gitlist.org,2012:commit/5ef40c2b120a9f4cac53794a225b5a7d91f2b0c8Fix some coverage slipups2025-06-10T19:31:24+02:00Marco Riccisoftware@the13thletter.info
<pre>The first slipup deals with two different wrappers around `os.getenv`,
depending on whether the system support bytes-based environment
variables. We care about whether the wrapper function (whichever
implementation) is called correctly, not which wrapper function is
selected. So, rewrite the branch to put the system-specific definitions
under coverage exclusion, and the rest not.
The second slipup concerns the concurrency limit. The detection is
system- and runtime-dependent, but the error paths were previously not
excluded from coverage. Additionally, we claimed to manually support the
`PYTHON_CPU_COUNT` environment variable on Python 3.12, but contained no
matching code. So, rewrite the code to add that missing support, in
a coverage-friendly way.
</pre>
tag:gitlist.org,2012:commit/5ebe5c264adf4c95fd9d39a8689bc30d1af43c6bMerge topic branch 'defer-automatic-color-support' into master2025-06-09T23:03:12+02:00Marco Riccisoftware@the13thletter.info
<pre>* defer-automatic-color-support:
Document the removal/deferring of automatic color support
Remove automatic color and text styling support
</pre>
tag:gitlist.org,2012:commit/665c4b7e70fa60a64d8c5fc4f11fad02f77024fdDocument the removal/deferring of automatic color support2025-06-09T23:01:52+02:00Marco Riccisoftware@the13thletter.info
<pre></pre>
tag:gitlist.org,2012:commit/64b076508d85bc24a28e253d081b4f2bf95b552cRemove automatic color and text styling support2025-06-09T22:42:10+02:00Marco Riccisoftware@the13thletter.info
<pre>There are still too many open questions concerning the conventions for
overriding the automatic detection of color and text styling output.
Settling on any interpretation of these conventions now and formalizing
that as code will only come back to bite us later.
</pre>
tag:gitlist.org,2012:commit/845f9e01f6423c9ff612d87f0149fa448c5478eeMerge topic branch 'embedded-wishlist' into master2025-06-09T22:40:12+02:00Marco Riccisoftware@the13thletter.info
<pre>* embedded-wishlist:
Fix outdated MkDocs settings and dead outbound links
Reserve the "jvm" local version identifier
Embed our "wishlist" branch in the documentation
</pre>
tag:gitlist.org,2012:commit/34e7fe63eb30027caa1ed61b0ad7ba434bf942efFix outdated MkDocs settings and dead outbound links2025-06-02T22:08:35+02:00Marco Riccisoftware@the13thletter.info
<pre></pre>
tag:gitlist.org,2012:commit/6f687d7b24a3490317afbf3693f0dc8d19568ca4Reserve the "jvm" local version identifier2025-06-01T23:11:11+02:00Marco Riccisoftware@the13thletter.info
<pre>Reserve the "jvm" local version identifier for `derivepassphrase-jvm`,
an early-stage port of `derivepassphrase` to the Java Virtual Machine.
(We reserve the identifier "jvm" instead of "java" because it is not yet
final whether the port will continue to be written in Java, or rather in
a different language targeting the JVM.)
</pre>
tag:gitlist.org,2012:commit/07524c7fe9000d747e6c28b3a6dd1dd8dbd21e7cEmbed our "wishlist" branch in the documentation2025-06-01T23:05:23+02:00Marco Riccisoftware@the13thletter.info
<pre>The contents of `docs/wishlist/` now host a checkout of the `wishlist`
branch, providing our own bug and wish listing. The navigation includes
a new section "Wishlist", and the section includes custom CSS styling.
The "actions" partial template is also updated so that it generates
correct links to the raw file on GitHub, i.e., on the "wishlist" branch
instead of on the "master" branch.
</pre>
tag:gitlist.org,2012:commit/01cc80bfa5585ce8cff561e341852e3d522a30beMerge topic branch 'click-821-prompt-testing' into master2025-05-29T23:04:56+02:00Marco Riccisoftware@the13thletter.info
<pre>* click-821-prompt-testing:
Mitigate testing discrepancies from click 8.2.0 and below
</pre>
tag:gitlist.org,2012:commit/62c0d2918d5a152b18510e781a1f29ea0584f638Mitigate testing discrepancies from click 8.2.0 and below2025-05-29T23:02:50+02:00Marco Riccisoftware@the13thletter.info
<pre>A discrepancy exists between the documentation of `click.prompt` and the
actual behavior of `click.prompt` when mocked with
`click.testing.CliRunner` on click 8.2.0 and below
([`pallets/click#2934`][BUG2934]): when prompting for input and if at
end-of-file, the `CliRunner` may return an empty string instead of
raising `click.Abort`. This usually translates to extra line breaks in
the "mixed" and "echoed" runner output at the last prompt(s).
We mitigate this discrepancy from both sides. On the code side, we wrap
each call to `click.prompt` to treat aborts and empty responses the
same, which is appropriate behavior for the types of prompts we issue.
On the test side, we amend our existing tests to use empty-line input
instead of no input, and explicitly test the "no input" scenario
separately, accepting both the 8.2.0-or-lower or the 8.2.1-or-higher
output. Because the behavior depends on the `click` version, which is
beyond our control, we also adjust coverage measurement.
[BUG2934]: https://github.com/pallets/click/issues/2934
</pre>