Skip to content

Commit

Permalink
BUILD Update the pyproject.toml for accelerate
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfletch committed Dec 31, 2024
1 parent 7ae3a58 commit 052d740
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 7 deletions.
15 changes: 15 additions & 0 deletions accelerate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Acceleration code for PyOpenGL

This set of C (Cython) extensions provides acceleration of common operations
for slow points in PyOpenGL 3.x. It is not a requirement for using PyOpenGL
but performance without it will be poor.

## Build Process

Cython is updated frequently to support newer versions of Python. As of
release 3.1.9 we no longer check in the Cython generated code for the
wrapper modules, relying on the build machines to generate the wrappers.

The Github CI Pipeline should generate and release binary builds for most
major platforms (Windows, Linux, Mac), but if you need to build from source,
a `pip install .` **should** work from the PyOpenGL repository.
4 changes: 0 additions & 4 deletions accelerate/README.txt

This file was deleted.

46 changes: 46 additions & 0 deletions accelerate/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
[project]
name="PyOpenGL-accelerate"
dynamic=["version"]
description = "Cython-coded accelerators for PyOpenGL"
authors = [
{name="Mike C. Fletcher",email="[email protected]"},
]
readme = {file="README.md", content-type = "text/markdown"}
license={file="license.txt"}
keywords = [
"Graphics",
"3D",
"OpenGL",
"GLU",
"GLUT",
"GLE",
"GLX",
"EXT",
"ARB",
"Mesa",
"PyOpenGL",
]
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",
]
[project.urls]
Homepage = "https://mcfletch.github.io/pyopengl/"
Download = "https://pypi.org/project/PyOpenGL-accelerate/"
Source = "https://github.com/mcfletch/pyopengl"
Documentation = "https://mcfletch.github.io/pyopengl/documentation/index.html"

[build-system]
requires = [ "setuptools >= 42.0", "Cython >= 0.28", "numpy" ]
build-backend = "setuptools.build_meta"

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

[tool.setuptools.packages.find]
namespaces=false
include=["OpenGL_accelerate"]
exclude=["tests","src"]

3 changes: 0 additions & 3 deletions accelerate/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ def cython_extension(
]
+ list(include_dirs),
define_macros=[
# *cython* itself is using the deprecated api, and the
# deprecated APIs are actually providing the attributes
# that we use throughout our code...
('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION'),
],
compiler_directives={'language_level': "3"} if have_cython else {},
Expand Down

0 comments on commit 052d740

Please sign in to comment.