|
| 1 | +diff --color -rp pyopengl_accelerate-3.1.9.old/pyproject.toml pyopengl_accelerate-3.1.9/pyproject.toml |
| 2 | +*** pyopengl_accelerate-3.1.9.old/pyproject.toml 2025-01-19 16:30:48 |
| 3 | +--- pyopengl_accelerate-3.1.9/pyproject.toml 2025-07-30 13:50:18 |
| 4 | +*************** dynamic=["version"] |
| 5 | +*** 1,6 **** |
| 6 | +--- 1,7 ---- |
| 7 | + [project] |
| 8 | + name="PyOpenGL-accelerate" |
| 9 | + dynamic=["version"] |
| 10 | ++ requires-python = ">= 3.9" # At least Python 3.9 |
| 11 | + description = "Cython-coded accelerators for PyOpenGL" |
| 12 | + authors = [ |
| 13 | + {name="Mike C. Fletcher",email=" [email protected]"}, |
| 14 | +*************** classifiers = [ |
| 15 | +*** 23,29 **** |
| 16 | + classifiers = [ |
| 17 | + "License :: OSI Approved :: BSD License", |
| 18 | + "Programming Language :: Python", |
| 19 | +- "Programming Language :: Python :: 2", |
| 20 | + "Programming Language :: Python :: 3", |
| 21 | + "Topic :: Multimedia :: Graphics :: 3D Rendering", |
| 22 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 23 | +--- 24,29 ---- |
| 24 | +*************** Documentation = "https://mcfletch.github.io/pyopengl/d |
| 25 | +*** 36,42 **** |
| 26 | + Documentation = "https://mcfletch.github.io/pyopengl/documentation/index.html" |
| 27 | + |
| 28 | + [build-system] |
| 29 | +! requires = [ "setuptools >= 42.0", "Cython >= 0.28", "numpy" ] |
| 30 | + build-backend = "setuptools.build_meta" |
| 31 | + |
| 32 | + [tool.setuptools.dynamic] |
| 33 | +--- 36,42 ---- |
| 34 | + Documentation = "https://mcfletch.github.io/pyopengl/documentation/index.html" |
| 35 | + |
| 36 | + [build-system] |
| 37 | +! requires = [ "setuptools >= 42.0", "Cython >= 3", "numpy" ] |
| 38 | + build-backend = "setuptools.build_meta" |
| 39 | + |
| 40 | + [tool.setuptools.dynamic] |
| 41 | +*************** include=["OpenGL_accelerate"] |
| 42 | +*** 45,49 **** |
| 43 | + [tool.setuptools.packages.find] |
| 44 | + namespaces=false |
| 45 | + include=["OpenGL_accelerate"] |
| 46 | +! exclude=["tests","src"] |
| 47 | + |
| 48 | +--- 45,49 ---- |
| 49 | + [tool.setuptools.packages.find] |
| 50 | + namespaces=false |
| 51 | + include=["OpenGL_accelerate"] |
| 52 | +! exclude=["tests", "src"] |
| 53 | + |
| 54 | +diff --color -rp pyopengl_accelerate-3.1.9.old/src/vbo.pyx pyopengl_accelerate-3.1.9/src/vbo.pyx |
| 55 | +*** pyopengl_accelerate-3.1.9.old/src/vbo.pyx 2025-01-19 16:30:48 |
| 56 | +--- pyopengl_accelerate-3.1.9/src/vbo.pyx 2025-07-30 13:50:18 |
| 57 | +*************** cdef class VBO: |
| 58 | +*** 188,195 **** |
| 59 | + assert not self.created, """Already created the buffer""" |
| 60 | + buffers = self.get_implementation().glGenBuffers(1) |
| 61 | + try: |
| 62 | +! self.buffer = long( buffers ) |
| 63 | +! except (TypeError,ValueError) as err: |
| 64 | + self.buffer = buffers[0] |
| 65 | + self.target = self.c_resolve( self.target_spec ) |
| 66 | + self.usage = self.c_resolve( self.usage_spec ) |
| 67 | +--- 188,195 ---- |
| 68 | + assert not self.created, """Already created the buffer""" |
| 69 | + buffers = self.get_implementation().glGenBuffers(1) |
| 70 | + try: |
| 71 | +! self.buffer = int( buffers ) |
| 72 | +! except (TypeError, ValueError) as err: |
| 73 | + self.buffer = buffers[0] |
| 74 | + self.target = self.c_resolve( self.target_spec ) |
| 75 | + self.usage = self.c_resolve( self.usage_spec ) |
| 76 | +*************** cdef class VBO: |
| 77 | +*** 242,248 **** |
| 78 | + """Add an integer to this VBO (offset)""" |
| 79 | + if hasattr( other, 'offset' ): |
| 80 | + other = other.offset |
| 81 | +! assert isinstance( other, (int,long) ), """Only know how to add integer/long offsets""" |
| 82 | + return VBOOffset( self, other ) |
| 83 | + cdef int check_live( self ): |
| 84 | + if self.data is _NULL: |
| 85 | +--- 242,248 ---- |
| 86 | + """Add an integer to this VBO (offset)""" |
| 87 | + if hasattr( other, 'offset' ): |
| 88 | + other = other.offset |
| 89 | +! assert isinstance( other, int), """Only know how to add integer offsets""" |
| 90 | + return VBOOffset( self, other ) |
| 91 | + cdef int check_live( self ): |
| 92 | + if self.data is _NULL: |
0 commit comments