diff --git a/accelerate/setup.py b/accelerate/setup.py index 0a525fdc..a77884e9 100644 --- a/accelerate/setup.py +++ b/accelerate/setup.py @@ -1,13 +1,8 @@ #!/usr/bin/env python """Builds accelleration functions for PyOpenGL """ - import sys - -if sys.version_info[:2] < (3, 12): - from setuptools import setup, Extension -else: - from distutils.core import setup, Extension +from setuptools import setup, Extension try: from Cython.Distutils import build_ext diff --git a/pyproject.toml b/pyproject.toml index cbfd7a92..9f95e22f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,10 +44,9 @@ version = {attr = "OpenGL.version.__version__"} [tool.setuptools.packages.find] namespaces=false -include=["OpenGL"] +include=["OpenGL*"] exclude=["tests","accelerate","directdocs","documentation"] - [tool.black] skip-string-normalization=true diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 21031f97..00000000 --- a/setup.cfg +++ /dev/null @@ -1,26 +0,0 @@ -[metadata] -name = PyOpenGL -version = attr: OpenGL.version.__version__ -description = Standard OpenGL bindings for Python -author = Mike C. Fletcher -author_email = mcfletch@vrplumber.com -url = http://pyopengl.sourceforge.net -download_url = https://pypi.org/project/PyOpenGL/ -; license = BSD -long_description = file: readme.rst -long_description_content_type = text/x-rst -keywords = Graphics, 3D, OpenGL, GLU, GLUT, GLE, GLX, EXT, ARB, Mesa, ctypes -classifiers = - License :: OSI Approved :: BSD License - Programming Language :: Python - Programming Language :: Python :: 2 - Programming Language :: Python :: 3 - Topic :: Multimedia :: Graphics :: 3D Rendering - Topic :: Software Development :: Libraries :: Python Modules - Intended Audience :: Developers - -[options] -packages = find: - -[options.packages.find] -include = OpenGL* diff --git a/setup.py b/setup.py index 9c99241c..24d87970 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,8 @@ #! /usr/bin/env python """PyOpenGL setup script distutils/setuptools/pip based""" import sys, os -from distutils.core import setup from distutils.command.install_data import install_data +from setuptools import setup extra_commands = {}