Skip to content

Commit

Permalink
fix entrypoint name of the schema package
Browse files Browse the repository at this point in the history
  • Loading branch information
fekad committed Jul 29, 2024
1 parent 70e6261 commit 6da4cc5
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 314 deletions.
342 changes: 34 additions & 308 deletions notebooks/tutorial_stats.ipynb

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ classifiers = [
]
name = "nomad-aitoolkit"
description = "Schema and app for AI Toolkit notebooks."
version = "0.1.0"
version = "0.1.1"
readme = "README.rst"
requires-python = ">=3.9"
authors = [
Expand Down Expand Up @@ -109,7 +109,6 @@ package-dir = { "" = "src" }
where = ["src"]

[project.entry-points.'nomad.plugin']

aitookitschema = "nomad_aitoolkit.schema:package"
aitookitschema = "nomad_aitoolkit.schema:aitoolkit"
aitookitapp = "nomad_aitoolkit.apps:aitoolkit"

4 changes: 2 additions & 2 deletions src/nomad_aitoolkit/schema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

class AIToolkitSchemaPackageEntryPoint(SchemaPackageEntryPoint):
def load(self):
from nomad_aitoolkit.schema.aitoolkit import m_package
from nomad_aitoolkit.schema.package import m_package

return m_package


package = AIToolkitSchemaPackageEntryPoint(
aitoolkit = AIToolkitSchemaPackageEntryPoint(
name='AIToolkit',
description='Describes the basic schemas for AI Toolkit notebooks.',
)
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
SubSection,
)

configuration = config.get_plugin_entry_point('nomad_aitoolkit.schema:package')
configuration = config.get_plugin_entry_point('nomad_aitoolkit.schema:aitoolkit')


def remove_tags(text):
Expand Down

0 comments on commit 6da4cc5

Please sign in to comment.