File: pyproject.toml

package info (click to toggle)
openslide-python 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,852 kB
  • sloc: javascript: 20,001; python: 2,419; ansic: 86; makefile: 18
file content (91 lines) | stat: -rw-r--r-- 2,772 bytes parent folder | download
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
[project]
name = "openslide-python"
maintainers = [
    {name = "OpenSlide project", email = "openslide-users@lists.andrew.cmu.edu"}
]
description = "Python interface to OpenSlide"
readme = "README.md"
license = "LGPL-2.1-only AND BSD-3-Clause AND MIT AND LicenseRef-Public-Domain"
license-files = ["COPYING.LESSER", "**/LICENSE.*"]
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",
    "Operating System :: MacOS :: MacOS X",
    "Operating System :: Microsoft :: Windows",
    "Operating System :: POSIX :: Linux",
    "Programming Language :: Python",
    "Programming Language :: Python :: 3",
    "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.9"
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"

[dependency-groups]
test = ["pytest >= 7"]

[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 = ["py39", "py310", "py311", "py312", "py313"]

# Ref: https://github.com/codespell-project/codespell#using-a-config-file
[tool.codespell]
check-hidden = true
# ignore-regex = ""
# ignore-words-list = ""

# 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 >= 77.0.0"]
build-backend = "setuptools.build_meta"