-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
79 lines (68 loc) · 1.82 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
69
70
71
72
73
74
75
76
77
78
79
[project]
name = "fontina"
description = "Visual font recognition (VFR) library"
authors = [{ name = "Alessio Placitelli", email = "[email protected]" }]
dependencies = [
"albumentations>=1.3.1",
"trdg==1.8.0",
# We need to force the pillow version because of the use
# of removed APIs in trdg 1.8.0 (e.g. `ImageFont.getsize`).
"pillow==9.5.0",
"pytorch-lightning[extra]==2.0.8",
"pyyaml==6.0.1",
"rstr==3.2.1",
# TODO: On Windows, this must be manual.
# pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu117
"torch>=2.0.1",
"torchvision>=0.15.2",
]
dynamic = ["version"]
requires-python = ">=3.10"
readme = "README.md"
license = { text = "MIT" }
[project.scripts]
fontina-generate = "fontina.generate:main"
fontina-train = "fontina.train:main"
fontina-predict = "fontina.predict:main"
[project.urls]
"Homepage" = "https://github.com/Dexterp37/fontina"
"Bug Tracker" = "https://github.com/Dexterp37/fontina/issues"
[project.optional-dependencies]
linting = [
"black==23.7.0",
"flake8==6.1.0",
"flake8-bugbear==23.7.10",
"mypy==1.4.1",
"pytest==7.4.0",
"types-PyYAML==6.0.1",
"types-pillow==9.5.0",
]
[build-system]
requires = ["setuptools>=65.0", "setuptools_scm[toml]>=8.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["assets*", "tests*"]
[tool.setuptools_scm]
# It's fine for this section to be empty.
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.black]
line-length = 90
exclude = '''
/(
\.git
| \.mypy_cache
| \.venv
| assets
| build
| dist
)/
'''
[tool.mypy]
exclude = "(assets|build)/$"
[[tool.mypy.overrides]]
module = ["albumentations.*", "torchvision.*", "trdg.generators.*"]
ignore_missing_imports = true