On 23/01/2022 09:19, Stefano Zacchiroli wrote:
On Sat, Jan 22, 2022 at 11:00:18PM +0100, Daniele Nicolodi wrote:
I am currently using beancount2 and fava (python3 -m pip install
beancount fava). Is it possible to integrate this unreleased beanquery
into this flow?
beangulp should work fine with Beancount v2 thus you should be able to
install it just fine.
(You meant beanquery above, right? I'm assuming you did.)
Ops. Sure, I meant beanquery in this context. Although, the statement
holds true for beangulp as well (with the same caveats, see below).
I've tried this in a fresh virtualenv and it doesn't work out of the
box. beanquery depends on "beancount>=3.0.dev0", so it cannot be
installed side by side with beancount at least as shipped from pypi.
What's the recommended way to achieve that with the current split code
base? I'm interested too.
I should have checked this. Indeed the package metadata is written to
require the v3 development version of Beancount.
I tried to relax the version requirement for beanquery and have our CI
to run the beanquery tests against Beancount from git master and from
the latest PyPI release. However, the beangulp testsuite in a few places
assumes Beancount v3 syntax [1] thus the test suite fails with
Beancoiunt v2. I don't think it is worth the effort and the complication
to make the test suite work with both versions (although, I am open to
review and merge patches, if someone wants to work on this).
I don't feel comfortable relaxing the Beancount version required by
beanquery if there isn't CI in place preventing regressions.
As of now, my recommendation is to install beanquery along Beancount v3.
Except for the backward compatibility break noted above, v3 is expected
to work on v2 ledgers. Wanting to keep using v2 for other things, I
would install this combination in a dedicated venv from which to run the
bean-query command.
[1] the only backward compatibility break in Beancount v3 so far is the
syntax for transactions and posting flags using capital letters, which
must be prefixed with ' in the v3 syntax. [A-Z] flags are used to mark
automatic transactions, and beangulp has a few tests for the handling of
these.
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/8415a0ef-e18f-527e-d123-e4618072f4db%40grinta.net.