Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with PEP 517, move project metadata to pyproject.toml #84

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: python
python:
- "2.7"
- "3.6"
- "3.7"

install:
Expand Down
29 changes: 28 additions & 1 deletion accelerate/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
[build-system]
requires = [ "setuptools >= 42.0", "Cython >= 0.28", "numpy" ]
requires = [ "setuptools >= 61.0", "Cython >= 0.28", "numpy" ]
EpicWink marked this conversation as resolved.
Show resolved Hide resolved
build-backend = "setuptools.build_meta"

[project]
name = "PyOpenGL-accelerate"
description = "Acceleration code for PyOpenGL"
authors = [ { name = "Mike C. Fletcher", email = "[email protected]" } ]
urls.homepage = "http://pyopengl.sourceforge.net"
license = { text = "BSD" }
readme = { file = "README.txt", content-type = "text/plain" }
keywords = [ "PyOpenGL", "accelerate", "Cython" ]
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: C",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Multimedia :: Graphics :: 3D Rendering",
"Intended Audience :: Developers",
]

dynamic = [ "version" ]

[tool.setuptools]
packages = [ "OpenGL_accelerate" ]
platforms = [ "Win32", "Linux", "OS-X", "Posix" ]

[tool.setuptools.dynamic]
version = { attr = "OpenGL_accelerate.__init__.__version__" }
24 changes: 0 additions & 24 deletions accelerate/setup.cfg

This file was deleted.

24 changes: 0 additions & 24 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ environment:

# Older Python's that can be built with the default windows images...

- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.4"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.4"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python37"
PYTHON_VERSION: "3.7.0"
PYTHON_ARCH: "32"
Expand All @@ -59,22 +51,6 @@ environment:
PYTHON_VERSION: "3.8.0"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.14"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.14"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python35"
PYTHON_VERSION: "3.5.3"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.3"
PYTHON_ARCH: "64"

branches:
only:
- master
Expand Down
39 changes: 38 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,43 @@
[build-system]
requires = [ "setuptools >= 42.0" ]
requires = [ "setuptools >= 61.0" ]
build-backend = "setuptools.build_meta"

[project]
name = "PyOpenGL"
description = "Standard OpenGL bindings for Python"
authors = [ { name = "Mike C. Fletcher", email = "[email protected]" } ]
urls.homepage = "http://pyopengl.sourceforge.net"
license = { text = "BSD" }
readme = "readme.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 :: 3",
"Topic :: Multimedia :: Graphics :: 3D Rendering",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
]

dynamic = [ "version" ]

[tool.setuptools.packages]
find = { include = [ "OpenGL*" ], namespaces = false }

[tool.setuptools.dynamic]
version = { attr = "OpenGL.version.__version__" }

[tool.black]
skip-string-normalization=true
26 changes: 0 additions & 26 deletions setup.cfg

This file was deleted.