forked from tatuylonen/wikitextprocessor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (96 loc) · 2.48 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "wikitextprocessor"
version = "0.4.96"
description = "Parser and expander for Wikipedia, Wiktionary etc. dump files, with Lua execution support"
readme = "README.md"
license = {text = "MIT License"}
authors = [
{name = "Tatu Ylonen", email = "[email protected]"},
]
keywords = [
"data extraction",
"dictionary",
"lua",
"scribunto",
"wikipedia",
"wikitext",
"wiktionary",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Text Processing",
"Topic :: Text Processing :: Linguistic",
]
requires-python = ">=3.9"
dependencies = [
"dateparser",
"importlib_resources; python_version < '3.10'",
"lupa @ git+https://github.com/scoder/lupa.git",
"lxml",
"mediawiki_langcodes",
"psutil",
"requests",
]
[project.optional-dependencies]
dev = [
"black",
"coverage[toml]",
"mypy",
"ruff",
"types-dateparser",
"types-lxml",
"types-psutil",
"types-requests",
]
[project.urls]
homepage = "https://github.com/tatuylonen/wikitextprocessor"
[tool.setuptools]
zip-safe = false
[tool.setuptools.package-data]
wikitextprocessor = [
"lua/*.lua",
"lua/mediawiki-extensions-Scribunto/COPYING",
"lua/mediawiki-extensions-Scribunto/includes/Engines/LuaCommon/lualib/*.lua",
"lua/mediawiki-extensions-Scribunto/includes/Engines/LuaCommon/lualib/ustring/*.lua",
"lua/mediawiki-extensions-Scribunto/includes/Engines/LuaCommon/lualib/luabit/*.lua",
"data/*/*",
"py.typed",
]
[tool.mypy]
mypy_path = "typestubs"
[tool.coverage.run]
branch = true
omit = ["tests/*"]
[tool.black]
line-length = 80
[tool.ruff]
line-length = 80
select = [
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"W", # pycodestyle warning
]
[tool.typos]
files.extend-exclude = [
"src/wikitextprocessor/lua/mediawiki-extensions-Scribunto",
"src/wikitextprocessor/data",
"tests",
]
default.extend-ignore-identifiers-re = [
"uupper",
]