Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (104 loc) · 2.89 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (104 loc) · 2.89 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 = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "typekernel"
version = "0.0.0"
description = "Optical / design-semantics kernel for fonts-as-code (depends on fontTools; does not rebuild OT tables)."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [
{ name = "zayju", email = "zayju@users.noreply.github.com" },
]
keywords = [
"fonts",
"typography",
"fonttools",
"type-design",
"optical",
"ufo",
]
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Graphics :: Editors :: Vector-Based",
"Topic :: Text Processing :: Fonts",
]
dependencies = [
"fonttools>=4.50",
"pillow>=10",
"skia-pathops>=0.8",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"ruff>=0.17,<0.18",
"mypy>=1.11",
]
boolean = [
# skia-pathops is a hard dependency since the live renderer (perceive);
# extra kept so existing ``pip install typekernel[boolean]`` still resolves.
"skia-pathops>=0.8",
]
compile = [
"ufoLib2>=0.16",
"fontmake>=3.9",
"ufo2ft>=2.33",
"munkres>=1.1",
]
release = [
"fontbakery>=1.0",
]
specimen = [
# pillow is a hard dependency since the live renderer (perceive);
# extra kept so existing ``pip install typekernel[specimen]`` still resolves.
"pillow>=10",
]
[project.scripts]
tk = "typekernel.cli.__main__:main"
[project.urls]
Homepage = "https://github.com/SheathedSharp/typekernel"
Repository = "https://github.com/SheathedSharp/typekernel"
Issues = "https://github.com/SheathedSharp/typekernel/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
typekernel = ["py.typed", "starters/**/*"]
[tool.ruff]
line-length = 100
target-version = "py311"
# No ``select``: this project enforces ruff's curated default set. That set
# grows between releases, so ``ruff`` is version-pinned in the ``dev`` extra
# above — bumping it is a deliberate commit that may surface new rules.
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.mypy]
python_version = "3.11"
strict = true
packages = ["typekernel"]
[[tool.mypy.overrides]]
module = [
"fontTools.*",
"pathops",
"uharfbuzz",
"ufoLib2",
"ufoLib2.*",
"fontmake",
"fontmake.*",
"ufo2ft",
"ufo2ft.*",
]
ignore_missing_imports = true
# Starter templates are *project* code: ``tk new`` copies them into a user's
# font project, where ``elements`` / ``system`` resolve because the project
# directory is put on ``sys.path`` at runtime. They are written the way user
# project code is written (no annotations), so ``strict`` does not apply.
[[tool.mypy.overrides]]
module = "typekernel.starters.*"
ignore_errors = true