Bug#1082705: python-inline-snapshot: documentation includes inline error messages instead of output
Chris Lamb
lamby at debian.org
Tue Sep 24 19:57:33 BST 2024
Source: python-inline-snapshot
Version: 0.13.1-1
Severity: wishlist
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
python-inline-snapshot could not be built reproducibly.
This is because the documentation embeds a number of error messages
that in turn include nondeterminstic contents:
[1;34m> pytest test_something.py --inline-snapshot=create,report
[0m[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --inline-snapshot=create,report
inifile: None
rootdir: /tmp/tmp.0ENzKZTyyS
[0m
There are also other errors that don't include nondeterminstic content,
hence this more general bug:
[1;34m> pytest test_something.py --inline-snapshot=short-report
[0menvironment: line 10: python: command not found
It appears that the documentation cannot find the pytest plugin within
its own build directory, which may be because the setuptools entry
point isn't available [1] as it isn't installed... but I don't know
how to fix that.
[0] https://reproducible-builds.org/
[1] https://docs.pytest.org/en/7.1.x/how-to/writing_plugins.html#setuptools-entry-points
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
More information about the Reproducible-bugs
mailing list