-
Notifications
You must be signed in to change notification settings - Fork 332
/
pyproject.toml
209 lines (189 loc) · 5.31 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
[project]
name = "arcade"
description = "Arcade Game Development Library"
readme = "README.md"
authors = [{ name = "Paul Vincent Craven", email = "[email protected]" }]
license = { file = "license.rst" }
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
# Fallback to use pyglet's development branch as a rolling release package
# at the cost of slow download and constant pip install -I -e .[dev]
# "pyglet@git+https://github.com/pyglet/pyglet.git@development#egg=pyglet",
# Expected future dev preview release on PyPI (not yet released)
"pyglet == 2.1rc1",
"pillow~=11.0.0",
"pymunk~=6.9.0",
"pytiled-parser~=2.2.7",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://api.arcade.academy"
Documentation = "https://api.arcade.academy/"
Examples = "https://api.arcade.academy/en/latest/examples/index.html"
Issues = "https://github.com/pythonarcade/arcade/issues"
Source = "https://github.com/pythonarcade/arcade"
Book = "https://learn.arcade.academy"
[project.optional-dependencies]
# Used for dev work
dev = [
# --- Documentation: Sphinx 7 based currently
"sphinx==8.1.3", # April 2024 | Updated 2024-07-15, 7.4+ is broken with sphinx-autobuild
"sphinx_rtd_theme==3.0.1", # Nov 2024
"sphinx-rtd-dark-mode==1.3.0",
"sphinx-autobuild==2024.10.3", # April 2024 | Due to this, Python 3.10+ is required to serve docs
"sphinx-copybutton==0.5.2", # April 2023
"sphinx-sitemap==2.6.0", # April 2024
"pygments==2.18.0", # 2.18 has breaking changes in lexer
"docutils==0.21.2", # ?
# "pyyaml==6.0.1",
# "readthedocs-sphinx-search==0.3.2",
# "sphinx-autodoc-typehints==2.0.1",
# --- tools and build
"pytest",
"pytest-cov",
"pytest-mock",
"coverage",
"coveralls", # Do we really need this?
"black",
"ruff",
"mypy",
"pyright==1.1.387",
"typer[all]==0.12.5", # Needed for make.py
"wheel",
]
# Testing only
testing_libraries = ["pytest", "pytest-mock", "pytest-cov", "pyyaml==6.0.1"]
[project.scripts]
arcade = "arcade.management:execute_from_command_line"
[project.entry-points.pyinstaller40]
hook-dirs = "arcade.__pyinstaller:get_hook_dirs"
[tool.setuptools.packages.find]
include = ["arcade", "arcade.*"]
[tool.setuptools.dynamic]
version = { attr = "arcade.version.VERSION" }
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.ruff]
# --- Description of what we ignore ---
#
# E731 do not assign a lambda expression, use a def
# E741 Ambiguous variable name
# F811: redefinition
line-length = 100
output-format = "full"
exclude = [
"venv",
".venv*",
"tests",
"build",
"doc",
"util",
".mypy_cache",
".pytest_cache",
"temp",
"bugs",
"arcade/examples/platform_tutorial",
]
lint.ignore = ["E731", "E741"]
lint.select = [
"E",
"F",
# Whitespace linting must be re-enabled manually for ruff
# see https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
"W",
]
# This ignores __init__.py files and examples for import sorting
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["I"]
"arcade/examples/*" = ["I"]
"arcade/gui/examples/*" = ["I"]
"util/*" = ["I"]
"benchmarks/*" = ["I"]
[tool.mypy]
disable_error_code = "annotation-unchecked"
[tool.pytest.ini_options]
norecursedirs = [
"doc",
"holding",
"arcade/examples",
"build",
".venv",
"env",
"dist",
"tempt",
]
[tool.pyright]
include = ["arcade"]
exclude = [
"venv",
"arcade/__pyinstaller",
"arcade/examples",
"arcade/experimental",
"tests",
"doc",
"make.py",
]
typeCheckingMode = "basic"
# Use type info from pytiled_parser and pyglet, which do not ship `py.typed` file
useLibraryCodeForTypes = true
reportMissingTypeStubs = "none"
# Ignore diagnostics about values that might be `None`
reportOptionalCall = "none"
reportOptionalContextManager = "none"
reportOptionalIterable = "none"
reportOptionalMemberAccess = "none"
reportOptionalOperand = "none"
reportOptionalSubscript = "none"
[tool.coverage.run]
source = ["arcade"]
omit = [
"./arcade/examples/*",
"./arcade/gui/examples/*",
"./arcade/experimental/*",
"./env/*",
"./tests/*",
"./doc/*",
"./Win*/*",
]
[tool.black]
line-length = 100
force-exclude = '''
(
doc
| arcade/examples
| arcade/gui/examples
| tests
| util
| benchmarks
)
'''
[[tool.mypy.overrides]]
module = "pyglet.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "PIL.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pymunk.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pytiled_parser.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "PyInstaller.*"
ignore_missing_imports = true