-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (128 loc) · 3.87 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (128 loc) · 3.87 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
[build-system]
requires = ["setuptools>=77.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "python-hwpx"
version = "2.16.0"
description = "한글 없이 HWPX 문서를 열고, 편집하고, 생성하고, 검증하는 Python 자동화 라이브러리"
readme = { file = "README.md", content-type = "text/markdown" }
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
requires-python = ">=3.10"
authors = [
{ name = "python-hwpx Maintainers" },
]
keywords = ["hwp", "hwpx", "hancom", "opc", "xml", "document-automation", "validation", "template"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: Text Processing :: Markup :: XML",
]
dependencies = [
"lxml>=4.9,<6",
]
[project.optional-dependencies]
visual = [
"pymupdf>=1.24",
"pillow>=10.0",
"numpy>=1.26",
]
# Excel(.xlsx/.xlsm) 명부 ingestion for mail_merge. Lazy-imported; absent => clear error.
xlsx = [
"openpyxl>=3.1",
]
dev = [
"build>=1.0",
"twine>=4.0",
"pytest>=7.4",
]
test = [
"build>=1.0",
"pytest>=7.4",
"pytest-cov>=5.0",
]
typecheck = [
"mypy>=1.10",
"pyright>=1.1.390",
]
[project.urls]
Homepage = "https://github.com/airmang/python-hwpx"
Documentation = "https://airmang.github.io/python-hwpx/"
Issues = "https://github.com/airmang/python-hwpx/issues"
[project.scripts]
hwpx-unpack = "hwpx.tools.archive_cli:unpack_main"
hwpx-pack = "hwpx.tools.archive_cli:pack_main"
hwpx-validate = "hwpx.tools.validator:main"
hwpx-validate-package = "hwpx.tools.package_validator:main"
hwpx-page-guard = "hwpx.tools.page_guard:main"
hwpx-analyze-template = "hwpx.tools.template_analyzer:main"
hwpx-text-extract = "hwpx.tools.text_extract_cli:main"
hwpx-repair = "hwpx.tools.repair:main"
hwpx-conformance = "hwpx.conformance.runner:main"
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["hwpx*"]
[tool.setuptools.package-data]
"hwpx" = ["py.typed"]
"hwpx.tools" = ["_schemas/*.xsd"]
"hwpx.data" = ["Skeleton.hwpx"]
"hwpx.visual" = ["_render_hwpx.ps1", "_render_hwpx_mac.applescript"]
"hwpx.design" = [
"profiles/*/profile.json",
"profiles/*/template.hwpx",
"profiles/*/fragments/*.xml",
]
"hwpx.conformance" = [
"corpus/corpus.json",
"corpus/*.hwpx",
]
[tool.pytest.ini_options]
pythonpath = ["src"]
addopts = "-ra"
testpaths = ["tests"]
[tool.mypy]
python_version = "3.10"
files = [
"src/hwpx/document.py",
"src/hwpx/oxml/document.py",
"src/hwpx/opc/package.py",
"src/hwpx/opc/relationships.py",
"src/hwpx/tools/archive_cli.py",
"src/hwpx/tools/package_validator.py",
"src/hwpx/tools/page_guard.py",
"src/hwpx/tools/template_analyzer.py",
"src/hwpx/tools/text_extract_cli.py",
"src/hwpx/tools/text_extractor.py",
"tests/template_automation/helpers.py",
"tests/template_automation/generate_fixtures.py",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["hwpx.document", "hwpx.oxml.document"]
ignore_errors = true
[tool.pyright]
# Keep basic pyright focused on OPC/tooling modules that currently pass
# without suppressing their real diagnostics.
include = [
"src/hwpx/opc/package.py",
"src/hwpx/opc/relationships.py",
"src/hwpx/tools/archive_cli.py",
"src/hwpx/tools/package_validator.py",
"src/hwpx/tools/page_guard.py",
"src/hwpx/tools/template_analyzer.py",
"src/hwpx/tools/text_extract_cli.py",
"src/hwpx/tools/text_extractor.py",
"tests/template_automation/helpers.py",
"tests/template_automation/generate_fixtures.py",
]
pythonVersion = "3.10"
typeCheckingMode = "basic"
reportMissingTypeStubs = false