-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
121 lines (110 loc) · 2.7 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
115
116
117
118
119
120
121
[project]
name = "pinyin-to-ipa"
version = "0.0.2"
description = "Command-line interface (CLI) and Python library to transcribe pinyin to IPA."
readme = "README.md"
requires-python = ">=3.8, <3.13"
license = { text = "MIT" }
authors = [{ email = "[email protected]" }, { name = "Stefan Taubert" }]
maintainers = [
{ email = "[email protected]" },
{ name = "Stefan Taubert" },
]
keywords = [
"Pronunciation",
"Dictionary",
"Chinese",
"IPA",
"Pinyin",
"Language",
"Linguistics",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Operating System :: OS Independent",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: POSIX :: BSD",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"License :: OSI Approved :: MIT License",
]
dependencies = ["ordered-set>=4.1.0", "pypinyin>=0.50"]
[project.urls]
Homepage = "https://github.com/stefantaubert/pinyin-to-ipa"
Issues = "https://github.com/stefantaubert/pinyin-to-ipa/issues"
[project.scripts]
pinyin-to-ipa-cli = "pinyin_to_ipa_cli.cli:run_prod"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
packages = ["pinyin_to_ipa", "pinyin_to_ipa_cli"]
[tool.setuptools.packages.find]
where = ["src"]
include = [
"pinyin_to_ipa",
"pinyin_to_ipa.*",
"pinyin_to_ipa_cli",
"pinyin_to_ipa_cli.*",
]
exclude = [
"pinyin_to_ipa_tests",
"pinyin_to_ipa_tests.*",
"pypinyin_tests.*",
"pinyin_to_ipa_debug",
"pinyin_to_ipa_debug.*",
]
namespaces = true
[tool.pytest.ini_options]
log_cli = true
log_level = "DEBUG"
testpaths = ["src/pinyin_to_ipa_tests", "src/pypinyin_tests"]
[tool.autopep8]
indent-size = 2
ignore = ["E121"]
max_line_length = 100
[tool.isort]
line_length = 100
indent = 2
known_first_party = ["pinyin_to_ipa"]
known_third_party = ["ordered_set", "pypinyin"]
[tool.pyright]
root = ["src"]
include = ["src"]
pythonPlatform = "All"
typeCheckingMode = "off"
stubPath = ""
exclude = [
"**/node_modules",
"**/__pycache__",
".git",
"**/*.egg-info",
"**/*_debug",
]
useLibraryCodeForTypes = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{38,39,310,311,312}
isolated_build = true
[testenv]
deps =
pytest
commands =
pytest
pinyin-to-ipa-cli
pinyin-to-ipa-cli -v
"""
[build-system]
requires = ["setuptools >= 40.9.0", "wheel"]
build-backend = "setuptools.build_meta"