-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (50 loc) · 2.14 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (50 loc) · 2.14 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
[build-system]
requires = ["scikit-build-core>=0.10", "pybind11>=2.12"]
build-backend = "scikit_build_core.build"
[project]
name = "jtypeset"
version = "0.2.0"
description = "jtypeset: Japanese typesetting (vertical/horizontal, JLReq) with raster / PDF / SVG output and Markdown → PDF — C++17 core (typeset) with pybind11 bindings"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.9"
authors = [{ name = "wamsoft" }]
keywords = ["typesetting", "japanese", "vertical", "pdf", "svg", "ruby", "markdown", "jlreq"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Topic :: Text Processing :: Fonts",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
]
[project.urls]
Homepage = "https://wamsoft.github.io/jtypeset/"
Documentation = "https://wamsoft.github.io/jtypeset/"
Repository = "https://github.com/wamsoft/jtypeset"
Issues = "https://github.com/wamsoft/jtypeset/issues"
[project.optional-dependencies]
md = ["markdown-it-py>=3.0", "mdit-py-plugins>=0.4", "PyYAML>=6.0"]
highlight = ["Pygments>=2.10"] # コードブロックの色付け(任意。無ければ単色)
[project.scripts]
jtypeset-md = "jtypeset.md.cli:main"
[tool.scikit-build]
# vcpkg の依存(freetype / harfbuzz / libunibreak / zlib / stb)が要る。VCPKG_ROOT を設定しておけば
# CMakeLists が toolchain を補う。glyphware は GLYPHWARE_DIR が無ければ FetchContent で取る
cmake.version = ">=3.24"
cmake.args = [
"-DTYPESET_BUILD_PYTHON=ON",
"-DTYPESET_BUILD_SAMPLES=OFF",
"-DTYPESET_BUILD_TESTS=OFF",
]
wheel.packages = ["python/jtypeset"]
build-dir = "build/skbuild/{wheel_tag}"
[tool.scikit-build.sdist]
exclude = ["build/", "out/", "data/*.ttf", "data/*.otf", "output*"]
# Windows では静的ライブラリ+動的 CRT の triplet(Python 本体と同じ /MD。DLL を wheel に同梱しなくてよい)
[[tool.scikit-build.overrides]]
if.platform-system = "win32"
cmake.define.VCPKG_TARGET_TRIPLET = "x64-windows-static-md"