-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (93 loc) · 2.87 KB
/
pyproject.toml
File metadata and controls
115 lines (93 loc) · 2.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
[build-system]
requires = [
"hatchling",
"hatch-cython>=0.5.0",
"hatch-vcs",
"Cython>=3.0.0",
]
build-backend = "hatchling.build"
[project]
name = "jntajis-python"
description = "A fast character conversion and transliteration library based on the scheme defined for Japan National Tax Agency's corporate number system."
readme = "README.md"
license = "BSD-3-Clause"
requires-python = ">= 3.10"
authors = [
{ name = "Open Collector, inc.", email = "info@opencollector.co.jp" },
]
keywords = ["Unicode", "JIS", "encoding", "conversion", "transliteration", "Japanese"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Text Processing :: Filters",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"click>=8.3",
"ruff>=0.4",
"jinja2>=3",
"mypy>=1.19",
"pytest>=6.2",
"sphinx>=4",
"sphinx-rtd-theme>=0.5",
]
[project.urls]
Homepage = "https://github.com/opencollector/jntajis-python"
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
tag_regex = "^(?P<version>[vV]?\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$"
[tool.hatch.build.targets.wheel]
packages = ["src/jntajis"]
[tool.hatch.build.targets.wheel.hooks.cython]
dependencies = ["hatch-cython>=0.5.0"]
[tool.hatch.build.targets.wheel.hooks.cython.options]
src = "jntajis"
includes = ["pythoncapi-compat", "src/jntajis"]
compile_py = false
directives = { language_level = 3, cdivision = true, boundscheck = false, wraparound = false, embedsignature = true }
[tool.hatch.build.targets.sdist]
include = [
"src/",
"docs/",
"README.md",
"LICENSE",
]
[tool.hatch.build.hooks.vcs]
version-file = "src/jntajis/_version.py"
[tool.ruff]
line-length = 99
target-version = "py310"
src = ["src"]
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
ignore = ["E501"]
[tool.hatch.envs.lint]
features = ["dev"]
[tool.hatch.envs.lint.scripts]
fix = ["ruff format {args:src}", "ruff check --fix {args:src}"]
check = ["ruff format --check {args:src}", "ruff check {args:src}", "mypy -p jntajis"]
[tool.hatch.envs.wheels]
dependencies = ["cibuildwheel>=2"]
detached = true
[tool.hatch.envs.wheels.scripts]
build = ["cibuildwheel --output-dir {args:dist}"]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.13", "3.12", "3.11", "3.10"]
[tool.mypy]
files = "src/"
[tool.cibuildwheel]
build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*"]
# skip = "pp*"
[tool.cibuildwheel.linux]
before-build = "find {project} -iname '*.so' | xargs rm -f"
[tool.cibuildwheel.windows]
before-build = "DEL /S /Q *.pyd"
repair-wheel-command = "python {project}/tools/repack_wheel.py {wheel} {dest_dir}"
[tool.cibuildwheel.macos]
archs = ["universal2"]
before-build = "find {project} -iname '*.so' | xargs rm -f "