| 1 |
[build-system] |
| 2 |
build-backend = "setuptools.build_meta" |
| 3 |
requires = [ |
| 4 |
"setuptools<82", |
| 5 |
'pywin32; platform_system=="Windows"', |
| 6 |
"typing_extensions; python_version < '3.11'", |
| 7 |
"numpy", # very unnecessarily we require `numpy` for the build, will be removed in the future |
| 8 |
] |
| 9 |
|
| 10 |
[project] |
| 11 |
authors = [ |
| 12 |
{name = "Florian Höch", email = "[email protected]"}, |
| 13 |
{name = "Erkan Özgür Yılmaz", email = "[email protected]"}, |
| 14 |
{name = "Patrick Zwerschke", email = "[email protected]"}, |
| 15 |
] |
| 16 |
classifiers = [ |
| 17 |
"Development Status :: 5 - Production/Stable", |
| 18 |
"Environment :: MacOS X", |
| 19 |
"Environment :: Win32 (MS Windows)", |
| 20 |
"Environment :: X11 Applications", |
| 21 |
"Intended Audience :: End Users/Desktop", |
| 22 |
"Operating System :: OS Independent", |
| 23 |
"Programming Language :: Python :: 3.9", |
| 24 |
"Programming Language :: Python :: 3.10", |
| 25 |
"Programming Language :: Python :: 3.11", |
| 26 |
"Programming Language :: Python :: 3.12", |
| 27 |
"Programming Language :: Python :: 3.13", |
| 28 |
"Programming Language :: Python :: 3.14", |
| 29 |
"Topic :: Multimedia :: Graphics", |
| 30 |
] |
| 31 |
description = "Display calibration and profiling with a focus on accuracy and versatility" |
| 32 |
dynamic = ["version", "dependencies"] |
| 33 |
license = { text = "GPL-3.0-or-later" } |
| 34 |
maintainers = [ |
| 35 |
{name = "Erkan Özgür Yılmaz", email = "[email protected]"}, |
| 36 |
] |
| 37 |
name = "displaycal" |
| 38 |
readme = "README.md" |
| 39 |
requires-python = ">= 3.9" |
| 40 |
|
| 41 |
[project.gui-scripts] |
| 42 |
displaycal = "DisplayCAL.main:main" |
| 43 |
displaycal-3dlut-maker = "DisplayCAL.main:main_3dlut_maker" |
| 44 |
displaycal-curve-viewer = "DisplayCAL.main:main_curve_viewer" |
| 45 |
displaycal-eecolor-to-madvr-converter = "DisplayCAL.main:main_eecolor_to_madvr_converter" |
| 46 |
displaycal-profile-info = "DisplayCAL.main:main_profile_info" |
| 47 |
displaycal-scripting-client = "DisplayCAL.main:main_scripting_client" |
| 48 |
displaycal-synthprofile = "DisplayCAL.main:main_synthprofile" |
| 49 |
displaycal-testchart-editor = "DisplayCAL.main:main_testchart_editor" |
| 50 |
displaycal-vrml-to-x3d-converter = "DisplayCAL.main:main_vrml_to_x3d_converter" |
| 51 |
displaycal-vrml-to-x3d-converter-console = "DisplayCAL.main:main_vrml_to_x3d_converter_console" |
| 52 |
|
| 53 |
[project.urls] |
| 54 |
"Home Page" = "https://displaycal.net/" |
| 55 |
GitHub = "https://github.com/eoyilmaz/displaycal-py3" |
| 56 |
Repository = "https://github.com/eoyilmaz/displaycal-py3.git" |
| 57 |
Download = "https://github.com/eoyilmaz/displaycal-py3/releases/" |
| 58 |
|
| 59 |
[tool.distutils.bdist_rpm] |
| 60 |
doc-files = "LICENSE.txt README.html screenshots/ theme/" |
| 61 |
fix-python = 1 |
| 62 |
packager = "Erkan Ozgur Yilmaz <[email protected]>" |
| 63 |
post-install = "util/rpm_postinstall.sh" |
| 64 |
post-uninstall = "util/rpm_postuninstall.sh" |
| 65 |
release = 1 |
| 66 |
# keep_temp = 1 |
| 67 |
|
| 68 |
[tool.distutils.bdist_wheel] |
| 69 |
universal = 0 |
| 70 |
|
| 71 |
[tool.distutils.install] |
| 72 |
record = "INSTALLED_FILES" |
| 73 |
|
| 74 |
[tool.bdist_wininst] |
| 75 |
bitmap = "misc/media/install-py.bmp" |
| 76 |
install_script = "util/DisplayCAL_postinstall.py" |
| 77 |
|
| 78 |
[tool.setuptools] |
| 79 |
include-package-data = false |
| 80 |
|
| 81 |
[tool.setuptools.packages.find] |
| 82 |
where = ["./"] |
| 83 |
exclude = ["misc", "misc.*", "tests", "tests.*", "util", "util.*"] |
| 84 |
|
| 85 |
[tool.setuptools.package-data] |
| 86 |
DisplayCAL = [ |
| 87 |
"beep.wav", |
| 88 |
"cacert.pem", |
| 89 |
"camera_shutter.wav", |
| 90 |
"ColorLookupTable.fx", |
| 91 |
"dev/**", |
| 92 |
"DisplayCAL.iss", |
| 93 |
"lang/**", |
| 94 |
"lib/**", |
| 95 |
"LICENSE.txt", |
| 96 |
"linear.cal", |
| 97 |
"misc/**", |
| 98 |
"pnp.ids", |
| 99 |
"presets/**", |
| 100 |
"py.typed", |
| 101 |
"README.html", |
| 102 |
"README.md", |
| 103 |
"ref/**", |
| 104 |
"report/**", |
| 105 |
"screenshots/**", |
| 106 |
"test.cal", |
| 107 |
"theme/**", |
| 108 |
"ti1/**", |
| 109 |
"util/**", |
| 110 |
"DisplayCAL/VERSION", |
| 111 |
"VERSION", |
| 112 |
"x3d-viewer/**", |
| 113 |
"xrc/**", |
| 114 |
] |
| 115 |
|
| 116 |
[tool.setuptools.exclude-package-data] |
| 117 |
DisplayCAL = [ |
| 118 |
"docs", |
| 119 |
"man", |
| 120 |
"misc", |
| 121 |
"test_dir", |
| 122 |
"tests", |
| 123 |
"theme", |
| 124 |
"util" |
| 125 |
] |
| 126 |
|
| 127 |
[tool.setuptools.dynamic] |
| 128 |
dependencies = { file = ["requirements.txt"] } |
| 129 |
optional-dependencies.test = { file = ["requirements-dev.txt"] } |
| 130 |
version = { file = ["VERSION"] } |
| 131 |
|
| 132 |
[tool.black] |
| 133 |
line-length = 88 |
| 134 |
|
| 135 |
[tool.flake8] |
| 136 |
exclude = [ |
| 137 |
".github", |
| 138 |
"__pycache__", |
| 139 |
".coverage", |
| 140 |
".DS_Store", |
| 141 |
".pytest_cache", |
| 142 |
".ruff_cache", |
| 143 |
".venv", |
| 144 |
".vscode", |
| 145 |
"build", |
| 146 |
"cacert.pem", |
| 147 |
"DisplayCAL.egg-info", |
| 148 |
"DisplayCAL/ref", |
| 149 |
"dist", |
| 150 |
"docs", |
| 151 |
"INSTALLED_FILES", |
| 152 |
"MANIFEST.in", |
| 153 |
"misc", |
| 154 |
"screenshots", |
| 155 |
"test_dir", |
| 156 |
"tests", |
| 157 |
"tests/data/icc", |
| 158 |
"theme", |
| 159 |
"util", |
| 160 |
"VERSION", |
| 161 |
] |
| 162 |
extend-select = ["B950"] |
| 163 |
ignore = ["D107", "E203", "E501", "E701", "SC200", "W503"] |
| 164 |
max-complexity = 12 |
| 165 |
max-line-length = 80 |
| 166 |
per-file-ignores = [ |
| 167 |
"DisplayCAL/lib/agw/fmresources.py: B950" |
| 168 |
] |
| 169 |
|
| 170 |
[tool.ruff.lint] |
| 171 |
select = [ |
| 172 |
"A", # flake8-builtins |
| 173 |
"ANN", # flake-annotations |
| 174 |
"ASYNC", # flake-async |
| 175 |
"B", # flake8-bugbear |
| 176 |
"C", # McCabe complexity |
| 177 |
"C4", # flake8-comprehensions |
| 178 |
"COM", # flake8-commas |
| 179 |
"D", # pydocstyle |
| 180 |
"E", # pycodestyle |
| 181 |
"F", # Pyflakes |
| 182 |
"FA", # flake8-future-annotations |
| 183 |
"FLY", # flynt |
| 184 |
"I", # isort |
| 185 |
"INT", # flake8-gettext |
| 186 |
"ISC", # flake8-implicit-str-concat |
| 187 |
"LOG", # flake8-logging |
| 188 |
"N", # PEP8 Naming |
| 189 |
"NPY", # NumPy-specific rules |
| 190 |
"PERF", # perflint |
| 191 |
"PIE", # flake8-pie |
| 192 |
"PLR", # Pylint - Refactor |
| 193 |
"PYI", # flake8-pyi |
| 194 |
"RET", # flake8-return |
| 195 |
"RSE", # flake8-raise |
| 196 |
"RUF", # Ruff-specific-rules |
| 197 |
"Q", # flake8-quotes |
| 198 |
"S", # flake-bandit |
| 199 |
"SIM", # flake8-simplify |
| 200 |
"SLOT", # flake8-slots |
| 201 |
"T10", # flake8-debugger |
| 202 |
"TC", # flake8-type-checking |
| 203 |
"TID", # flake8-tidy-imports |
| 204 |
"UP", # pyupgrade |
| 205 |
"YTT", # flake-2020 |
| 206 |
|
| 207 |
] |
| 208 |
extend-ignore = [ |
| 209 |
"ANN002", # missing type annotations args |
| 210 |
"ANN003", # missing type annotations kwargs |
| 211 |
"COM812", # flake8-commas |
| 212 |
"D104", # Missing docstring in in publish package |
| 213 |
"D107", # skip docstring for __init__ |
| 214 |
"D203", # Incorrect blank line before class |
| 215 |
"D209", # New line after last paragraph in docstring |
| 216 |
"D213", # Multiline docstring summary second line |
| 217 |
"D412", # Bland line between header and content |
| 218 |
"D416", # Missing section name colon |
| 219 |
"E741", # Ambiguous variable name |
| 220 |
"E402", # Module level import not at top of file |
| 221 |
"PLR0911", # Too many return statements |
| 222 |
"PLR0912", # Too many branches |
| 223 |
"PLR0913", # Too many arguments |
| 224 |
"PLR0914", # Too many local variables |
| 225 |
"PLR0915", # Too many statements |
| 226 |
"PLR2004", # Magic value comparison |
| 227 |
"PERF203", # Try..except in loop, TODO: Re-enable this later on... |
| 228 |
"RUF100", # Unused noqa |
| 229 |
"S105", # Hardcoded password |
| 230 |
"S110", # try..except..pass |
| 231 |
"S603", # Subprocess without shell=True |
| 232 |
] |
| 233 |
|
| 234 |
[tool.ruff.lint.mccabe] |
| 235 |
max-complexity = 12 |
| 236 |
|
| 237 |
[tool.ruff.lint.pydocstyle] |
| 238 |
convention = "google" |
| 239 |
|
| 240 |
[tool.pytest.ini_options] |
| 241 |
pythonpath = [ |
| 242 |
".", |
| 243 |
] |
| 244 |
|
| 245 |
[tool.tox] |
| 246 |
requires = ["tox>=4.23.2"] |
| 247 |
env_list = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] |
| 248 |
|
| 249 |
[tool.tox.env_run_base] |
| 250 |
description = "run the tests with pytest" |
| 251 |
package = "wheel" |
| 252 |
wheel_build_env = ".pkg" |
| 253 |
deps = [ |
| 254 |
"pytest>=6", |
| 255 |
"pytest-cov", |
| 256 |
"pytest-xdist", |
| 257 |
] |
| 258 |
commands = [ |
| 259 |
["pytest"], |
| 260 |
] |
| 261 |
|
| 262 |
[tool.mypy] |