-
Notifications
You must be signed in to change notification settings - Fork 18
/
pyproject.toml
68 lines (57 loc) · 1.37 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
[project]
name = "epubhv"
version = "0.6.0"
description = "make your epub books vertical or horizontal."
authors = [{ name = "yihong0618", email = "zouzou0208@gmail.com" }]
dependencies = [
"beautifulsoup4==4.12.2",
"cssutils==2.7.1",
"lxml==4.9.3",
"opencc-python-reimplemented==0.1.7",
"soupsieve==2.5",
"typed-argument-parser==1.8.1",
"jieba",
"pypinyin",
"unidic_lite",
"fugashi",
"langdetect",
"ToJyutping",
]
requires-python = ">=3.8,!=3.9.7"
readme = "README.md"
license = { text = "MIT" }
[project.urls]
Homepage = "https://github.com/yihong0618/epubhv"
[project.scripts]
epubhv = "epubhv.cli:main"
[project.optional-dependencies]
web = [
"streamlit>=1.29.0",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.build]
includes = ["epubhv"]
[tool.pdm.scripts]
format = "black ."
lint = "black . --check"
typing = "pyright"
test = "pytest -vv"
all = { composite = ["lint", "typing", "test"] }
[tool.pdm.dev-dependencies]
test = ["pytest>=7.4.2"]
style = ["black>=23.9.1"]
typing = ["pyright>=1.1.327", "types-beautifulsoup4>=4.12.0.6"]
[tool.pyright]
include = ["epubhv", "tests"]
exclude = [
"**/node_modules",
"**/__pycache__",
"src/experimental",
"src/typestubs",
"epubhv/yomituki.py"
]
defineConstant = { DEBUG = true }
reportMissingImports = true
reportMissingTypeStubs = false