On 07/03/24 18:45, Chary Chary wrote:
Thanks for looking at this, I did try the *pip3 install -e .* method. in
virtual environment.
The installation works, but then unit tests do not work. Did you try
running unit tests ( *pytest beancount )* ?
However when I use the good old *py setup.py build_ext -i *method, then
pytests do work
A sane amount of RTFM would not be misplaced. It is not like Python
development and packaging are these obscure things that are discussed
nowhere on the internet.
beancount uses a source layout in which the tests are located next to
the source code being tested. However, the tests are not installed with
the code (because the users of beancount do not need to access the
testsuite and this makes the binary distribution significantly smaller).
With this setup, you need to point pytest to the root of the Python
package sources and use the --import-mode=importlib option to run the tests.
Cheers,
Dan
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/1742f1fc-e4e1-48b9-b547-a8527af1552f%40grinta.net.