Skip to content

Commit

Permalink
Rename extension and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Dec 22, 2023
1 parent 5040649 commit 39d9159
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/extension/dummyexporter/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ ignore = [".*"]
[tool.hatch.version]
path = "dummyexporter/__init__.py"

[project.entry-points."sdgx.cli.DataExporter"]
[project.entry-points."sdgx.data_exporter"]
dummyexporter = "dummyexporter.dummyexporter"
6 changes: 3 additions & 3 deletions sdgx/data_exporters/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pluggy

project_name = "sdgx.cli.DataExporter"
project_name = "sdgx.data_exporter"
"""
The entry-point name of this extension.
Expand Down Expand Up @@ -38,7 +38,7 @@ def register(manager):
class MyOwnExporter(DataExporter):
...
from sdgx.exporters.extension import hookimpl
from sdgx.data_exporters.extension import hookimpl
@hookimpl
def register(manager):
Expand All @@ -49,7 +49,7 @@ def register(manager):
.. code-block:: toml
[project.entry-points."sdgx.cli.DataExporter"]
[project.entry-points."sdgx.data_exporter"]
{whatever-name} = "{package}.{path}.{to}.{file-with-hookimpl-function}"
Expand Down

0 comments on commit 39d9159

Please sign in to comment.