xref: /trunk/test/aoo-test/pyproject.toml (revision 05e6a109cf5cf3f8339d12dad34c1e1289bbb5a1)
1################################################################
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20################################################################
21
22[project]
23name = "aoo-test"
24version = "0.1.0"
25description = "Test and compliance suite for an installed Apache OpenOffice 5 or later"
26requires-python = ">=3.10"
27
28[dependency-groups]
29test = ["pytest>=8.0"]
30ooxml = ["python-docx", "openpyxl", "python-pptx"]
31render = ["pypdfium2", "Pillow"]
32proc = ["psutil"]
33extra = ["pytest-timeout", "pytest-xdist"]
34
35[tool.uv]
36package = false
37default-groups = ["test"]
38
39[tool.pytest.ini_options]
40minversion = "8.0"
41testpaths = ["tests"]
42python_files = ["test_*.py"]
43pythonpath = ["src"]
44addopts = "--import-mode=importlib -m 'not corpus and not render and not gui and not crash'"
45markers = [
46    "selftest: negative controls proving the checkers can fail",
47    "smoke: quick checks against an installed office",
48    "slow: long-running checks",
49    "corpus: runs over a large external document set (--documents)",
50    "render: PDF rasterize and compare",
51    "gui: needs a display or a desktop session",
52    "needs_java: needs a Java runtime",
53    "crash: triggers a known crash of the office under test; run on request with -m crash",
54]
55