-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (85 loc) · 2.23 KB
/
pyproject.toml
File metadata and controls
95 lines (85 loc) · 2.23 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
[project]
name = "beko-translate"
version = "0.0.4"
description = "MLX-based translation CLI with PDF translation support."
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "Yuichi Tateno", email = "hotchpotch@gmail.com" }
]
maintainers = [
{ name = "Yuichi Tateno", email = "hotchpotch@gmail.com" }
]
keywords = [
"translation",
"mlx",
"apple-silicon",
"cli",
"pdf",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Text Processing :: Linguistic",
]
dependencies = [
"fast-langdetect>=1.0.0",
"mlx-lm>=0.29.1",
"numba>=0.63.1",
"pypdf>=6.6.2",
"torch>=2",
]
[project.urls]
Homepage = "https://github.com/hotchpotch/beko-translate"
Repository = "https://github.com/hotchpotch/beko-translate"
Documentation = "https://github.com/hotchpotch/beko-translate"
Issues = "https://github.com/hotchpotch/beko-translate/issues"
[project.scripts]
beko-translate = "beko_translate:main"
beko-translate-pdf = "beko_translate.pdf_cli:main"
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["beko_translate*"]
[dependency-groups]
dev = [
"build>=1.3.0",
"numba>=0.63.1",
"pytest>=9.0.2",
"ruff>=0.14.14",
"twine>=6.2.0",
"tox>=4.34.1",
"tox-uv>=1.29.0",
"ty>=0.0.14",
]
[tool.pytest.ini_options]
markers = [
"integration: runs MLX model integration tests (requires RUN_MLX_INTEGRATION=1)",
]
filterwarnings = [
# mlx-lm's dependency emits SWIG deprecation warnings; may disappear on newer mlx-lm.
"ignore:builtin type SwigPy.* has no __module__:DeprecationWarning",
]
[tool.tox]
legacy_tox_ini = """
[tox]
requires = tox-uv>=1.29.0
parallel = auto
parallel_show_output = true
env_list = py312, lint, type
[testenv]
setenv =
RUN_MLX_INTEGRATION = 1
commands = uv run pytest {posargs}
[testenv:lint]
commands = uv run ruff check .
[testenv:type]
commands = uv run ty check
"""