-
-
Notifications
You must be signed in to change notification settings - Fork 402
/
pyproject.toml
57 lines (46 loc) · 1.8 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
[build-system]
requires = ["cmake>=3.12.0", "setuptools>=65", "wheel"]
[tool.black]
safe = true
[tool.isort]
atomic = true
profile = "black"
src_paths = ["examples/python", "gymnasium_wrapper", "tests"]
indent = 4
lines_after_imports = 2
multi_line_output = 3
known_first_party = ['vizdoom']
[tool.pyright]
include = ["examples/python/**", "gymnasium_wrapper", "tests/**"]
exclude = ["**/__pycache__"]
strict = []
typeCheckingMode = "basic"
pythonVersion = "3.8"
pythonPlatform = "All"
typeshedPath = "typeshed"
enableTypeIgnoreComments = true
# This is required as the CI pre-commit does not download the module
# Therefore, we have to ignore missing imports
reportMissingImports = "none"
reportGeneralTypeIssues = "none"
reportPrivateUsage = "warning"
reportPrivateImportUsage = "warning"
reportAttributeAccessIssue = "warning"
[tool.cibuildwheel]
# We need to build for the following Python versions:
build = "cp{38,39,310,311,312}-*"
[tool.cibuildwheel.linux]
# Only manylinux is supported (no musl)
build = "cp{38,39,310,311,312}-manylinux*"
repair-wheel-command = "auditwheel show {wheel} && auditwheel repair -w {dest_dir} {wheel}"
# For manylinux_2_28 we need to install the following dependencies using yum:
before-all = "yum install -y cmake git boost-devel SDL2-devel openal-soft-devel"
# Only build for x86_64 and aarch64 are officially supported
archs = "x86_64 aarch64"
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
[tool.cibuildwheel.macos]
before-all = "brew install cmake boost sdl2 openal-soft"
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
# In addition, MACOSX_DEPLOYMENT_TARGET maybe needed to be set depending on the version of macOS
environment = {"HOMEBREW_NO_AUTO_UPDATE" = "1", "HOMEBREW_NO_INSTALL_CLEANUP" = "1"}