-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
114 lines (103 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
107
108
109
110
111
112
113
114
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "dragonmapper"
dynamic = ["version"]
description = "Identification and conversion functions for Chinese text processing"
readme = "README.rst"
license = "MIT"
authors = [
{ name = "Thomas Roten" },
]
requires-python = ">=3.9"
keywords = [
"chinese",
"mandarin",
"transcription",
"pinyin",
"zhuyin",
"ipa",
"convert",
"bopomofo",
"hanzi",
"characters",
"readings",
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
]
dependencies = [
"hanzidentifier ~= 1.2",
"zhon ~= 2.0",
]
[project.urls]
Documentation = "https://tsroten.github.io/dragonmapper"
"Source code" = "https://github.com/tsroten/dragonmapper"
[tool.hatch.version]
path = "src/dragonmapper/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/src",
]
[tool.hatch.envs.default.scripts]
test = "hatch run test:run"
format = "hatch run style:format"
lint = "hatch run style:check"
docs = "hatch run docs:html"
[tool.hatch.envs.docs]
dependencies = [
"Sphinx",
"releases"
]
[tool.hatch.envs.docs.scripts]
clean = "cd docs && make clean"
generate = "cd docs && make html"
view = "open docs/_build/html/index.html"
check = "cd docs && make linkcheck"
html = [
"clean",
"generate",
"check",
"view"
]
[tool.hatch.envs.test.scripts]
clean = "find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete"
test = "python3 -Wdefault -m unittest -v"
run = [
"clean",
"test"
]
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.style]
detached = true
dependencies = [
"black",
"flake8",
"pep8-naming",
"flake8-blind-except",
"flake8-builtins",
"flake8-pep3101",
"flake8-string-format"
]
[tool.hatch.envs.style.scripts]
check = [
"black -q --check --diff src tests",
"flake8 src tests"
]
format = [
"black -q src tests"
]