-
Notifications
You must be signed in to change notification settings - Fork 170
/
pyproject.toml
93 lines (80 loc) · 2.14 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[build-system]
requires = ["setuptools>=64", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
[project]
name = "sigal"
description = "Simple static gallery generator"
readme = "README.rst"
authors = [{name = "Simon Conseil", email = "[email protected]"}]
keywords = ["gallery", "static", "generator", "image", "video", "galleria"]
license = {text = "MIT License"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia :: Graphics :: Viewers",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.9"
dependencies = [
"blinker",
"click",
"Jinja2>=2.7",
"Markdown",
"Pillow>=8.0.0",
"pilkit",
"natsort",
]
dynamic = ["version"]
[project.optional-dependencies]
all = ["brotli", "feedgenerator", "zopfli", "cryptography"]
tests = ["pytest", "pytest-cov"]
docs = ["Sphinx>=4.1.0", "furo", "cryptography"]
[project.scripts]
sigal = "sigal.__main__:main"
[project.urls]
repository = "https://github.com/saimn/sigal"
documentation = "http://sigal.saimon.org/en/latest/"
[tool.setuptools]
include-package-data = true
license-files = ["LICENSE"]
[tool.setuptools.packages.find]
where = ["src"]
namespaces = true
[tool.setuptools.package-data]
sigal = [
"plugins/encrypt/static/*",
"themes/**",
]
[tool.setuptools_scm]
write_to = "src/sigal/version.py"
[tool.ruff.lint]
select = [
"E", "F", "W", # flake8
"I", # isort
"UP", # pyupgrade
]
ignore = ["E731"]
unfixable = [
"F841", # Removes unused variables
]
[tool.ruff.lint.isort]
known-first-party = ["sigal"]
[tool.coverage.run]
source = ["sigal"]
omit = ["/tmp/*", "tests/*"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"except KeyboardInterrupt",
"except ImportError",
]