Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (140 loc) · 4.06 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (140 loc) · 4.06 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = ["setuptools>=77.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "Mako"
description = "A super-fast templating language that borrows the best ideas from the existing templating languages."
authors = [{name = "Mike Bayer", email = "mike@zzzcomputing.com"}]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
requires-python = ">=3.10"
dependencies = ["MarkupSafe >= 2.0"]
dynamic = ["version"]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.urls]
Homepage = "https://www.makotemplates.org/"
Documentation = "https://docs.makotemplates.org"
"Issue Tracker" = "https://github.com/sqlalchemy/mako"
[project.optional-dependencies]
testing = ["pytest"]
babel = ["Babel"]
lingua = ["lingua>=4.16"]
[dependency-groups]
tests = [
"pytest>8",
"beaker",
"markupsafe",
"pygments",
"babel",
"dogpile.cache",
"lingua>=4.16",
"junitparser",
]
coverage = [
"pytest-cov",
]
lint = [
"flake8-pyproject",
"flake8>=7.3.0",
"flake8-import-order>=0.19.2",
"flake8-import-single==0.1.5",
"flake8-builtins",
"flake8-docstrings",
"flake8-rst-docstrings",
"pydocstyle",
"pygments",
"black==26.3.1",
]
[project.entry-points."python.templating.engines"]
mako = "mako.ext.turbogears:TGPlugin"
[project.entry-points."pygments.lexers"]
mako = "mako.ext.pygmentplugin:MakoLexer"
# pygments discovers lexers by loading the entry point and reading the
# lexer class's own aliases; the entry point name itself is ignored, so
# these use underscores to satisfy the recommended [\w.-]+ name pattern
html_mako = "mako.ext.pygmentplugin:MakoHtmlLexer"
xml_mako = "mako.ext.pygmentplugin:MakoXmlLexer"
js_mako = "mako.ext.pygmentplugin:MakoJavascriptLexer"
css_mako = "mako.ext.pygmentplugin:MakoCssLexer"
[project.entry-points."babel.extractors"]
mako = "mako.ext.babelplugin:extract"
[project.entry-points."lingua.extractors"]
mako = "mako.ext.linguaplugin:LinguaMakoExtractor"
[project.scripts]
mako-render = "mako.cmd:cmdline"
[tool.coverage.run]
# required for the jenkins coverage job to combine .coverage files
# produced on different nodes
relative_files = true
[tool.setuptools]
zip-safe = false
include-package-data = false
[tool.setuptools.packages.find]
include = ["mako*"]
exclude = [
"test*",
"examples*",
]
namespaces = false
[tool.setuptools.dynamic]
version = {attr = "mako.__version__"}
[tool.distutils.egg_info]
tag-build = "dev"
[tool.pytest.ini_options]
addopts = "--tb native -v -r fxX -p warnings"
python_files = ["test/*test_*.py"]
python_classes = ["*Test", "Test*"]
filterwarnings = [
"error::DeprecationWarning:test",
"error::DeprecationWarning:mako",
]
[tool.black]
line-length = 79
target-version = ['py310']
# mako-generated template modules
force-exclude = '''
/(
test/templates
| test/foo
| examples/wsgi/modules
)/
'''
[tool.zimports]
black-line-length = 79
[tool.flake8]
show-source = false
enable-extensions = "G"
# E203 is due to https://github.com/PyCQA/pycodestyle/issues/373
ignore = [
"A003","A005",
"D",
"E203","E305","E711","E712","E721","E722","E741",
"N801","N802","N806",
"RST304","RST303","RST299","RST399",
"W503","W504",
]
exclude = [
".venv",".git",".tox","dist","doc","*egg","build",
# mako-generated template modules
"test/templates","test/foo","examples/wsgi/modules",
]
import-order-style = "google"
application-import-names = ["mako","test"]