File: pyproject.toml

package info (click to toggle)
pyopengl 3.1.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,972 kB
  • sloc: python: 107,767; sh: 13; makefile: 7
file content (98 lines) | stat: -rw-r--r-- 2,632 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[project]
name="PyOpenGL"
dynamic=["version"]
description = "Standard OpenGL bindings for Python"
authors = [
    {name="Mike C. Fletcher",email="mcfletch@vrplumber.com"},
]
readme = {file="readme.rst", 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",
]

[project.urls]
Homepage = "https://mcfletch.github.io/pyopengl/"
Download = "https://pypi.org/project/PyOpenGL/"
Source = "https://github.com/mcfletch/pyopengl"
Documentation = "https://mcfletch.github.io/pyopengl/documentation/index.html"

[build-system]
requires = [ "setuptools >= 42.0" ]
build-backend = "setuptools.build_meta"

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

[tool.setuptools.packages.find]
namespaces=false
include=["OpenGL*"]
exclude=["tests","accelerate","directdocs","documentation"]

[tool.black]
skip-string-normalization=true

[tool.ruff.lint]
dummy-variable-rgx="^(_|err)$"
ignore = [
    'D200', # Allow multiline docstring even when it could fit on one line

    'C408', # Allow instantiating dictionary as dict(key=value)
    'E501', # Line too long
    'ANN101', # Don't require self to be annotated.
    'PTH', # allow os.path
    'PLR0913', # allow too many arguments

    # 'F841', # we often have `err` as unused argument in this codebase
    'E401', # I prefer multiple imports/line generally
    'E402', # Common pattern with autogenerated boilerplate in the wrappers
    'F401', # Unused imports from autogeneration are everywhere
    'F403', # Standard usage is to use star imports
    'F405', # Standard usage is to use star imports
    'F811', # Redefinition of function from autogen in the higher-level wrappers is common

    # 'F821', # Undefined variables due to start imports, again
    'E741', # Variables from the underlying api are often e.g. `l`

]
[tool.ruff.lint.per-file-ignores]
"OpenGL/_bytes.py" = [
    "F821",
]
"OpenGL/GL/shaders.py" = [
    "F821",
]
"OpenGL/wrapper.py" = [
    'F841', # we often have `err` as unused argument in this codebase

]
"OpenGL/GL/images.py" = [
    "F822",
]
"OpenGL/GL/pointers.py"= [
    "F822",
]
"OpenGL/Tk/__init__.py"=[
    "E701",
]

[tool.ruff.format]
quote-style = "single"