Re: Python3 cffi bindings

2020-10-16 Thread Gaute Hope
On Fri, Oct 16, 2020 at 9:19 AM Gaute Hope wrote: > On Wed, Oct 14, 2020 at 10:24 PM Floris Bruynooghe wrote: > >> Hi Gaute, >> >> On Thu 08 Oct 2020 at 10:13 +0200, Gaute Hope wrote: >> > I made another attempt at porting lieer to notmuch2, but I am missing >> the >> > get_directory method

Re: Python3 cffi bindings

2020-10-16 Thread Gaute Hope
On Wed, Oct 14, 2020 at 10:24 PM Floris Bruynooghe wrote: > Hi Gaute, > > On Thu 08 Oct 2020 at 10:13 +0200, Gaute Hope wrote: > > I made another attempt at porting lieer to notmuch2, but I am missing the > > get_directory method still. Any plans to look at it? > > Would indeed be good to add

Re: Python3 cffi bindings

2020-10-14 Thread Floris Bruynooghe
Hi Gaute, On Thu 08 Oct 2020 at 10:13 +0200, Gaute Hope wrote: > I made another attempt at porting lieer to notmuch2, but I am missing the > get_directory method still. Any plans to look at it? Would indeed be good to add this sometime. I'm still curious to how you use it though to make sure we

Re: Python3 cffi bindings

2020-10-08 Thread Gaute Hope
Hi Floris and others, I made another attempt at porting lieer to notmuch2, but I am missing the get_directory method still. Any plans to look at it? Regards, Gaute On Sun, Nov 17, 2019 at 6:14 PM Floris Bruynooghe wrote: > Hi Gaute, > > Thanks for trying this out! > > On Mon 04 Nov 2019 at

Re: Python3 cffi bindings

2019-12-04 Thread Tomi Ollila
On Sat, Nov 16 2019, David Bremner wrote: > Gaute Hope writes: > >> >> By the way, it does not seem that the API is very far from the >> previous python API. If it is close enough, perhaps it is possible to >> get away with a bug version bump in the bindings rather than creating >> a new

Re: Python3 cffi bindings

2019-11-17 Thread Gaute Hope
On Sun, Nov 17, 2019 at 6:14 PM Floris Bruynooghe wrote: > > Hi Gaute, > > Thanks for trying this out! > > On Mon 04 Nov 2019 at 11:27 +0100, Gaute Hope wrote: > > I just checked out the wip/cffi branch on git.notmuch.org with the > > purpose of porting Lieer (https://github.com/gauteh/lieer).

Re: Python3 cffi bindings

2019-11-17 Thread Floris Bruynooghe
Hi Gaute, Thanks for trying this out! On Mon 04 Nov 2019 at 11:27 +0100, Gaute Hope wrote: > I just checked out the wip/cffi branch on git.notmuch.org with the > purpose of porting Lieer (https://github.com/gauteh/lieer). There > seems to be some missing functionality: `Database.get_directory()`

Re: Python3 cffi bindings

2019-11-16 Thread David Bremner
Gaute Hope writes: > > By the way, it does not seem that the API is very far from the > previous python API. If it is close enough, perhaps it is possible to > get away with a bug version bump in the bindings rather than creating > a new package. I understand the need for a new package, but it

Re: Python3 cffi bindings

2019-11-04 Thread Gaute Hope
Hi, I just checked out the wip/cffi branch on git.notmuch.org with the purpose of porting Lieer (https://github.com/gauteh/lieer). There seems to be some missing functionality: `Database.get_directory()` specifically. I also ran into a couple of warning when building (included below). Thanks for

Re: Python3 cffi bindings

2019-10-25 Thread Floris Bruynooghe
On Tue 22 Oct 2019 at 13:32 -0300, David Bremner wrote: > David Bremner writes: > >> The LD_LIBRARY_PATH is already set by the test harness, as is PATH (to >> find notmuch). It looks like your function notmuch is not respecting >> PATH (see attached log). if I hack something like >> >> diff

Re: Python3 cffi bindings

2019-10-22 Thread David Bremner
David Bremner writes: > The LD_LIBRARY_PATH is already set by the test harness, as is PATH (to > find notmuch). It looks like your function notmuch is not respecting > PATH (see attached log). if I hack something like > > diff --git a/bindings/python-cffi/tests/conftest.py >

Re: Python3 cffi bindings

2019-10-20 Thread David Bremner
Floris Bruynooghe writes: > > It is possible to run this without installing, but it does need a build > step since cffi (in the mode used - which is the recommended mode) needs > to build an extension module. I did something like this, using my > debian testing system-installed python > > $

Re: Python3 cffi bindings

2019-10-17 Thread Floris Bruynooghe
On Mon 14 Oct 2019 at 09:42 -0300, David Bremner wrote: > David Bremner writes: > >> The shim in >> T391-python-cffi.sh doesn't work for me, it doesn't manage to set >> PYTHONPATH so that notdb is importable. Ah yes, I tested this shim while activating a venv with the extension installed using

Re: Python3 cffi bindings

2019-10-14 Thread David Bremner
David Bremner writes: > The shim in > T391-python-cffi.sh doesn't work for me, it doesn't manage to set > PYTHONPATH so that notdb is importable. I should have mentioned that if I manually set python path with something like $ PYTHONPATH=`pwd`/build/lib.linux-x86_64-3.7:$PYTHONPATH pytest-3

Re: Python3 cffi bindings

2019-10-14 Thread David Bremner
Floris Bruynooghe writes: > IIRC this probably wants to be renamed to "notmuch2" instead of > "notdb". Otherwise I'm pretty sure this doesn't cover all the > current features either. Yes, I think notmuch2 was the least disliked suggestion. > So maybe this can be used as a start to figure out

Re: Python3 cffi bindings

2019-10-09 Thread Floris Bruynooghe
On Tue 08 Oct 2019 at 19:24 -0300, David Bremner wrote: > Floris Bruynooghe writes: >> Anyway, I found the code, checked things work, updated tests on new >> python versions, added a very basic intergration with the test >> framework and squashed the commits. Otherwise the attached patch >> is

Re: Python3 cffi bindings

2019-10-08 Thread David Bremner
Floris Bruynooghe writes: > Anyway, I found the code, checked things work, updated tests on new > python versions, added a very basic intergration with the test > framework and squashed the commits. Otherwise the attached patch > is just a plain dump of the current state so interested people

Python3 cffi bindings

2019-10-08 Thread Floris Bruynooghe
Hi all, IIRC there was a thread in August about another attempt at bringing the CFFI-based bindings on board as a Python3-only version. I believe there was a desire to re-name things but my searching-fu is failing me and I can no longer find the email thread. Anyway, I found the code, checked