From d66d8e444827e49a390737a377622d28e11f1343 Mon Sep 17 00:00:00 2001 From: LloydZ <35182391+cocolato@users.noreply.github.com> Date: Wed, 6 Aug 2025 10:55:41 +0000 Subject: [PATCH 1/3] move some metadata from setup.cfg to pyproject.toml --- pyproject.toml | 60 ++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 68 -------------------------------------------------- 2 files changed, 60 insertions(+), 68 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 320d94a..308471f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,66 @@ build-backend = 'setuptools.build_meta' requires = ['setuptools >= 47', 'wheel'] +[project] +name = "Mako" +version = "1.3.11" +description = "A super-fast templating language that borrows the best ideas from the existing templating languages." +readme = "README.rst" +license = "MIT" +license-files = [ "LICENSE" ] +authors = [ + { name = "Mike Bayer", email = "mike@zzzcomputing.com" } +] +keywords = ["templating", "templates", "python"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Internet :: WWW/HTTP :: Dynamic Content", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Text Processing :: Markup" +] +requires-python = ">=3.8" +dependencies = [ + "MarkupSafe>=0.9.2" +] + +[project.urls] +Homepage = "https://www.makotemplates.org/" +Source = "https://github.com/sqlalchemy/mako" + +[project.scripts] +mako-render = "mako.cmd:cmdline" + +[project.entry-points."python.templating.engines"] +mako = "mako.ext.turbogears:TGPlugin" + +[project.entry-points."pygments.lexers"] +mako = "mako.ext.pygmentplugin:MakoLexer" +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" + +[tool.setuptools.packages.find] +where = ["."] +exclude = [ + "test*", + "examples*" +] + [tool.black] line-length = 79 target-version = ['py38'] diff --git a/setup.cfg b/setup.cfg index ecbbe0f..a91ef63 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,74 +1,6 @@ -[metadata] -name = Mako -version = attr: mako.__version__ -description = A super-fast templating language that borrows the best ideas from the existing templating languages. -long_description = file: README.rst -long_description_content_type = text/x-rst -url = https://www.makotemplates.org/ -author = Mike Bayer -author_email = mike@zzzcomputing.com -license = MIT -license_files = LICENSE -classifiers = - Development Status :: 5 - Production/Stable - License :: OSI Approved :: MIT License - Environment :: Web Environment - Intended Audience :: Developers - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: Implementation :: CPython - Programming Language :: Python :: Implementation :: PyPy - Topic :: Internet :: WWW/HTTP :: Dynamic Content -project_urls = - Documentation=https://docs.makotemplates.org - Issue Tracker=https://github.com/sqlalchemy/mako - [options] -packages = find: -python_requires = >=3.8 zip_safe = false -install_requires = - MarkupSafe >= 0.9.2 - -[options.packages.find] -exclude = - test* - examples* - -[options.extras_require] -testing = - pytest -babel = - Babel -lingua = - lingua - -[options.entry_points] -python.templating.engines = - mako = mako.ext.turbogears:TGPlugin - -pygments.lexers = - mako = mako.ext.pygmentplugin:MakoLexer - html+mako = mako.ext.pygmentplugin:MakoHtmlLexer - xml+mako = mako.ext.pygmentplugin:MakoXmlLexer - js+mako = mako.ext.pygmentplugin:MakoJavascriptLexer - css+mako = mako.ext.pygmentplugin:MakoCssLexer - -babel.extractors = - mako = mako.ext.babelplugin:extract [babel] - -lingua.extractors= - mako = mako.ext.linguaplugin:LinguaMakoExtractor [lingua] - -console_scripts= - mako-render = mako.cmd:cmdline - [egg_info] tag_build = dev From 1ef7ade42f8b5ece8763cc2c36fa685a9fec2ab6 Mon Sep 17 00:00:00 2001 From: LloydZ <35182391+cocolato@users.noreply.github.com> Date: Fri, 22 Aug 2025 07:57:43 +0000 Subject: [PATCH 2/3] move some metadata from setup.cfg to pyproject.toml --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 308471f..ede970a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = ['setuptools >= 47', 'wheel'] [project] name = "Mako" -version = "1.3.11" +dynamic = ["version"] description = "A super-fast templating language that borrows the best ideas from the existing templating languages." readme = "README.rst" license = "MIT" @@ -35,6 +35,7 @@ dependencies = [ [project.urls] Homepage = "https://www.makotemplates.org/" Source = "https://github.com/sqlalchemy/mako" +Documentation = "https://docs.makotemplates.org" [project.scripts] mako-render = "mako.cmd:cmdline" @@ -62,6 +63,9 @@ exclude = [ "examples*" ] +[tool.setuptools.dynamic] +version = {attr = "mako.__version__"} + [tool.black] line-length = 79 target-version = ['py38'] From c52e72af5f22d01625ac8fa2172249663402ea99 Mon Sep 17 00:00:00 2001 From: LloydZ <35182391+cocolato@users.noreply.github.com> Date: Wed, 27 Aug 2025 11:11:48 +0000 Subject: [PATCH 3/3] require setuptools>=77.0.3 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ede970a..8595774 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] build-backend = 'setuptools.build_meta' -requires = ['setuptools >= 47', 'wheel'] +requires = ["setuptools>=77.0.3"] [project] name = "Mako"