-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (75 loc) · 2.54 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (75 loc) · 2.54 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
[build-system]
requires = ["meson-python>=0.15.0", "ninja", "nanobind>=2.0.0"]
build-backend = "mesonpy"
[project]
name = "dlup"
version = "0.9.4"
description = "Deep Learning Utilities for Pathology"
readme = "README.md"
authors = [
{name = "dlup contributors", email = "j.teuwen@nki.nl"},
]
license = {text = "Apache-2.0"}
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Healthcare Industry",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = [
"fastslide>=0.6.0",
"fimage-python>=0.1.1",
"numpy",
"packaging",
"pillow",
"shapely",
"tifffile",
"xsdata",
]
[project.optional-dependencies]
# OpenSlide backend. openslide-bin ships a prebuilt libopenslide; users who
# prefer a system OpenSlide can install just openslide-python.
openslide = [
"openslide-python>=1.4",
"openslide-bin",
]
dev = [
"pytest>=7.0",
"pytest-mock",
]
[project.urls]
Homepage = "https://github.com/NKI-AI/dlup"
Documentation = "https://docs.aiforoncology.nl/dlup"
Repository = "https://github.com/NKI-AI/dlup"
Issues = "https://github.com/NKI-AI/dlup/issues"
[tool.meson-python.args]
setup = [
"--wrap-mode=forcefallback",
# NOTE: do not add --prefer-static. It makes Meson hunt for a static
# libpython (libpythonXY.a), which CPython does not ship, breaking the
# nanobind Python dependency. Codecs are already static via the
# default_library=static wraps; the extensions link libpython's import
# library (shared), as required.
"-Ddefault_library=static",
"-Dbuild_python=true",
]
# Only install the top-level dlup targets (the extensions + the Python package).
# Subproject wraps declare `install: true` for their static libs / headers,
# which land in locations with no wheel equivalent, so meson-python aborts
# ("Could not map installation path ..."). Everything is statically linked into
# the extensions at build time, so skipping subproject installs is correct.
install = [
"--skip-subprojects",
]
[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py"]