-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
151 lines (134 loc) · 3.78 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
[build-system]
# These requirements must be kept sync with the requirements in
# ./.github/requirements/build-requirements.{in,txt}
requires = [
"maturin>=1,<2",
"cmake", # need for static build StormLib
# Must be kept in sync with `project.dependencies`
"typing_extensions",
]
build-backend = "maturin"
[project]
name = "eudplib"
version = "0.80.0"
authors = [
{name = "Trgk", email = "[email protected]"},
{name = "Armoha", email = "[email protected]"},
]
maintainers = [
{name = "Armoha", email = "[email protected]"},
]
description = "eudplib is a package which provides scripting for StarCraft Use Map Setting(UMS) to UMS map and tool developers."
readme = "README.rst"
license = {text = "MIT"}
keywords = ["StarCraft", "EUD", "Trigger"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Games/Entertainment :: Real Time Strategy",
]
requires-python = ">=3.10, <3.14"
dependencies = [
# Must be kept in sync with `build-system.requires`
"typing_extensions"
]
[project.urls]
homepage = "https://github.com/armoha/eudplib/"
documentation = "https://github.com/armoha/euddraft/wiki"
source = "https://github.com/armoha/eudplib/"
issues = "https://github.com/armoha/euddraft/issues"
changelog = "https://github.com/armoha/euddraft/blob/master/CHANGELOG.md"
[tool.maturin]
python-source = "src"
python-packages = ["eudplib"]
manifest-path = "src/rust/Cargo.toml"
module-name = "eudplib.bindings._rust"
locked = true
sdist-generator = "git"
features = ["pyo3/abi3-py310"]
include = [
"LICENSE",
"docs/**/*",
"src/epscript/**/*.py",
"src/epscript/**/*.c",
"src/epscript/**/*.h",
"src/epscript/**/*.cpp",
"src/epscript/**/*.hpp",
"src/epscript/**/*.txt",
"src/rust/**/Cargo.toml",
"src/rust/**/Cargo.lock",
"src/rust/**/*.rs",
"src/rust/stormlib-rs/deps/StormLib/**/*",
"tests/**/*.py",
"tests/**/*.eps",
"tests/**/*.bat",
"tests/**/*.tbl",
"tests/outputmap/basemap/*.scx",
"tests/outputmap/basemap/RequireData",
]
exclude = [
"src/epscript/build/**/*",
"src/rust/target/**/*",
"tools/**/*",
".github/**/*",
"ci-constraints-requirements.txt",
"mypy.ini",
]
[tool.mypy]
show_error_codes = true
check_untyped_defs = true
no_implicit_reexport = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
strict_equality = true
[tool.coverage.run]
branch = true
relative_files = true
source = [
"eudplib/",
"tests/",
]
[tool.coverage.paths]
source = [
"eudplib/",
]
tests =[
"tests/",
"*tests\\",
]
[tool.coverage.report]
exclude_lines = [
"@abc.abstractmethod",
"@typing.overload",
"if typing.TYPE_CHECKING",
]
[tool.ruff]
lint.select = ['E', 'F', 'I', 'N', 'W', 'UP', 'RUF']
line-length = 85
exclude = ["pybind11"]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = ['F403', 'F405']
"tests/unittests/**.py" = ['F403', 'F405']
"tests/unittests/__epspy__/**.py" = ['E', 'F', 'I', 'N', 'W', 'UP', 'RUF']
"tests/unittests/report/__epspy__/**.py" = ['E', 'F', 'I', 'N', 'W', 'UP', 'RUF']
[tool.ruff.lint.pyflakes]
extend-generics = ["eudplib.scdata.offsetmap.member.BaseMember"]
[tool.ruff.lint.isort]
known-first-party = ["eudplib", "tests"]
[tool.check-sdist]
git-only = [
"run_unittest.ps1",
".gitattributes",
".gitignore",
]