New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add zengl 1.16.0 #4208
Add zengl 1.16.0 #4208
Conversation
I am running the tests from
my package is built:
|
Sorry, you need to update
The CI looks good generally. Could you add |
thank you, it works now.
|
Here is a complete list of commands to achieve running tests: ./run_docker
pip install -U pytest-pyodide
PYODIDE_PACKAGES=zengl make
pytest --runtime chrome -k zengl -vvv Previously I did: ./run_docker
make
pyodide build-recipes zengl # this will build zengl but it won't be visible for the tests, see the commands above
pytest ... |
c7b3386
to
e1d2349
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is ready to merge.
Thanks @szabolcsdombi! |
It is still timing out on firefox. Maybe xfail it? |
would xfail waste a minute? getContext returns null or undefined. skip does not work either. if not gl:
pytest.skip('webgl2 not supported') # raises Skipped and cannot be pickled so i moved the context creation behind an if. |
8f1388e
to
352bde5
Compare
|
Interesting I'll look into fixing |
I have looked into that, forked pytest-pyodide, but I found it too hard to track down the place to add my changes. Namely I found no way to nicely catch and re-raise exceptions first propagating through the js invocation in the run method of the base class.
I would love to help. |
Thanks for contributing this @szabolcsdombi! It looks very nice.
Well thanks for looking into it. It is a bit of a confusing package... |
The problem is here: |
Thank you! |
Description
Added zengl 1.16.0
ZenGL provides OpenGL binding for Python.
The same code that runs natively also runs in the browser as-is without modifications.
It does not depend on SDL, emscripten GLES or anything else.
It binds directly to WebGL2.
Working demo: https://szabolcsdombi.github.io/zengl/
Checklists