-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (159 loc) · 4.73 KB
/
pyproject.toml
File metadata and controls
173 lines (159 loc) · 4.73 KB
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
[build-system]
requires = [
# setuptools >=64.0.0 might break editable installs
# https://github.com/pypa/setuptools/issues/3548
"setuptools >=77.0.3",
"setuptools_scm[toml]>=6.2",
"packaging>=24.2",
"wheel>=0.37.1",
"cffi>=1.15",
"pycparser>=2.14",
"pcpp==1.30",
"requests>=2.28.1",
"attrs",
]
build-backend = "setuptools.build_meta"
[project]
name = "tcod"
dynamic = ["version"]
description = "The official Python port of libtcod."
authors = [{ name = "Kyle Benesch", email = "4b796c65+tcod@gmail.com" }]
readme = "README.rst"
requires-python = ">=3.10"
license = "BSD-2-Clause"
license-files = [
"LICENSE.txt",
"libtcod/LICENSE.txt",
"libtcod/LIBTCOD-CREDITS.txt",
]
dependencies = [
"cffi>=1.15",
'numpy>=1.21.4; implementation_name != "pypy"',
"typing_extensions>=4.12.2",
]
keywords = [
"roguelike",
"roguelikedev",
"gamedev",
"Unicode",
"libtcod",
"libtcodpy",
"field-of-view",
"pathfinding",
]
classifiers = [ # https://pypi.org/classifiers/
"Development Status :: 5 - Production/Stable",
"Environment :: Win32 (MS Windows)",
"Environment :: MacOS X",
"Environment :: X11 Applications",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: C",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Free Threading :: 2 - Beta",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Games/Entertainment",
"Topic :: Multimedia :: Graphics",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.entry-points.pyinstaller40]
hook-dirs = "tcod.__pyinstaller:get_hook_dirs"
[project.urls]
Homepage = "https://github.com/libtcod/python-tcod"
Documentation = "https://python-tcod.readthedocs.io"
Changelog = "https://github.com/libtcod/python-tcod/blob/main/CHANGELOG.md"
Source = "https://github.com/libtcod/python-tcod"
Tracker = "https://github.com/libtcod/python-tcod/issues"
Forum = "https://github.com/libtcod/python-tcod/discussions"
[tool.setuptools_scm]
write_to = "tcod/version.py"
[tool.pytest.ini_options]
minversion = "6.0"
required_plugins = ["pytest-cov", "pytest-benchmark"]
testpaths = ["tcod/", "tests/", "docs/"]
addopts = [
"--doctest-modules",
"--doctest-glob='*.rst'",
"--cov=tcod",
"--capture=sys",
"--ignore=tcod/__pyinstaller",
]
log_file_level = "DEBUG"
faulthandler_timeout = 5
filterwarnings = [
"ignore:This function may be deprecated in the future:PendingDeprecationWarning",
"ignore:This class may perform poorly and is no longer needed.::tcod.map",
"ignore:'import tcod as libtcodpy' is preferred.",
]
[tool.coverage.report] # https://coverage.readthedocs.io/en/latest/config.html
exclude_lines = ['^\s*\.\.\.', "if TYPE_CHECKING:", "# pragma: no cover"]
omit = ["tcod/__pyinstaller/*"]
[tool.cibuildwheel] # https://cibuildwheel.pypa.io/en/stable/options/
enable = ["pypy", "pyodide-prerelease"]
[tool.mypy]
files = ["."]
python_version = "3.10"
warn_unused_configs = true
show_error_codes = true
disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
implicit_reexport = false
strict_equality = true
strict_bytes = true
extra_checks = true
exclude = [
"build/",
"venv/",
"libtcod/",
"docs/",
"distribution/",
"termbox/",
"samples_libtcodpy.py",
]
[[tool.mypy.overrides]]
module = "numpy.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tcod.version"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tcod._libtcod"
ignore_missing_imports = true
[tool.ruff]
extend-exclude = ["libtcod"] # Ignore submodule
line-length = 120
[tool.ruff.lint] # https://docs.astral.sh/ruff/rules/
select = ["ALL"]
ignore = [
"COM", # flake8-commas
"E501", # line-too-long
"PYI064", # redundant-final-literal
"S101", # assert
"S301", # suspicious-pickle-usage
"S311", # suspicious-non-cryptographic-random-usage
"SLF001", # private-member-access
]
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = [
"D103", # undocumented-public-function
]
"**/{tests,docs,examples,scripts}/*" = [
"D103", # undocumented-public-function
"T201", # print
]
[tool.ruff.lint.pydocstyle] # https://docs.astral.sh/ruff/settings/#lintpydocstyle
convention = "google"