forked from wagtail/Willow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
112 lines (96 loc) · 2.7 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
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
[project]
name = "Willow"
description = "A Python image library that sits on top of Pillow, Wand and OpenCV"
authors = [{name = "Karl Hobley", email = "karl@kaed.uk"}]
maintainers = [{name = "Wagtail Core team", email = "hello@wagtail.org"}]
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["Imaging"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ["version"] # will read __version__ from willow/__init__.py
requires-python = ">=3.8"
dependencies = [
"filetype>=1.0.10,!=1.1.0",
"defusedxml>=0.7,<1.0",
]
[project.optional-dependencies]
testing = [
"Pillow>=9.1.0,<11.0.0",
"Wand>=0.6,<1.0",
"mock>=3.0,<4.0",
"pillow-heif>=0.7.0,<1.0.0",
"black==22.3.0",
"ruff==0.0.275",
"coverage[toml]>=7.2.7,<8.0",
]
docs = [
"Sphinx>=7.0",
"sphinx-wagtail-theme==6.0.0",
"sphinxcontrib-spelling>=8.0,<9.0",
"sphinx_copybutton>=0.5"
]
[project.urls]
Source = "https://github.com/wagtail/Willow"
Changelog = "https://github.com/wagtail/Willow/blob/main/CHANGELOG.txt"
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "willow"
[tool.flit.sdist]
exclude = [
".*",
"*.json",
"*.ini",
"*.sh",
"*.yml",
"*.yaml",
"docs/",
"tests/",
"CHANGELOG.txt",
"Dockerfile.py3",
"ruff.toml",
"runtests.py",
]
[tool.coverage.run]
branch = true
source_pkgs = ["willow"]
omit = ["tests/*", "willow/utils/deprecation.py"]
[tool.coverage.paths]
source = ["willow"]
[tool.coverage.report]
show_missing = true
ignore_errors = true
skip_empty = true
skip_covered = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc.)?abstractmethod",
# Nor complain about type checking
"if TYPE_CHECKING:",
]