-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
89 lines (74 loc) · 2.14 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "playa-pdf"
dynamic = ["version"]
description = "PLAYA ain't a LAYout Analyzer"
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
authors = [
{ name = "David Huggins-Daines", email = "[email protected]" },
]
keywords = [
"pdf parser",
"text mining",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: 3.12",
"Topic :: Text Processing",
]
[project.optional-dependencies]
crypto = ["cryptography >= 36.0.0"]
[project.urls]
Homepage = "https://dhdaines.github.io/playa"
[project.scripts]
playa = "playa.cli:main"
[tool.hatch.version]
path = "playa/__init__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/samples/contrib",
"/samples/3rdparty",
]
[tool.hatch.build.targets.wheel]
packages = ["playa"]
[tool.hatch.envs.hatch-static-analysis]
config-path = "none" # Disable hatch's unreasonable ruff defaults
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff]
exclude = ["samples/3rdparty"] # why no leading slash?
[tool.pytest.ini_options]
testpaths = [ "tests" ]
[tool.hatch.envs.hatch-test]
extra-dependencies = [ "cryptography", "pdfminer.six", "pandas", "polars-lts-cpu" ]
[tool.hatch.envs.default]
dependencies = [ "cryptography", "pytest", "mypy", "pdfminer.six", "pandas", "polars-lts-cpu" ]
[tool.hatch.envs.default.scripts]
bench = [
"python benchmarks/parser.py",
"python benchmarks/converter.py",
]
[tool.hatch.envs.docs]
dependencies = [
"mkdocs-material",
"mkdocstrings[python]",
"mkdocs-include-markdown-plugin"
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build"
serve = "mkdocs serve"