-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (65 loc) · 2.96 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (65 loc) · 2.96 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "bindery-cli"
version = "0.46.1"
description = "Audit EPUB body text and repair broken EPUBs with deterministic, epubcheck-gated fixes; atomic in-place replacement in a Calibre library."
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Utilities",
]
requires-python = ">=3.12"
keywords = ["epub", "epubcheck", "calibre", "repair", "ebook", "html-repair", "watermarks"]
license = { text = "MIT" }
authors = [
{ name = "vrnvctss" },
]
# Core dependencies are minimal. html5lib is needed only for the opt-in --reserialize structural
# repair; it is imported lazily, so every other mode works without it installed.
# vir-tui and cquarry are pinned as PyPI ranges; uv.lock records the resolved versions.
# Both are marker-gated to 3.14+ because every release they ship declares
# requires-python >=3.14: without the markers a 3.12/3.13 install of this
# package would die in dependency resolution before `bindery repair` (which
# needs neither) could run. The audit/library surfaces degrade with a clean
# message (cli.py's dispatch guard) instead of installing at all.
dependencies = [
"tqdm",
"vir-tui>=2.5.0; python_version >= '3.14'",
"cquarry>=1.19.0; python_version >= '3.14'",
]
[project.optional-dependencies]
reserialize = ["html5lib>=1.1"]
[project.scripts]
bindery = "bindery.cli:main"
[project.urls]
Homepage = "https://github.com/VirInvictus/bindery-cli"
Repository = "https://github.com/VirInvictus/bindery-cli"
Changelog = "https://github.com/VirInvictus/bindery-cli/blob/main/patchnotes.md"
[tool.hatch.build.targets.wheel]
packages = ["src/bindery"]
[tool.ruff]
# Pin the rewrite level below the house interpreter on purpose: the Calibre
# plugin vendors these modules into Calibre's embedded interpreters, so the
# parenthesized except form must survive `ruff format`. A target inferred
# from requires-python >=3.14 rewrites it to the PEP 758 bare form, which is
# a SyntaxError on every released Calibre (see tests/test_version.py).
target-version = "py312"
[tool.ruff.lint]
# Pinned explicitly so `ruff check` means the same thing locally and in CI. Without
# this the result rode on whichever ruff was installed: 0.15 passed clean while 0.16
# reported eight findings under its wider defaults. This is ruff's default set plus
# import sorting (I), pyupgrade (UP), and bugbear (B).
#
# Deliberately NOT selected: RUF, whose RUF001 flags the U+2010/U+2011 hyphens in
# pagination._char_norm, where those exact characters are the point; and SIM, whose
# SIM103 would collapse validate.no_worse's commented guard clauses into one
# negated expression.
select = ["E4", "E7", "E9", "F", "I", "UP", "B"]