forked from BoboTiG/python-mss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
180 lines (163 loc) · 4.08 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mss"
description = "An ultra fast cross-platform multiple screenshots module in pure python using ctypes."
readme = "README.md"
requires-python = ">= 3.8"
authors = [
{ name = "Mickaël Schoentgen", email="[email protected]" },
]
maintainers = [
{ name = "Mickaël Schoentgen", email="[email protected]" },
]
license = { file = "LICENSE.txt" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: MacOS X",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"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",
"Topic :: Multimedia :: Graphics :: Capture :: Screen Capture",
"Topic :: Software Development :: Libraries",
]
keywords = [
"BitBlt",
"ctypes",
"EnumDisplayMonitors",
"CGGetActiveDisplayList",
"CGImageGetBitsPerPixel",
"monitor",
"screen",
"screenshot",
"screencapture",
"screengrab",
"XGetImage",
"XGetWindowAttributes",
"XRRGetScreenResourcesCurrent",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/BoboTiG/python-mss"
Documentation = "https://python-mss.readthedocs.io"
Changelog = "https://github.com/BoboTiG/python-mss/blob/main/CHANGELOG.md"
Source = "https://github.com/BoboTiG/python-mss"
Sponsor = "https://github.com/sponsors/BoboTiG"
Tracker = "https://github.com/BoboTiG/python-mss/issues"
"Released Versions" = "https://github.com/BoboTiG/python-mss/releases"
[project.scripts]
mss = "mss.__main__:main"
[project.optional-dependencies]
test = [
"numpy ; sys_platform == 'windows' and python_version >= '3.13'",
"pillow",
"pytest",
"pytest-cov",
"pytest-rerunfailures",
"pyvirtualdisplay; sys_platform == 'linux'",
"sphinx",
]
dev = [
"build",
"mypy",
"ruff",
"twine",
"wheel",
]
[tool.hatch.version]
path = "src/mss/__init__.py"
[tool.hatch.build]
skip-excluded-dirs = true
[tool.hatch.build.targets.sdist]
only-include = [
"CHANGELOG.md",
"CHANGES.md",
"CONTRIBUTORS.md",
"docs/source",
"src",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/mss",
]
[tool.mypy]
# Ensure we know what we do
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
# Imports management
ignore_missing_imports = true
follow_imports = "skip"
# Ensure full coverage
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
# Restrict dynamic typing (a little)
# e.g. `x: List[Any]` or x: List`
# disallow_any_generics = true
strict_equality = true
[tool.pytest.ini_options]
pythonpath = "src"
addopts = """
--showlocals
--strict-markers
-r fE
-vvv
--cov=src/mss
--cov-report=term-missing:skip-covered
"""
[tool.ruff]
exclude = [
".git",
".mypy_cache",
".pytest_cache",
".ruff_cache",
"venv",
]
line-length = 120
indent-width = 4
target-version = "py38"
[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
"ANN101",
"ANN401",
"C90",
"COM812",
"D", # TODO
"ERA",
"FBT",
"INP001",
"ISC001",
"PTH",
"PL",
"S",
"SIM117", # TODO: remove wen dropping Python 3.8 support
"SLF",
"T201",
"UP006", # TODO: remove wen dropping Python 3.8 support
]
fixable = ["ALL"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"