-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
115 lines (104 loc) · 2.43 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
[project]
name = "django-renderpdf"
authors = [
{name = "Hugo Osvaldo Barrera", email = "[email protected]"},
]
description = "Django app to render django templates as PDF files."
readme = "README.rst"
requires-python = ">=3.7"
keywords = ["django", "weasyprint", "pdf"]
license = {text = "ISC"}
classifiers = [
"Development Status :: 6 - Mature",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"License :: OSI Approved :: ISC License (ISCL)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"django>=2.2",
"weasyprint",
]
dynamic = ["version"]
[project.optional-dependencies]
docs = [
"sphinx",
]
lint = [
"ruff",
"mypy",
]
[project.urls]
repository = "https://github.com/WhyNotHugo/django-renderpdf/"
documentation = "https://django-renderpdf.readthedocs.io/"
changelog = "https://github.com/WhyNotHugo/django-renderpdf/blob/main/CHANGELOG.rst"
issues = "https://github.com/WhyNotHugo/django-renderpdf/issues/"
funding = "https://whynothugo.nl/sponsor/"
[tool.black]
target-version = ['py38']
[tool.coverage.run]
source = ["django_renderpdf"]
[tool.pytest.ini_options]
addopts = """
--cov=django_renderpdf
--cov-report=term-missing:skip-covered
--no-cov-on-fail
--color=yes
"""
DJANGO_SETTINGS_MODULE = "testapp.settings"
[tool.ruff]
target-version = "py38"
[tool.ruff.lint]
select = [
"E",
"F",
"W",
"I",
"N",
"UP",
"YTT",
# "ANN",
"BLE",
"FBT",
"B",
# "A", Conflicts with some Django-defined names.
"C4", # Comprehensions
"ISC",
"ICN",
"G",
"INP",
"PIE",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SIM",
"TID",
"TCH",
"INT",
"ERA",
"PGH",
"PLE",
"RUF",
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.setuptools]
packages = ["django_renderpdf"]
[tool.setuptools_scm]
write_to = "django_renderpdf/version.py"
version_scheme = "post-release"