-
Notifications
You must be signed in to change notification settings - Fork 183
/
pyproject.toml
83 lines (72 loc) · 2.58 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
[project]
name = "openslide-python"
maintainers = [
{name = "OpenSlide project", email = "[email protected]"}
]
description = "Python interface to OpenSlide"
readme = "README.md"
license = {text = "GNU Lesser General Public License, version 2.1"}
keywords = ["OpenSlide", "whole-slide image", "virtual slide", "library"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: Scientific/Engineering :: Bio-Informatics",
"Typing :: Typed",
]
requires-python = ">= 3.8"
dependencies = ["Pillow"]
dynamic = ["version"]
[project.urls]
Homepage = "https://openslide.org/"
Documentation = "https://openslide.org/api/python/"
"Release notes" = "https://github.com/openslide/openslide-python/blob/main/CHANGELOG.md"
Repository = "https://github.com/openslide/openslide-python"
[tool.setuptools]
include-package-data = false
packages = ["openslide"]
[tool.setuptools.dynamic]
version = {attr = "openslide._version.__version__"}
[tool.setuptools.package-data]
openslide = ["py.typed", "*.pyi"]
[tool.black]
skip-string-normalization = true
target-version = ["py38", "py39", "py310", "py311", "py312", "py313"]
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
# also ignore:
# - E741 ambiguous variable name
# requires Flake8-pyproject
[tool.flake8]
max-line-length = 88
extend-ignore = ["E203", "E741"]
[tool.isort]
profile = "black"
force_sort_within_sections = true
[tool.mypy]
python_version = "3.10"
strict = true
[tool.pytest.ini_options]
minversion = "7.0"
# don't try to import openslide from the source directory, since it doesn't
# have the compiled extension module
addopts = "--import-mode importlib"
# allow tests to import common module
pythonpath = "tests"
[tool.rstcheck]
ignore_messages = "(Hyperlink target \".*\" is not referenced\\.$)"
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"