Re: [PATCH 4/5] tests: run python-cffi tests

Subject: Re: [PATCH 4/5] tests: run python-cffi tests

Date: Tue, 05 Nov 2019 00:04:03 +0200

To: David Bremner,


From: Tomi Ollila

On Mon, Nov 04 2019, Tomi Ollila wrote:

> as for checking pytest existence, the following works somewhat:
>    ~/test-venv/bin/python3 -m pytest --version
> It prints the version, then exists. Could not figure out how to request
> specific version in quick look (10 min search/trial/error session),
> parsing version output is so... :/ 

Hah, dumped ~/test-venv/. 

so retry...

$ python3 -m venv ~/test-venv
$ ~/test-venv/bin/pip3 install pytest
$ ~/test-venv/bin/python3
>>> import pytest
>>> dir(pytest)
>>> pytest.__version__

prints out '5.2.2'. argh, string again (in addition to resorting 
to __...__ names/attributes of whatever these are called in python ;).
anyway, even parsing this version string in python than doing it in
shell script would be better...(*)

anything better ?


(*) got exhausted when looking through this:
notmuch mailing list