scoder
scoder
> it is simpler to just install setuptools alongside cython The difference is that listing it in `setup.cfg` makes it available as package metadata, thus listing `setuptools` explicitly as an...
> I don't think there is a way to discover optional dependencies that is not through documentation. AFAIK, variants are not listed anywhere on PyPI or via any installation tool....
Hmm, interesting case. That makes locking the runtime appear much less appealing inside of `__dealloc__`. It's difficult to avoid, though. The lock that Lupa uses is re-entrant, so this rarely...
I started fixing this, but the test that you provided is still failing. Might just be a missing cleanup call somewhere. See https://github.com/scoder/lupa/pull/255
I don't use pytest myself. Try `python -m unittest -v lupa.tests.suite`.
> What is the propose of importing module in such strange way? 🤔 I can't find anything particularly strange about it, but the test suite is generated, or rather duplicated,...
That line imports the Lua module with the latest available version, after putting some effort into selecting it. It's a bit more than a simple import since it needs to...
I had looked at it when you wrote it and wasn't sure. The difference is that, in your proposal, the Lua runtime gets cleaned up after each run, thus clearing...
I took another look and it turns out that most of the excess references in the test are cleaned up by triggering a run of the Lua garbage collector. Most,...
I think it's too difficult to test correctly for reference leaks here, so the test sadly has to go without that. I simplified it.