-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (117 loc) · 3.39 KB
/
pyproject.toml
File metadata and controls
137 lines (117 loc) · 3.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
[build-system]
requires = ["setuptools >= 77.0.3", "wheel >= 0.40.0"]
build-backend = "setuptools.build_meta"
[project]
name = "mindee"
authors = [
{ name = "Mindee", email = "opensource@mindee.com" },
]
dynamic = ["version"]
description = "Mindee API helper library for Python"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Programming Language :: Python :: 3",
"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",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
]
requires-python = ">=3.10"
dependencies = [
"pypdfium2>=4.0,<6.0",
"Pillow>=12.2.0",
"httpx[http2]>=0.28.1,<1.0",
]
[project.urls]
Homepage = "https://www.mindee.com"
Documentation = "https://developers.mindee.com/docs/python-sdk"
Repository = "https://github.com/publicMindee/mindee-api-python"
Issues = "https://github.com/mindee/mindee-api-python/issues"
Changelog = "https://github.com/mindee/mindee-api-python/blob/main/CHANGELOG.md"
[project.optional-dependencies]
lint = [
"pylint==4.0.5",
"pre-commit~=4.6.0",
"pip-audit>=2.10.0",
]
test = [
"toml~=0.10.2",
"pytest~=9.0.3",
"pytest-cov~=7.1.0",
"respx~=0.23.1"
]
docs = [
"sphinx~=9.1.0",
"sphinx_rtd_theme~=3.1.0",
"sphinx-autodoc-typehints>=3.10.4,<4.0.0",
]
build = [
"build",
"twine",
"toml"
]
[project.scripts]
mindee = "mindee.cli:main"
mindeeV2 = "mindee.v2.cli:main"
[tool.setuptools.packages]
find = { }
[tool.setuptools.dynamic]
version = { attr = "mindee.versions.__version__" }
[tool.setuptools.package-data]
"mindee" = ["py.typed"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py310"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "C4", "RUF", "PT"]
ignore = ["E501"]
[tool.mypy]
disallow_any_unimported = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
no_implicit_optional = true
strict_equality = true
warn_unused_ignores = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = "pypdfium2.*"
ignore_missing_imports = true
[tool.pylic]
safe_licenses = [
"Apache Software License",
"MIT License",
"Mozilla Public License 2.0 (MPL 2.0)",
"BSD License",
"BSD-3-Clause, Apache-2.0, PdfiumThirdParty",
"Historical Permission Notice and Disclaimer (HPND)",
"CMU License (MIT-CMU)",
]
[tool.pytest.ini_options]
addopts = "--pyargs --cov-report term:skip-covered --cov-report term-missing -m 'not integration and not regression and not lite'"
python_files = "test*.py"
junit_family = "xunit2"
markers = [
"lineitems: debug line items",
"integration: integration tests that send calls to the API - select with '-m integration'",
"lite: tests for mindee-lite",
"v2: tests specific to version 2 of the API",
"pillow: tests that require the use of the Pillow (PIL) library",
"pypdfium2: tests that require the usage of the pypdfium2 library",
"regression: marks tests as regression tests - select with '-m regression'",
]
testpaths = [
"tests",
]