From 227f9c66976d9f5dadf62b9a97e6beaec84831ca Mon Sep 17 00:00:00 2001 From: "Mike C. Fletcher" Date: Sat, 19 Feb 2022 22:33:26 -0500 Subject: [PATCH] BUMP Accelerate version for release --- OpenGL/acceleratesupport.py | 22 ++++++++++++++-------- accelerate/OpenGL_accelerate/__init__.py | 4 ++-- setup.py | 2 +- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/OpenGL/acceleratesupport.py b/OpenGL/acceleratesupport.py index e599feb1..6cf3fb01 100644 --- a/OpenGL/acceleratesupport.py +++ b/OpenGL/acceleratesupport.py @@ -1,18 +1,24 @@ """Common code for accelerated modules""" import logging from OpenGL import _configflags -needed_version = (3,1,5) -_log = logging.getLogger( 'OpenGL.acceleratesupport' ) + +needed_version = (3, 1, 6) +_log = logging.getLogger("OpenGL.acceleratesupport") try: import OpenGL_accelerate + if _configflags.USE_ACCELERATE: - if OpenGL_accelerate.__version_tuple__ < needed_version: - _log.warning( """Incompatible version of OpenGL_accelerate found, need at least %s found %s""", needed_version, OpenGL_accelerate.__version_tuple__) - raise ImportError( """Old version of OpenGL_accelerate""" ) + if OpenGL_accelerate.__version_tuple__ < needed_version: + _log.warning( + """Incompatible version of OpenGL_accelerate found, need at least %s found %s""", + needed_version, + OpenGL_accelerate.__version_tuple__, + ) + raise ImportError("""Old version of OpenGL_accelerate""") ACCELERATE_AVAILABLE = True - _log.info( """OpenGL_accelerate module loaded""" ) + _log.info("""OpenGL_accelerate module loaded""") else: - raise ImportError( """Acceleration disabled""" ) + raise ImportError("""Acceleration disabled""") except ImportError as err: - _log.info( """No OpenGL_accelerate module loaded: %s""", err ) + _log.info("""No OpenGL_accelerate module loaded: %s""", err) ACCELERATE_AVAILABLE = False diff --git a/accelerate/OpenGL_accelerate/__init__.py b/accelerate/OpenGL_accelerate/__init__.py index ea3210f0..efbf9b6a 100644 --- a/accelerate/OpenGL_accelerate/__init__.py +++ b/accelerate/OpenGL_accelerate/__init__.py @@ -6,5 +6,5 @@ PyOpenGL package and is built via the setupaccel.py script in the top level of the PyOpenGL source package. """ -__version__ = '3.1.5' -__version_tuple__ = (3,1,5) +__version__ = '3.1.6' +__version_tuple__ = (3,1,6) diff --git a/setup.py b/setup.py index bf01159e..741482bf 100644 --- a/setup.py +++ b/setup.py @@ -82,7 +82,7 @@ def run(self): description = 'Standard OpenGL bindings for Python', options = { 'sdist': { - 'formats': ['gztar','zip'], + 'formats': ['gztar'], 'force_manifest': True, }, },