From 6c316a93eb6e4f0c0ccb4ed93fe764cbf286b82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Garc=C3=ADa=20Garz=C3=B3n?= Date: Wed, 4 Dec 2024 16:21:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=20undocumented=20way=20to?= =?UTF-8?q?=20add=20entrypoints=20on=20pyproject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documentation says [project.entrypoints."mygroup"] but it failed. [tools.setuptools.entry_points."mygroup"] seems to work or at least, not failing. --- pyproject.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 61253e7..8997048 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "wheel"] +requires = ["setuptools>=75", "wheel"] [project] name = "markdown-customblocks" @@ -32,6 +32,7 @@ classifiers = [ 'Topic :: Text Processing :: Filters', 'Topic :: Text Processing :: Markup :: HTML', ] + dependencies = [ 'markdown', 'yamlns>=0.11', # supports assertNsContains @@ -54,10 +55,10 @@ Documentation = "https://readthedocs.org" Repository = "https://github.com/vokimon/markdown-customblocks" Changelog = "https://github.com/vokimon/markdown-customblocks/blob/master/CHANGES.md" -[project.entry_points."markdown.extensions"] +[tools.setuptools.entry_points."markdown.extensions"] customblocks = "customblocks:CustomBlocksExtension" -[project.entry_points."markdown.customblocks.generators"] +[tools.setuptools.entry_points."markdown.customblocks.generators"] attention = "customblocks.generators:admonition" caution = "customblocks.generators:admonition" danger = "customblocks.generators:admonition"