-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (69 loc) · 1.94 KB
/
pyproject.toml
File metadata and controls
80 lines (69 loc) · 1.94 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pagevault"
version = "0.4.1"
description = "Password-protect regions of HTML files for static hosting"
readme = "README.md"
license = "MIT"
authors = [
{ name = "Alexander Towell", email = "lex@metafunctor.com" },
{ name = "Alex Towell", email = "queelius@gmail.com" },
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: Site Management",
"Topic :: Security :: Cryptography",
]
keywords = ["html", "encryption", "static-site", "password-protection"]
dependencies = [
"click>=8.0",
"cryptography>=41.0",
"beautifulsoup4>=4.12",
"pyyaml>=6.0",
"lxml>=4.9",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.1",
]
[project.scripts]
pagevault = "pagevault.cli:main"
[project.urls]
Homepage = "https://github.com/queelius/pagevault"
Repository = "https://github.com/queelius/pagevault"
[tool.hatch.build.targets.wheel]
packages = ["src/pagevault"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
[tool.ruff.lint.per-file-ignores]
# parser.py and wrap.py still have inline CSS that can't be line-wrapped
# (to be extracted to .css files in a future chunk)
"src/pagevault/parser.py" = ["E501"]
"src/pagevault/wrap.py" = ["E501"]
[tool.coverage.run]
source = ["src/pagevault"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]