Skip to content

Commit 7b120b2

Browse files
authored
glad: replace setup.py with pyproject.toml (#490)
1 parent 0127717 commit 7b120b2

File tree

4 files changed

+74
-79
lines changed

4 files changed

+74
-79
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ a.out
88
*.kdev_include_paths
99
main.c
1010
*.diff
11+
*.swp
1112
.idea
1213
dist/
1314
*.egg-info
@@ -18,4 +19,4 @@ dist/
1819
/rust/
1920
target/
2021
Cargo.lock
21-
.vscode/
22+
.vscode/

long_description.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Glad
2+
----
3+
4+
Glad uses the official Khronos-XML specs to generate a
5+
GL/GLES/EGL/GLX/VK/WGL Loader made for your needs.
6+
7+
Checkout the GitHub repository: https://github.com/Dav1dde/glad

pyproject.toml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "glad2"
7+
dynamic = ["version"]
8+
description = "Multi-Language GL/GLES/EGL/GLX/VK/WGL Loader-Generator based on the official specifications."
9+
readme = "long_description.md"
10+
license = {file = "LICENSE"}
11+
authors = [ {name = "David Herberth", email = "[email protected]"} ]
12+
maintainers = [ {name = "David Herberth", email = "[email protected]"} ]
13+
dependencies = ["Jinja2>=2.7,<4.0"]
14+
classifiers = [
15+
'Development Status :: 5 - Production/Stable',
16+
'Environment :: Console',
17+
'Intended Audience :: Developers',
18+
'Intended Audience :: Education',
19+
'Intended Audience :: Science/Research',
20+
'License :: OSI Approved :: MIT License',
21+
'Natural Language :: English',
22+
'Operating System :: OS Independent',
23+
'Programming Language :: Python :: 3',
24+
'Programming Language :: Python :: 3.8',
25+
'Programming Language :: Python :: 3.9',
26+
'Programming Language :: Python :: 3.10',
27+
'Programming Language :: Python :: 3.11',
28+
'Topic :: Games/Entertainment',
29+
'Topic :: Multimedia :: Graphics',
30+
'Topic :: Multimedia :: Graphics :: 3D Rendering',
31+
'Topic :: Software Development',
32+
'Topic :: Software Development :: Build Tools',
33+
'Topic :: Utilities'
34+
]
35+
keywords = ["opengl", "glad", "generator", "gl", "wgl", "egl", "gles", "vulkan", "vk", "glx"]
36+
37+
[project.urls]
38+
Source = "https://github.com/Dav1dde/glad"
39+
40+
[project.scripts]
41+
glad = "glad.__main__:main"
42+
43+
[project.entry-points."glad.generator"]
44+
c = "glad.generator.c.__init__:CGenerator"
45+
rust = "glad.generator.rust.__init__:RustGenerator"
46+
47+
[project.entry-points."glad.specification"]
48+
egl = "glad.specification:EGL"
49+
gl = "glad.specification:GL"
50+
glx = "glad.specification:GLX"
51+
wgl = "glad.specification:WGL"
52+
vk = "glad.specification:VK"
53+
54+
[project.optional-dependencies]
55+
fortran = ["glad2-fortran"]
56+
57+
[tool.setuptools]
58+
platforms = ["any"]
59+
60+
[tool.setuptools.dynamic]
61+
version = {attr = "glad.__version__"}
62+
63+
[tool.setuptools.packages]
64+
find = {}
65+

setup.py

-78
This file was deleted.

0 commit comments

Comments
 (0)