Skip to content

Commit c203814

Browse files
committed
move some metadata from setup.cfg to pyproject.toml
1 parent 3fb893e commit c203814

File tree

2 files changed

+63
-68
lines changed

2 files changed

+63
-68
lines changed

pyproject.toml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,69 @@
22
build-backend = 'setuptools.build_meta'
33
requires = ['setuptools >= 47', 'wheel']
44

5+
[project]
6+
name = "Mako"
7+
version = "1.3.11"
8+
description = "A super-fast templating language that borrows the best ideas from the existing templating languages."
9+
readme = "README.rst"
10+
license = "MIT"
11+
license-files = [ "LICENSE" ]
12+
authors = [
13+
{ name = "Mike Bayer", email = "[email protected]" }
14+
]
15+
maintainers = [
16+
{ name = "Mako authors and contributors", email = "[email protected]" }
17+
]
18+
keywords = ["templating", "templates", "python"]
19+
classifiers = [
20+
"Development Status :: 5 - Production/Stable",
21+
"Intended Audience :: Developers",
22+
"Programming Language :: Python",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.8",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
30+
"Topic :: Software Development :: Libraries :: Python Modules",
31+
"Topic :: Text Processing :: Markup"
32+
]
33+
requires-python = ">=3.8"
34+
dependencies = [
35+
"MarkupSafe>=0.9.2"
36+
]
37+
38+
[project.urls]
39+
Homepage = "https://www.makotemplates.org/"
40+
Source = "https://github.com/sqlalchemy/mako"
41+
42+
[project.scripts]
43+
mako-render = "mako.cmd:cmdline"
44+
45+
[project.entry-points."python.templating.engines"]
46+
mako = "mako.ext.turbogears:TGPlugin"
47+
48+
[project.entry-points."pygments.lexers"]
49+
mako = "mako.ext.pygmentplugin:MakoLexer"
50+
html_mako = "mako.ext.pygmentplugin:MakoHtmlLexer"
51+
xml_mako = "mako.ext.pygmentplugin:MakoXmlLexer"
52+
js_mako = "mako.ext.pygmentplugin:MakoJavascriptLexer"
53+
css_mako = "mako.ext.pygmentplugin:MakoCssLexer"
54+
55+
[project.entry-points."babel.extractors"]
56+
mako = "mako.ext.babelplugin:extract"
57+
58+
[project.entry-points."lingua.extractors"]
59+
mako = "mako.ext.linguaplugin:LinguaMakoExtractor"
60+
61+
[tool.setuptools.packages.find]
62+
where = ["."]
63+
exclude = [
64+
"test*",
65+
"examples*"
66+
]
67+
568
[tool.black]
669
line-length = 79
770
target-version = ['py38']

setup.cfg

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,6 @@
1-
[metadata]
2-
name = Mako
3-
version = attr: mako.__version__
4-
description = A super-fast templating language that borrows the best ideas from the existing templating languages.
5-
long_description = file: README.rst
6-
long_description_content_type = text/x-rst
7-
url = https://www.makotemplates.org/
8-
author = Mike Bayer
9-
author_email = [email protected]
10-
license = MIT
11-
license_files = LICENSE
12-
classifiers =
13-
Development Status :: 5 - Production/Stable
14-
License :: OSI Approved :: MIT License
15-
Environment :: Web Environment
16-
Intended Audience :: Developers
17-
Programming Language :: Python
18-
Programming Language :: Python :: 3
19-
Programming Language :: Python :: 3.8
20-
Programming Language :: Python :: 3.9
21-
Programming Language :: Python :: 3.10
22-
Programming Language :: Python :: 3.11
23-
Programming Language :: Python :: 3.12
24-
Programming Language :: Python :: Implementation :: CPython
25-
Programming Language :: Python :: Implementation :: PyPy
26-
Topic :: Internet :: WWW/HTTP :: Dynamic Content
27-
project_urls =
28-
Documentation=https://docs.makotemplates.org
29-
Issue Tracker=https://github.com/sqlalchemy/mako
30-
311
[options]
32-
packages = find:
33-
python_requires = >=3.8
342
zip_safe = false
353

36-
install_requires =
37-
MarkupSafe >= 0.9.2
38-
39-
[options.packages.find]
40-
exclude =
41-
test*
42-
examples*
43-
44-
[options.extras_require]
45-
testing =
46-
pytest
47-
babel =
48-
Babel
49-
lingua =
50-
lingua
51-
52-
[options.entry_points]
53-
python.templating.engines =
54-
mako = mako.ext.turbogears:TGPlugin
55-
56-
pygments.lexers =
57-
mako = mako.ext.pygmentplugin:MakoLexer
58-
html+mako = mako.ext.pygmentplugin:MakoHtmlLexer
59-
xml+mako = mako.ext.pygmentplugin:MakoXmlLexer
60-
js+mako = mako.ext.pygmentplugin:MakoJavascriptLexer
61-
css+mako = mako.ext.pygmentplugin:MakoCssLexer
62-
63-
babel.extractors =
64-
mako = mako.ext.babelplugin:extract [babel]
65-
66-
lingua.extractors=
67-
mako = mako.ext.linguaplugin:LinguaMakoExtractor [lingua]
68-
69-
console_scripts=
70-
mako-render = mako.cmd:cmdline
71-
724
[egg_info]
735
tag_build = dev
746

0 commit comments

Comments
 (0)