Skip to content

Commit

Permalink
🏗️ undocumented way to add entrypoints on pyproject
Browse files Browse the repository at this point in the history
Documentation says [project.entrypoints."mygroup"]
but it failed.
[tools.setuptools.entry_points."mygroup"]
seems to work or at least, not failing.
  • Loading branch information
vokimon committed Dec 4, 2024
1 parent db93c6d commit 6c316a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools>=75", "wheel"]

[project]
name = "markdown-customblocks"
Expand Down Expand Up @@ -32,6 +32,7 @@ classifiers = [
'Topic :: Text Processing :: Filters',
'Topic :: Text Processing :: Markup :: HTML',
]

dependencies = [
'markdown',
'yamlns>=0.11', # supports assertNsContains
Expand All @@ -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"
Expand Down

0 comments on commit 6c316a9

Please sign in to comment.