perey / pegl

A Python 3 wrapper for the EGL library.
GNU General Public License v3.0
14 stars 5 forks source link

pegl version format #4

Closed rayzchen closed 2 years ago

rayzchen commented 2 years ago

Currently with the format w.x_y.z pip does not recognise the version format. Running pip install pegl gives ERROR: Could not find a version that satisfies the requirement pegl (from versions: 0.1a3~1.4, 0.1a4_1.4) whereas downloading the sdist gives WARNING: Built wheel for pegl is invalid: Metadata 1.2 mandates PEP 440 version, but '0.1a4-1.4' is not. It does install, however it uses the outdated python setup.py install mechanism. Using a PEP 440 version string could fix this, however I don't see how you would be able to include both the wrapped EGL version and the python PEGL version in one version string.

perey commented 2 years ago

This will be fixed in the next version, which will no longer include the EGL version number in the PEGL version string.

The upcoming version is in the refresh branch, and is just awaiting testing and bugfixes before release.

rayzchen commented 2 years ago

Glad to see this being actively maintained! I'd gladly help you if you need me to. On a side note, is this supported on Windows?

perey commented 2 years ago

“Actively” maintained might be a stretch, but yeah, I work on it occasionally. 🙂

And as it happens, it presently works better on Windows with ANGLE than it does on Linux with Mesa.

rayzchen commented 2 years ago

On a side note, the example in README.rst gives AttributeError: 'Config' object has no attribute 'get_context'. (from refresh branch)

perey commented 2 years ago

Version 0.2a1 is now available from PyPI.

On a side note, the example in README.rst gives AttributeError: 'Config' object has no attribute 'get_context'. (from refresh branch)

Thanks for pointing that out. It should've been create_context. This is fixed in 5011d6a, part of the new release.