forked from scanny/python-pptx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (162 loc) · 5.39 KB
/
pyproject.toml
File metadata and controls
173 lines (162 loc) · 5.39 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "python-pptx-extended"
authors = [{name = "Steve Canny", email = "stcanny@gmail.com"}]
maintainers = [{name = "Matthew Horoszowski", email = "matthew.horoszowski@gmail.com"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: 3.14",
"Topic :: Office/Business :: Office Suites",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"Pillow>=3.3.2",
"XlsxWriter>=0.5.7",
"lxml>=3.1.0",
"typing_extensions>=4.9.0",
]
description = "Fork of python-pptx with additional formatting features (shadows, bullets, table borders, line caps/joins, line end types) and OOXML customXml support (custom doc properties, customXml data parts)."
dynamic = ["version"]
keywords = ["powerpoint", "ppt", "pptx", "openxml", "office"]
license = { text = "MIT" }
readme = "README.rst"
requires-python = ">=3.9"
# -- Optional dependency groups, installable as `pip install python-pptx-extended[test]`
# -- or via uv as `uv sync --extra test`. The legacy requirements*.txt files were
# -- removed in the uv migration (see HISTORY.rst); the same package sets live here.
[project.optional-dependencies]
test = [
"behave>=1.2.5",
"pyparsing>=2.0.1,<3",
"pytest>=2.5",
"pytest-cov",
"pytest-xdist",
]
dev = [
"build",
"pyright",
"ruff",
"twine",
]
docs = [
"Sphinx==1.8.6",
"Jinja2==2.11.3",
"MarkupSafe==0.23",
"alabaster<0.7.14",
]
[project.urls]
Changelog = "https://github.com/MHoroszowski/python-pptx/blob/master/HISTORY.rst"
Documentation = "https://python-pptx.readthedocs.io/en/latest/"
Homepage = "https://github.com/MHoroszowski/python-pptx"
Repository = "https://github.com/MHoroszowski/python-pptx"
Upstream = "https://github.com/scanny/python-pptx"
[tool.pyright]
exclude = [
"**/__pycache__",
"**/.*"
]
include = [
"src/pptx",
"tests/"
]
ignore = []
pythonPlatform = "All"
pythonVersion = "3.9"
reportImportCycles = false
reportUnnecessaryCast = true
reportUnnecessaryTypeIgnoreComment = true
stubPath = "./typings"
typeCheckingMode = "strict"
verboseOutput = true
[tool.pytest.ini_options]
filterwarnings = [
# -- exit on any warning not explicitly ignored here --
"error",
# -- pytest-xdist plugin may warn about `looponfailroots` deprecation --
"ignore::DeprecationWarning:xdist",
# -- pytest complains when pytest-xdist is not installed --
"ignore:Unknown config option. looponfailroots:pytest.PytestConfigWarning",
# -- pyparsing 2.x triggers sre_constants deprecation on Python 3.11+ --
"ignore:module 'sre_constants' is deprecated:DeprecationWarning",
# -- pyparsing 3.x deprecates lowerCamelCase shims (delimitedList etc.) used by tests/unitutil/cxml.py --
"ignore::DeprecationWarning:pyparsing",
"ignore::DeprecationWarning:tests.unitutil.cxml",
]
looponfailroots = [
"src",
"tests",
]
norecursedirs = [
"docs",
"*.egg-info",
"features",
".git",
"src",
"spec",
".tox",
]
python_classes = [
"Test",
"Describe",
]
python_functions = [
"test_",
"it_",
"they_",
"but_",
"and_",
]
[tool.ruff]
line-length = 100
# -- don't check these locations --
exclude = [
# -- docs/ - documentation Python code is incidental --
"docs",
# -- lab/ has some experimental code that is not disciplined --
"lab",
# -- ref/ is not source-code --
"ref",
# -- spec/ has some ad-hoc discovery code that is not disciplined --
"spec",
]
[tool.ruff.lint]
select = [
"C4", # -- flake8-comprehensions --
"COM", # -- flake8-commas --
"E", # -- pycodestyle errors --
"F", # -- pyflakes --
"I", # -- isort (imports) --
"PLR0402", # -- Name compared with itself like `foo == foo` --
"PT", # -- flake8-pytest-style --
"SIM", # -- flake8-simplify --
"TC001", # -- detect typing-only imports not under `if TYPE_CHECKING` (formerly TCH001) --
"UP015", # -- redundant `open()` mode parameter (like "r" is default) --
"UP018", # -- Unnecessary {literal_type} call like `str("abc")`. (rewrite as a literal) --
"UP032", # -- Use f-string instead of `.format()` call --
"UP034", # -- Avoid extraneous parentheses --
"W", # -- Warnings, including invalid escape-sequence --
]
ignore = [
"COM812", # -- over aggressively insists on trailing commas where not desireable --
"PT001", # -- wants empty parens on @pytest.fixture where not used (essentially always) --
"PT011", # -- pytest.raises({exc}) too broad, use match param or more specific exception --
"PT012", # -- pytest.raises() block should contain a single simple statement --
"SIM117", # -- merge `with` statements for context managers that have same scope --
]
[tool.ruff.lint.isort]
known-first-party = ["pptx"]
[tool.setuptools.dynamic]
version = {attr = "pptx.__version__"}