forked from pyunity/pyunity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
146 lines (137 loc) · 3.36 KB
/
pyproject.toml
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
requires = [
"cython>=3.0.0",
"wheel>=0.29.0",
"setuptools>=58.6.0"
]
build-backend = "setuptools.build_meta"
[project]
name = "pyunity"
authors = [{name = "The PyUnity Team", email = "[email protected]"}]
description = "A pure Python 3D Game Engine that was inspired by the structure of the Unity Game Engine"
license = {text = "MIT"}
classifiers = [
"Development Status :: 3 - Alpha",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.6"
dependencies = [
"pyopengl",
"pillow",
"pysdl2",
"pysdl2-dll",
"pyglm",
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown; charset=UTF-8"
[project.urls]
Homepage = "https://docs.pyunity.x10.bz/"
Documentation = "https://docs.pyunity.x10.bz/"
Source = "https://github.com/pyunity/pyunity"
Tracker = "https://github.com/pyunity/pyunity/issues"
Changelog = "https://docs.pyunity.x10.bz/en/latest/releases.html"
[project.optional-dependencies]
providers = [
# Other window providers as needed
"glfw",
"glcontext",
]
docs = [
"sphinx>=5.0.0",
"sphinx-toolbox>=1.1.0",
"sphinx-hoverxref>=1.1.1",
]
accel = [
"pyopengl-accelerate",
"numpy",
]
build = [
"wheel>=0.29.0",
"cython>=3.0.0",
"setuptools>=58.6.0",
"build[virtualenv]>=0.9.0",
]
test = [
"autopep8",
"pytest>=6.0",
"pytest-cov>=2.0",
"mypy>=1.4.0",
]
fallback = [
"toml",
"importlib-metadata",
]
dev = [
# providers
"glfw",
"glcontext",
# docs
"sphinx>=5.0.0",
"sphinx-toolbox>=1.1.0",
"sphinx-hoverxref>=1.1.1",
# accel
"pyopengl-accelerate",
"numpy",
# build
"wheel>=0.29.0",
"cython>=3.0.0",
"setuptools>=58.6.0",
"build[virtualenv]>=0.9.0",
# test
"autopep8",
"pytest>=6.0",
"pytest-cov>=2.0",
"mypy>=1.4.0",
# fallback
"toml",
"importlib-metadata",
]
[tool.setuptools]
include-package-data = false
[tool.pytest.ini_options]
python_files = "test*.py"
python_classes = "Test*"
python_functions = "test*"
addopts = ["tests/", "--cov=pyunity", "-vrs"]
filterwarnings = [
"ignore:cannot collect test class .* because it has a __init__ constructor:pytest.PytestCollectionWarning"
]
[tool.coverage.run]
omit = [
"pyunity/examples/*",
"pyunity/window/providers/*"
]
[tool.coverage.report]
exclude_lines = [
"def __repr__",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
"pass$"
]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
mypy_path = "stubs/"
disallow_untyped_defs = true
disallow_incomplete_defs = true
warn_unreachable = true
# stubtest command
# PYUNITY_CHANGE_MODULE=0 py -m mypy.stubtest --mypy-config-file pyproject.toml --ignore-unused-allowlist --allowlist .github/stubtest-ignore.txt pyunity