-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (114 loc) · 3.11 KB
/
pyproject.toml
File metadata and controls
134 lines (114 loc) · 3.11 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
[build-system]
requires = ["setuptools >= 68.0.0", "wheel >= 0.40.0"]
build-backend = "setuptools.build_meta"
[project]
name = "mindee"
authors = [
{name = "Mindee", email = "[email protected]"},
]
dynamic = ["version"]
description = "Mindee API helper library for Python"
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"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",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
]
requires-python = ">=3.8"
dependencies = [
"pypdfium2>=4.0,<4.30.1",
"Pillow>=9.5.0",
"pytz>=2023.3",
"requests>=2.31.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==3.3.9",
"pre-commit~=3.6.0",
"types-pytz>=2024.2",
"types-requests>=2.31",
]
test = [
"toml~=0.10.2",
"pytest~=8.0.0",
"pytest-cov~=5.0",
]
docs = [
"sphinx~=7.3",
"sphinx_rtd_theme~=2.0",
"sphinx-autodoc-typehints~=2.2",
]
build = [
"build",
"twine",
]
[project.scripts]
mindee = "mindee.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 = "py38"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = ["E", "F"]
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 regression and not integration'"
python_files = "test*.py"
junit_family = "xunit2"
markers = [
"regression: marks tests as regression tests - select with '-m regression'",
"lineitems: debug line items",
"integration: integration tests that send calls to the API - select with '-m integration'",
"v2: Tests specific to version 2 of the API"
]
testpaths = [
"tests",
]