-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (118 loc) · 3.48 KB
/
pyproject.toml
File metadata and controls
139 lines (118 loc) · 3.48 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
[build-system]
requires = ["py-build-cmake~=0.1.9a3"]
build-backend = "py_build_cmake.build"
# -------- Project ---------------------------------------
[project]
name = "pylibjpeg-turbo"
readme = "README.md"
requires-python = ">=3.7"
license = { file = "LICENSE" }
authors = [{ name = "Darcy Mason", email = "darcymason@gmail.com" }]
version = "0.1.0"
description = "Python build of libjpeg-turbo for pydicom plugin"
# see https://pypi.org/classifiers/
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: BSD License",
]
dependencies = ["PyTurboJPEG"]
[project.urls]
Source = "https://github.com/pydicom/pylibjpeg-turbo"
[project.optional-dependencies]
dev = [
"black",
"flit",
"keyring",
"pre-commit",
"ruff",
]
docs = [
"mkdocs",
"mkdocstrings[python]",
]
test = [
"pytest >=4.0.0",
"pytest-cov",
"pytest-icdiff",
]
[project.entry-points."pylibjpeg.pixel_data_decoders"]
"1.2.840.10008.1.2.4.50" = "pylibjpeg_turbo:decode_pixel_data"
"1.2.840.10008.1.2.4.51" = "pylibjpeg_turbo:decode_pixel_data"
"1.2.840.10008.1.2.4.57" = "pylibjpeg_turbo:decode_pixel_data"
"1.2.840.10008.1.2.4.70" = "pylibjpeg_turbo:decode_pixel_data"
"1.2.840.10008.1.2.4.80" = "pylibjpeg_turbo:decode_pixel_data"
"1.2.840.10008.1.2.4.81" = "pylibjpeg_turbo:decode_pixel_data"
[project.entry-points."pylibjpeg.jpeg_decoders"]
pylibjpeg_turbo = "pylibjpeg_turbo:decode"
[project.entry-points."pylibjpeg.jpeg_ls_decoders"]
pylibjpeg_turbo = "pylibjpeg_turbo:decode"
[project.entry-points."pylibjpeg.jpeg_xt_decoders"]
pylibjpeg_turbo = "pylibjpeg_turbo:decode"
# ------ cmake / build ----------------------------------
# See https://github.com/tttapa/py-build-cmake-libjpeg-turbo
# (resulting from https://github.com/tttapa/py-build-cmake/issues/16)
[tool.py-build-cmake.sdist]
include = ["CMakeLists.txt", "extern/libjpeg-turbo"]
[tool.py-build-cmake.cmake]
minimum_version = "3.17"
build_type = "RelWithDebInfo"
build_args = ["-j"]
install_components = ["shlib"]
abi = 'none'
[tool.cibuildwheel]
build-verbosity = 1
environment = { PY_BUILD_CMAKE_VERBOSE="1" }
# --------- linters / formatting -------------------------
[tool.black]
include = '\.pyi?$'
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
^/.git
^/.tox
^/.venv
^/.build
^/.dist
'''
[tool.ruff]
# see https://github.com/charliermarsh/ruff
select = ["ALL"]
ignore = [
# ignored for now, should be activated in the future
# docstrings
"D",
# flake8-annotations
"ANN",
# flake8-type-checking
"TCH",
# ignored, "black" will handle this
# flake8-commas
"COM",
# ignored, due to Windows / WSL2 setup
# flake8-executable
"EXE",
]
fixable = ["I"]
fix = true
target-version = "py38"
[tool.ruff.per-file-ignores]
# see https://github.com/charliermarsh/ruff
"tests/*" = ["FBT003", "INP001", "PLR2004", "S101", "SLF001"]
[tool.ruff.pydocstyle]
convention = "pep257" # Accepts: "google", "numpy", or "pep257".
# --------- Testing --------------------------------------
[tool.pytest.ini_options]
markers = [
"functional: marks tests as functional (deselect with '-m \"not functional\"')",
]
addopts = [
"--strict-markers",
"--strict-config",
"--showlocals",
"-ra",
]