Skip to content

2.8.0

Latest
Compare
Choose a tag to compare
@Zuzu-Typ Zuzu-Typ released this 05 Feb 08:32
da7df3e

New package structure

Important: PyGLM is now packaged as

  • pyglm (root package)
    • .glm (library)
    • .typing (typing stubs)
  • glm (for backwards compatibility)

Please test this new package structure with your projects and give me feedback in this discussion.

To ensure compatibility with the new version, please update your existing imports from

import glm
# or
from glm import vec3

to

from pyglm import glm
# or
from pyglm.glm import vec3

You can now also import the typing stubs by @esoma:

from pyglm import typing

To update your imports for compatibility with old and future versions:

try:
    from pyglm import glm
    # typing stubs (optional):
    from pyglm import typing
except ImportError:
    import glm
    # typing stubs (optional):
    import importlib
    typing = importlib.import_module("glm-stubs.glm_typing")

What's Changed

New Contributors

Full Changelog: 2.7.3...2.8.0