-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (93 loc) · 2.8 KB
/
pyproject.toml
File metadata and controls
104 lines (93 loc) · 2.8 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "psd2svg"
version = "0.11.0"
description = "Convert PSD file to SVG file"
authors = [
{ name = "CyberAgent, Inc.", email = "yamaguchi_kota@cyberagent.co.jp" },
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.10,<3.15"
keywords = ["photoshop", "psd", "svg"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Graphics :: Viewers",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
]
dependencies = [
"pillow>=12.1.1",
"numpy",
"psd-tools>=1.12.0",
"resvg-py>=0.2.5",
"fontconfig-py>=0.4.0; sys_platform != 'win32'",
"fonttools[woff]>=4.60.2",
]
[project.optional-dependencies]
browser = [
"playwright>=1.40.0",
]
[dependency-groups]
dev = [
"pytest",
"mypy",
"ruff",
"ipykernel>=6.30.1",
]
docs = [
"sphinx>=7.0",
"sphinx-rtd-theme>=2.0",
"sphinx-autodoc-typehints>=1.25",
"myst-parser>=2.0",
"tomli>=2.0.0; python_version < '3.11'",
]
[project.urls]
Homepage = "https://github.com/CyberAgent/psd2svg"
Repository = "https://github.com/CyberAgent/psd2svg"
[project.scripts]
psd2svg = "psd2svg.__main__:main"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"requires_noto_sans: marks tests that require Noto Sans font",
"requires_noto_sans_jp: marks tests that require Noto Sans JP font",
"requires_noto_sans_cjk: marks tests that require Noto Sans CJK JP font",
"requires_noto_sans_arabic: marks tests that require Noto Sans Arabic font",
"requires_noto_sans_devanagari: marks tests that require Noto Sans Devanagari font",
"requires_noto_sans_thai: marks tests that require Noto Sans Thai font",
"requires_noto_sans_hebrew: marks tests that require Noto Sans Hebrew font",
"requires_arial: marks tests that require Arial font (from MS Core Fonts)",
"requires_playwright: marks tests that require Playwright browser automation",
]
[tool.mypy]
python_version = "3.10"
warn_unused_configs = true
check_untyped_defs = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "fontTools.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "playwright.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "skimage.*"
ignore_missing_imports = true
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"PLC", # pylint conventions
]
ignore = []